/* =========================================================
   Norma — Design tokens (ver design-system/norma/MASTER.md)
   ========================================================= */
:root {
  --color-primary: #4285F4;
  --color-primary-dark: #2A5FCC;
  --color-on-primary: #FFFFFF;
  --color-secondary: #0F1E3D;
  --color-background: #FFFFFF;
  --color-surface-dark: #060B18;
  --color-foreground: #0F172A;
  --color-muted: #F1F5FD;
  --color-muted-foreground: #5B6B85;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;
  --color-ring: #4285F4;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --container-max: 1200px;
}

/* Norma uses a fixed brand palette (dark hero/security/footer, light content
   sections by design) rather than adapting to the OS color-scheme preference —
   the alternating dark/light rhythm is part of the layout, not a theme. */

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 var(--space-md); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--space-md); color: var(--color-muted-foreground); }

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

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-sm) var(--space-md);
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-md) 0;
  background: transparent;
  transition: background-color 250ms ease, box-shadow 250ms ease, padding 250ms ease;
}
.nav.is-scrolled {
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 0.65rem 0;
}

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }

.nav__brand { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.nav__logo { width: 32px; height: 32px; object-fit: contain; }
.nav__wordmark { font-weight: 800; font-size: 1.15rem; color: #fff; }

.nav__links {
  display: flex;
  gap: var(--space-xl);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a { color: rgba(255,255,255,0.85); transition: color 200ms ease; cursor: pointer; }
.nav__links a:hover { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: var(--space-md); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 64px var(--space-lg) auto var(--space-lg);
    flex-direction: column;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--sm { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-surface-dark) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: clamp(7rem, 12vw, 10rem) 0 var(--space-3xl);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(66,133,244,0.35) 0%, rgba(66,133,244,0) 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9DBBFB;
  margin-bottom: var(--space-md);
}
.eyebrow--dark { color: var(--color-primary); }

.hero h1 { color: #fff; }
.text-gradient {
  background: linear-gradient(90deg, #9DBBFB, #4285F4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 42ch;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: var(--space-xl) 0 var(--space-lg); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.hero__note { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Chat mock */
.hero__visual { position: relative; }
.chat-mock {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.chat-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.chat-mock__dot:nth-child(1) { background: #ff5f57; }
.chat-mock__dot:nth-child(2) { background: #febc2e; }
.chat-mock__dot:nth-child(3) { background: #28c840; }
.chat-mock__title { margin-left: var(--space-sm); font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 600; }

.chat-mock__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }

.chat-mock__carousel { position: relative; padding: 0; display: block; transition: height 300ms ease; }
.chat-mock__slide {
  position: absolute;
  inset: 0;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.chat-mock__slide.is-active { opacity: 1; pointer-events: auto; }

.chat-mock__dots { display: flex; justify-content: center; gap: 8px; padding-bottom: var(--space-md); }
.chat-mock__dot-nav {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.chat-mock__dot-nav:hover { background: rgba(255,255,255,0.5); }
.chat-mock__dot-nav.is-active { background: var(--color-primary); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
  .chat-mock__carousel, .chat-mock__slide { transition: none; }
}

.chat-bubble { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); font-size: 0.92rem; }
.chat-bubble p, .chat-bubble li { color: inherit; }
.chat-bubble--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  max-width: 80%;
}
.chat-bubble--ai {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius: 4px;
}
.chat-bubble--ai ul { margin: var(--space-sm) 0; padding-left: 1.1rem; list-style: disc; }
.chat-bubble--ai li { margin-bottom: 4px; }
.chat-bubble__source {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.chat-mock__caption {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  padding: 0 0 var(--space-md);
  margin: 0;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: var(--space-3xl) 0; }
.section--muted { background: var(--color-muted); }
.section--dark {
  background: var(--color-surface-dark);
  color: #fff;
}
.section--dark p { color: rgba(255,255,255,0.65); }
.section--dark h2 { color: #fff; }

.section__head { max-width: 640px; margin: 0 auto var(--space-2xl); text-align: center; }
.section__subtitle { font-size: 1.05rem; }
.section__subtitle--dark { color: rgba(255,255,255,0.65); }

.grid { display: grid; gap: var(--space-lg); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Pain / feature / audience cards */
.pain-card, .feature-card, .audience-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.pain-card:hover, .feature-card:hover, .audience-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pain-card__icon, .feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-muted);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.pain-card__icon svg, .feature-card__icon svg { width: 22px; height: 22px; }

.audience-card h3 { color: var(--color-primary); }

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps__item { position: relative; padding-top: var(--space-xl); }
.steps__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* Compare table (Norma vs. generic AI) */
.compare-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table__row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  background: var(--color-background);
}
.compare-table__row > div { padding: var(--space-md) var(--space-lg); font-size: 0.95rem; }
.compare-table__row > div:first-child { font-weight: 700; color: var(--color-foreground); }
.compare-table__col--norma { background: var(--color-muted); font-weight: 600; color: var(--color-primary-dark); }
.compare-table__row--head > div { font-weight: 700; padding-bottom: var(--space-sm); }
.compare-table__row--head .compare-table__col--norma { background: var(--color-primary); color: #fff; }

@media (max-width: 700px) {
  .compare-table__row { grid-template-columns: 1fr; }
  .compare-table__row > div:first-child { padding-bottom: 0; }
  .compare-table__row--head { display: none; }
  .compare-table__row:not(:first-child) > div:nth-child(2)::before,
  .compare-table__row > div.compare-table__col--norma::before {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xs);
  }
  .compare-table__row:not(:first-child) > div:nth-child(2)::before {
    content: "ChatGPT / Gemini";
    color: var(--color-muted-foreground);
  }
  .compare-table__row > div.compare-table__col--norma::before {
    content: "Norma";
    color: var(--color-primary-dark);
  }
}

/* Security badges */
.badges { align-items: stretch; }
.badge-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-weight: 600;
  font-size: 0.95rem;
}
.badge-card svg { width: 28px; height: 28px; color: var(--color-primary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-md); max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  color: var(--color-foreground);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: var(--space-md) 0 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
}
.cta__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-xl); }
.cta .btn--primary { background: #fff; color: var(--color-primary); border-color: #fff; }
.cta .btn--primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--color-surface-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-3xl) 0 var(--space-lg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__brand span { font-weight: 800; font-size: 1.1rem; color: #fff; }
.footer__logo { width: 28px; height: 28px; }
.footer__brand p { max-width: 32ch; font-size: 0.9rem; }

.footer__col { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-xs); }
.footer__col a { font-size: 0.9rem; transition: color 200ms ease; }
.footer__col a:hover { color: #fff; }

.footer__bottom { padding-top: var(--space-lg); font-size: 0.85rem; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive hero */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { width: 100%; max-width: 480px; margin: var(--space-lg) auto 0; }
}
