/* ============================================================
   chatgpt-optimization.css
   ChatGPT Optimization Services — AIPO GEO
   Tailwind CSS (via CDN, preflight disabled) + Custom Styles
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green:       #10A37F;
  --green-light: #1DB88E;
  --green-pale:  #e8f8f4;
  --dark:        #202123;
  --text:        #1a1a1a;
  --text-2:      #4a4a4a;
  --muted:       #6b7280;
  --bg:          #ffffff;
  --bg-alt:      #f7f7f8;
  --border:      #e5e7eb;
  --r:           12px;
  --r-lg:        20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta { background: var(--green); color: #fff !important; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background .2s; }
.nav-cta:hover { background: var(--green-light); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; }

/* ---------- HERO ---------- */
.hero { background: var(--dark); padding: 80px 0 0; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(16,163,127,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16,163,127,0.15); border: 1px solid rgba(16,163,127,0.3); color: var(--green); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 100px; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px; }
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(1.3); } }
.hero-title { font-size: 49px; font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--green); }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 10px; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 4px 20px rgba(16,163,127,0.35); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,163,127,0.45); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500; padding: 14px 24px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); transition: all .2s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-dark { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text-2); font-size: 15px; font-weight: 500; padding: 13px 24px; border-radius: 10px; border: 1px solid var(--border); transition: all .2s; }
.btn-ghost-dark:hover { border-color: var(--green); color: var(--green); }
.hero-note { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------- CHAT WINDOW ---------- */
.hero-visual { display: flex; justify-content: flex-end; align-items: flex-end; }
.chat-window { background: #fff; border-radius: 16px; width: 100%; max-width: 420px; box-shadow: 0 32px 80px rgba(0,0,0,0.4); overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #f7f7f8; border-bottom: 1px solid #e5e7eb; }
.chat-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.chat-header-info h4 { font-size: 13px; font-weight: 700; color: var(--text); }
.chat-header-info p { font-size: 11px; color: var(--muted); }
.chat-body { padding: 18px; }
.chat-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.chat-av.gpt { overflow: hidden; }
.chat-av.gpt img { width: 28px; height: 28px; object-fit: contain; }
.chat-av.me { background: #6366f1; }
.bubble { background: #f7f7f8; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--text); line-height: 1.5; max-width: 280px; }
.chat-msg.user .bubble { background: var(--dark); color: #fff; }
.sources { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.src-tag { font-size: 10px; background: var(--green-pale); color: var(--green); padding: 3px 8px; border-radius: 4px; font-weight: 500; }
.chat-highlight { background: rgba(16,163,127,0.08); border: 1px solid rgba(16,163,127,0.2); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* ---------- STATS ---------- */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { text-align: center; padding: 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 42px; font-weight: 800; color: var(--green); letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- SECTION COMMONS ---------- */
.sec { padding: 88px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-label { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sec-label::before { content: ''; width: 24px; height: 2px; background: var(--green); display: inline-block; }
.sec-label.center { justify-content: center; }
.sec-label.center::before { display: none; }
.sec-title { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: var(--text); margin-bottom: 16px; }
.sec-title em { font-style: normal; color: var(--green); }
.sec-desc { font-size: 16px; color: var(--text-2); line-height: 1.7; max-width: 600px; }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-desc { margin: 0 auto; }

/* ---------- WHY NOW ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: border-color .2s, transform .2s; }
.why-card:hover { border-color: var(--green); transform: translateY(-4px); }
.why-num { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.why-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.why-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- DEFINITION / COMPARE TABLE — headers left-aligned ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.compare-wrap { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.compare-wrap table { width: 100%; border-collapse: collapse; }
.compare-wrap th {
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: left;
}
.compare-wrap th:nth-child(3) { background: var(--dark); color: var(--green); text-align: left; }
.compare-wrap td { padding: 12px 18px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid #f0f0f0; text-align: left; }
.compare-wrap tr:last-child td { border-bottom: none; }
.compare-wrap td:first-child { font-weight: 600; color: var(--text); }
.compare-wrap td:nth-child(3) { color: var(--green); font-weight: 600; }

/* ---------- FREE AUDIT BANNER ---------- */
.audit-banner { background: var(--dark); padding: 64px 0; }
.audit-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.audit-label { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.audit-inner h2 { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 12px; }
.audit-inner h2 em { font-style: normal; color: var(--green); }
.audit-inner p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 480px; }
.audit-ctas { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.audit-note { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.svc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.svc-card:hover { border-color: var(--green); box-shadow: 0 8px 32px rgba(16,163,127,0.1); transform: translateY(-4px); }
.svc-card.dark { background: linear-gradient(135deg, var(--dark) 0%, #2d2f3a 100%); border-color: rgba(16,163,127,0.3); }
.svc-icon { font-size: 28px; margin-bottom: 16px; }
.svc-step { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.svc-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.svc-card.dark h3 { color: #fff; }
.svc-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.svc-card.dark p { color: rgba(255,255,255,0.6); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; background: var(--green-pale); color: var(--green); padding: 4px 10px; border-radius: 100px; font-weight: 500; }

/* ---------- PROCESS ---------- */
.process-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.process-row::before { content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--green), rgba(16,163,127,0.2)); z-index: 0; }
.p-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.p-num { width: 56px; height: 56px; background: var(--green); color: #fff; font-size: 20px; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(16,163,127,0.35); }
.p-step h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.p-step p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- WHY US — 3-row grid: header top-left, list bottom-left, image spans both rows on right ---------- */
.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0 64px;
  align-items: start;
}
.why-us-header {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 24px;
}
.why-us-list {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-us-img {
  grid-column: 2;
  grid-row: 1 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  display: flex;
  align-items: stretch;
}
.why-us-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.why-us-item { display: flex; gap: 16px; align-items: flex-start; }
.why-us-icon { width: 44px; height: 44px; background: var(--green-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.why-us-item h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.why-us-item p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ---------- FAQ — 55% / 45% ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: start;
}
.faq-panel { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-q { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.faq-q-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; border-radius: 5px; flex-shrink: 0; }
.faq-a { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-top: 12px; padding-left: 34px; }
.faq-side { position: sticky; top: 88px; }
.faq-side-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.faq-side-img img { width: 100%; height: auto; display: block; }
.faq-side-note { margin-top: 20px; background: var(--green-pale); border-radius: var(--r); padding: 20px; }
.faq-side-note p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }

/* ---------- FINAL CTA ---------- */
.final-cta { background: linear-gradient(135deg, var(--dark) 0%, #2d2f3a 100%); padding: 88px 0; text-align: center; }
.final-cta h2 { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
.final-cta h2 em { font-style: normal; color: var(--green); }
.final-cta p { font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.final-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.final-note { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ---------- FOOTER ---------- */
.footer { background: #111; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--green); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-col h5 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color .2s; }
.footer-links a:hover { color: var(--green); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner, .two-col, .faq-layout { grid-template-columns: 1fr; }
  .hero-visual { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid, .svc-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audit-inner { flex-direction: column; }
  .hero-title { font-size: 36px; }
  .sec-title { font-size: 28px; }
  .faq-side { position: static; }
  .why-us-inner { grid-template-columns: 1fr; }
  .why-us-header, .why-us-list, .why-us-img { grid-column: 1; grid-row: auto; }
  .why-us-img { margin-top: 24px; }
  .why-us-img img { height: auto; }
}
