/* ==========================================================================
   Neovistaa Marketing Automation Co. — Global Stylesheet
   Design system reference: DESIGN-SYSTEM.md
   Structure:
     1. Tokens
     2. Base & typography
     3. Layout helpers
     4. Buttons & pills
     5. Header / navigation
     6. Hero
     7. Ticker
     8. Cards & grids
     9. Tables
    10. Accordion (FAQ)
    11. CTA band
    12. Forms
    13. Footer
    14. Motion & reveal
    15. Responsive (980px / 760px)
   ========================================================================== */

/* -------------------------------------------------- 1. Tokens ----------- */
:root {
  --navy: #243b98;
  --navy-700: #1b2c73;
  --navy-050: #eef1fc;
  --gold: #fdb42a;
  --gold-700: #c98211;
  --ink: #181b29;
  --muted: #5b6072;
  --line: #e5e7f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(24, 27, 41, 0.04);
  --shadow-md: 0 10px 30px rgba(36, 59, 152, 0.08);
  --shadow-navy: 0 14px 40px rgba(36, 59, 152, 0.16);
}

/* -------------------------------------------- 2. Base & typography ------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--navy-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.headline {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.sub {
  font-size: 17px;
  color: var(--muted);
  margin-top: 16px;
}

.body-copy {
  font-size: 15.5px;
  color: var(--muted);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
}

.text-gold {
  color: var(--gold-700);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ------------------------------------------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 84px 0;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .section-title {
  margin-top: 14px;
}

/* ---------------------------------------- 4. Buttons & pills ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-700);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-700);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-700);
  color: #fff;
}

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  background: var(--navy-050);
  border: 1px solid #d6dcf4;
  border-radius: 999px;
  padding: 7px 14px;
}

.eyebrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid var(--gold);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.pill:hover {
  border-color: var(--navy);
  color: var(--ink);
}

.pill i {
  color: var(--gold-700);
}

/* --------------------------------------- 5. Header / navigation --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

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

.nav-links a.is-active {
  color: var(--navy);
  font-weight: 600;
}

.nav-cta {
  font-size: 13.5px;
  padding: 11px 20px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  padding-bottom: 18px;
}

.mobile-menu a {
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
}

.mobile-menu a.is-active {
  color: var(--navy);
}

.mobile-menu .btn {
  margin-top: 10px;
  justify-content: center;
}

/* ------------------------------------------------- 6. Hero ------------- */
.hero {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 80% 0%, #f4f6ff 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-grid--center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero .headline {
  margin-top: 20px;
}

.hero .sub {
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.trust-row {
  margin-top: 30px;
}

/* Video shell */
.video-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-700);
  box-shadow: var(--shadow-navy);
}

.video-shell .ratio {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-shell iframe,
.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  padding: 14px 18px;
  background: var(--navy-700);
  color: #c7d0f2;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: capIn 0.5s ease both;
}

@keyframes capIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------ 7. Ticker ------------- */
.ticker {
  background: var(--navy);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 34s linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.ticker span i {
  color: var(--gold);
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------------------- 8. Cards & grids ---------- */
/* Hairline bordered grid */
.card-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

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

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

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

.feature-card,
.stat-card {
  background: #fff;
  padding: 28px 24px;
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-050);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.feature-card h4,
.pkg-card h4 {
  font-size: 17px;
}

.feature-card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.stat-card i {
  color: var(--gold-700);
  font-size: 22px;
}

.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

/* Standalone card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3,
.card h4 {
  font-size: 17px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

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

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

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

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

/* Checklist */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

.check-item i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--navy-050);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

/* Case study card */
.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.case-card h3 {
  font-size: 18px;
  margin-top: 10px;
}

.case-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metric {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--navy);
}

.metric span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

.win-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.win-list li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.win-list i {
  color: var(--gold-700);
}

.case-card .btn {
  margin-top: 20px;
}

/* Illustration / media frame */
.illustration-frame {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  aspect-ratio: 16 / 9;
}

.illustration-frame i {
  font-size: 28px;
  color: var(--navy);
}

.illustration-frame .frame-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

.illustration-frame.dark {
  background: var(--navy-700);
  color: #c7d0f2;
  border-color: var(--navy-700);
}

.illustration-frame.dark i {
  color: var(--gold);
}

.illustration-frame.ratio-43 {
  aspect-ratio: 4 / 3;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}

.timeline .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
}

.timeline h3 {
  font-size: 16px;
}

.timeline p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* Industry card */
.industry-card {
  background: #fff;
  padding: 28px 24px;
}

.industry-card .metric-line {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-top: 8px;
}

.industry-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ------------------------------------------------- 9. Tables ----------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.tbl thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 22px;
}

.tbl tbody td {
  padding: 16px 22px;
  font-size: 14.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.tbl tbody tr:nth-child(even) {
  background: var(--bg-soft);
}

.tbl tbody td:last-child {
  color: var(--ink);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.fine-print {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ------------------------------------------ 10. Accordion (FAQ) --------- */
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.faq-q:hover {
  color: var(--navy);
}

.faq-q i {
  color: var(--navy);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-q[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-a > div {
  overflow: hidden;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--muted);
}

/* --------------------------------------------- 11. CTA band ------------- */
.cta-wrap {
  padding: 76px 0;
}

.cta-band {
  background: var(--navy);
  border-radius: 20px;
  padding: 60px 32px;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-band p {
  color: #c7d0f2;
  font-size: 16px;
  max-width: 620px;
  margin: 16px auto 0;
}

.cta-band .btn {
  margin-top: 28px;
}

/* ------------------------------------------------- 12. Forms ----------- */
.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field .error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #b42318;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b42318;
}

.field.has-error .error {
  display: block;
}

.form-success {
  display: none;
  background: var(--navy-050);
  border: 1px solid #d6dcf4;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--navy-700);
}

.form-success.is-visible {
  display: block;
}

/* ------------------------------------------------ 13. Footer ----------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-grid img {
  height: 36px;
  width: auto;
}

.footer-grid .tagline {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  font-size: 14px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

/* ------------------------------------- 14. Motion & reveal -------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track {
    animation: none;
  }
}

/* ------------------------------------------- 15. Responsive ------------- */
@media (max-width: 980px) {
  .nav-links,
  .nav > .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .headline {
    font-size: 38px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0 52px;
  }

  .headline {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .cta-band {
    padding: 44px 20px;
  }

  .cta-band h2 {
    font-size: 26px;
  }

  .card-grid--4,
  .card-grid--3,
  .card-grid--2,
  .grid--2,
  .grid--3,
  .grid--4,
  .check-grid,
  .form-row,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
