/* ============ GoKalAI — style.css ============ */
:root {
  --bg: #0b1020;
  --bg-soft: #10172e;
  --surface: #151d38;
  --surface-2: #1b2548;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f9;
  --text-dim: #9aa5c4;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
  --radius: 16px;
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.accent { color: var(--cyan-light); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-head);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--violet-light);
  color: var(--violet-light);
}
.btn-outline:hover { background: rgba(124, 58, 237, 0.12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--violet-light);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -1.2px; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--text-dim); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.stat span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Agent card (hero visual) ---------- */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.agent-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.waveform { display: flex; align-items: center; gap: 3px; height: 20px; }
.waveform span {
  width: 3px;
  border-radius: 2px;
  background: #fff;
  animation: wave 1.1s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.15s; }
.waveform span:nth-child(3) { animation-delay: 0.3s; }
.waveform span:nth-child(4) { animation-delay: 0.45s; }
.waveform span:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}
.agent-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.agent-status { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.call-timer { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--text-dim); }

.chat-window { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 0.4s ease forwards;
}
.msg.bot { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--gradient); border-bottom-right-radius: 4px; align-self: flex-end; color: #fff; }
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }

.chat-input-fake {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.typing-dots { display: flex; gap: 4px; }
.typing-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-light);
  animation: blink 1.2s infinite;
}
.typing-dots i:nth-child(2) { animation-delay: 0.2s; }
.typing-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.typing-label { font-size: 13px; color: var(--text-dim); }

/* ---------- Trust strip ---------- */
.trust { padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust-label { text-align: center; font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.trust-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 44px; }
.trust-logos span { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--text-dim); opacity: 0.75; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan-light);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.8px; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.4); }
.card-icon { font-size: 30px; margin-bottom: 16px; }
.card h3 { font-size: 18.5px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700; color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- Use cases ---------- */
.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.usecase:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }
.uc-icon { font-size: 26px; display: block; margin-bottom: 12px; }
.usecase h4 { font-size: 16px; margin-bottom: 8px; }
.usecase p { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.10)), var(--surface);
  border: 1px solid rgba(167, 139, 250, 0.55);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.25);
}
.badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 20px; margin-bottom: 14px; }
.price { font-family: var(--font-head); color: var(--text-dim); margin-bottom: 6px; }
.price .amount { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.price-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 30px; flex: 1; }
.price-card li {
  padding: 8px 0 8px 28px;
  font-size: 14.5px;
  color: var(--text-dim);
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan-light);
  font-weight: 700;
}
.price-card .btn { text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 24px;
  transition: border-color 0.2s;
}
.faq-list details[open] { border-color: rgba(167, 139, 250, 0.4); }
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--violet-light);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--text-dim); font-size: 15px; padding-bottom: 20px; }

/* ---------- CTA / Contact ---------- */
.cta-section { padding: 90px 0 110px; }
.cta-card {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.12)), var(--surface);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.2);
}
.cta-card h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.cta-card > p { color: var(--text-dim); font-size: 17px; margin-bottom: 34px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--violet-light); }
.contact-form ::placeholder { color: #6b7699; }
.form-note { font-size: 14px; color: var(--cyan-light); text-align: center; min-height: 20px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 70px 0 90px; }
.legal-page h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.8px; margin-bottom: 8px; }
.legal-updated { color: var(--text-dim); font-size: 14.5px; margin-bottom: 40px; }
.legal-page h2 { font-size: 21px; margin: 36px 0 12px; }
.legal-page h3 { font-size: 17px; margin: 26px 0 10px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 15.5px; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--cyan-light); }
.fill-me {
  background: rgba(251, 191, 36, 0.15);
  border: 1px dashed rgba(251, 191, 36, 0.6);
  border-radius: 6px;
  padding: 1px 7px;
  color: #fbbf24;
  font-size: 0.95em;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--text-dim); font-size: 14.5px; margin-top: 14px; max-width: 260px; }
.footer-col h5 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .lead { max-width: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 26px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
  .section { padding: 64px 0; }
}
