/* SOVIQ marketing site — tokens match frontend/src/app/globals.css exactly
   (Navy #081b33, Electric Blue #2563eb, Violet #8b5cf6, Aqua #22d3ee,
   Cloud #f8fafc, Sky #eaf6ff, Grey #94a3b8) for visual consistency with
   the actual product, not a reinterpretation. */

:root {
  --navy: #081b33;
  --blue: #2563eb;
  --violet: #8b5cf6;
  --aqua: #22d3ee;
  --cloud: #f8fafc;
  --sky: #eaf6ff;
  --grey: #94a3b8;
  --white: #ffffff;
  --ink: var(--navy);
  --ink-muted: #46587a;
  --border: #dfe7f3;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; line-height: 1.6; color: var(--ink-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aqua);
  margin: 0 0 14px;
}

.eyebrow-dark { color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover { box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover { background: var(--sky); }

.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon { width: 28px; height: 28px; object-fit: contain; }

.brand-word { height: 20px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-links a:hover { color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 96px 24px 110px;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(37, 99, 235, 0.55), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(139, 92, 246, 0.45), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  color: #c4d3ec;
  font-size: 1.15rem;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.28); }

.hero .btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-tagline {
  color: #7f93b8;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9bbda;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.chat-bubble {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 92%;
}

.chat-bubble-user {
  background: var(--blue);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble-reply {
  background: rgba(255,255,255,0.08);
  color: #e6edf8;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius: 4px;
}

/* ---------- Generic sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}

.section-panel {
  max-width: none;
  background: var(--sky);
  padding-left: 24px;
  padding-right: 24px;
}
.section-panel > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-panel .flow { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 760px;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 44px;
}

.section-callout {
  margin-top: 40px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.section-callout.small { font-size: 1rem; font-weight: 500; }

.grid { display: grid; gap: 24px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.plain-card, .role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.plain-card h3, .role-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.role-card { background: var(--sky); border-color: transparent; }

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 20px 40px -24px rgba(8, 27, 51, 0.18);
}

.pricing-amount-from {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.pricing-amount span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--grey);
}

.pricing-usage-note {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 6px 0 22px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* ---------- Proposition flow ---------- */

.flow {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.flow-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.flow-step p { color: var(--navy); font-weight: 500; }

.flow-arrow {
  align-self: center;
  color: var(--grey);
  font-size: 1.3rem;
}

.flow-caption {
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ---------- Experience question grid ---------- */

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--aqua);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Integrations ---------- */

.integrations-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.integration {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.integration-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.integration-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--grey);
}

/* ---------- Dark / enterprise section ---------- */

.section-dark {
  max-width: none;
  background: var(--navy);
  padding: 88px 24px;
}

.section-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-title-light { color: var(--white); }

.section-lead-light { color: #b9c8e4; }

.dark-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px;
}

.dark-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }

.dark-card p { color: #b9c8e4; }

.section-callout.light {
  color: var(--white);
  border-top-color: rgba(255,255,255,0.15);
}

/* ---------- Closing CTA ---------- */

.closing {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  padding: 96px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.closing h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}

.closing p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.closing .btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.3);
}

.closing .btn-primary:hover { box-shadow: 0 14px 32px -8px rgba(0,0,0,0.4); }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  padding: 32px 24px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-word { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

.footer p { color: #7f93b8; font-size: 0.85rem; }

.footer-powered-by { text-align: right; opacity: 0.7; }
.footer-powered-by a { color: #7f93b8; text-decoration: underline; text-decoration-color: rgba(127,147,184,0.4); }
.footer-powered-by a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .integrations-strip { grid-template-columns: repeat(2, 1fr); }
  .question-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { display: none; }
}

@media (max-width: 520px) {
  .hero { padding: 72px 16px 80px; }
  .section, .section-panel, .section-dark { padding: 64px 16px; }
  .nav-cta .btn-ghost { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
