/* ==========================================================================
   NADS MARKET — Pre-launch site
   Design tokens
   ========================================================================== */
:root {
  --ink: #0C1B3A;
  --ink-soft: #17284F;
  --blue: #1D3FD6;
  --blue-tint: #EEF1FD;
  --red: #E12A2A;
  --red-dark: #B81F1F;
  --yellow: #FFC93C;
  --yellow-dark: #E8AE12;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --gray-600: #5B6472;
  --gray-300: #C9CEDA;
  --gray-200: #E4E7ED;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container-w: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 2px 8px rgba(12, 27, 58, 0.06);
  --shadow-2: 0 12px 32px rgba(12, 27, 58, 0.12);
}

/* ==========================================================================
   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-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--gray-600); max-width: 62ch; }

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

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

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

button { font: inherit; cursor: pointer; }

input, select, textarea { font: inherit; }

fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.25em;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 780px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red); color: var(--white); box-shadow: var(--shadow-1); }
.btn-red:hover { background: var(--red-dark); box-shadow: var(--shadow-2); }

.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-1); }
.btn-yellow:hover { background: var(--yellow-dark); box-shadow: var(--shadow-2); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-lg { padding: 1em 2.1em; font-size: 1.05rem; }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo-mark { display: inline-flex; color: var(--ink); }
.logo--light { color: var(--white); }
.logo--light .logo-mark { color: var(--white); }

.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { display: inline-flex; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--gray-200);
  transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav ul { padding: 1.25rem 24px 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-nav a { font-weight: 500; font-size: 1.05rem; }
.mobile-nav .btn { margin-top: 0.5rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.hero-lead { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

.hero-visual { display: flex; justify-content: center; }
.flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; }

.flow-node {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 1.5em;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  background: var(--white);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--gray-200);
}
.flow-node--top, .flow-node--bottom { color: var(--ink); }
.flow-node--mid {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: scale(1.08);
}
.flow-icon { display: inline-flex; }

.flow-track { position: relative; width: 2px; height: 56px; background: var(--gray-300); }
.flow-pulse {
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
  animation: travel 2.4s ease-in-out infinite;
}
.flow-pulse--delay { animation-delay: 1.2s; background: var(--yellow); }
@keyframes travel {
  0% { top: -4px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 4px); opacity: 0; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */
.section { padding: 96px 0; }
.section--tint { background: var(--blue-tint); }
.section--ink { background: var(--ink); }
.section--ink p { color: #B7C0D9; }
.section--blue { background: var(--blue); }
.section--blue p { color: #DCE3FB; }

.section-head { max-width: 680px; margin-bottom: 3.2rem; }
.section-head--light h2, .section-head--light { color: var(--white); }
.section--ink .section-head p, .section--blue .section-head p { color: inherit; }

.section-cta { margin-top: 3rem; }

/* ==========================================================================
   What Is — two column cards
   ========================================================================== */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.feature-card {
  padding: 2.4rem;
  border-radius: var(--radius-lg);
}
.feature-card--blue { background: var(--blue); color: var(--white); }
.feature-card--blue p { color: #DCE3FB; }
.feature-card--ink { background: var(--ink); color: var(--white); }
.feature-card--ink p { color: #B7C0D9; }
.feature-card h3 { color: inherit; margin-bottom: 0.4em; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.pill-list li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  padding: 0.45em 0.95em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ==========================================================================
   Problem — comparison
   ========================================================================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}
.compare-divider { width: 1px; background: var(--gray-300); align-self: stretch; }
.compare-title { margin-bottom: 1.4rem; }
.compare-title--muted { color: var(--gray-600); }
.compare-title--brand { color: var(--blue); }

.compare-chain { display: flex; flex-direction: column; gap: 0.9rem; }
.compare-chain li {
  padding: 0.9em 1.2em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-display);
  position: relative;
}
.compare-chain li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 1.2em;
  bottom: -1.15rem;
  font-family: var(--font-body);
  color: var(--gray-300);
}
.compare-chain--muted li { background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-600); }
.compare-chain--brand li { background: var(--white); border: 1px solid var(--blue); color: var(--blue); box-shadow: var(--shadow-1); }

/* ==========================================================================
   For Businesses — numbered grid
   ========================================================================== */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.numbered-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.numbered-card:hover { border-color: var(--blue); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.numbered-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.numbered-card h3 { margin-bottom: 0.4em; }
.numbered-card p { margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   For Customers — journey
   ========================================================================== */
.journey-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}
.journey-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.journey-step:nth-child(5) { background: var(--red); border-color: var(--red); }

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.capability-list span {
  color: #B7C0D9;
  font-size: 0.92rem;
  position: relative;
  padding-left: 1.1em;
}
.capability-list span::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ==========================================================================
   How It Works — steps
   ========================================================================== */
.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  text-align: left;
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card p { margin: 0; color: var(--ink-soft); font-weight: 500; }
.step-connector {
  width: 40px;
  align-self: center;
  height: 2px;
  background: var(--gray-300);
  flex-shrink: 0;
}

/* ==========================================================================
   Categories
   ========================================================================== */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.category-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.75em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.category-chip:hover { border-color: var(--red); color: var(--red); }

/* ==========================================================================
   Vision — ecosystem row
   ========================================================================== */
.ecosystem-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.ecosystem-row span:not(.arrow) {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  padding: 0.7em 1.3em;
  border-radius: 999px;
}
.ecosystem-row .arrow { color: var(--yellow); font-weight: 700; }

/* ==========================================================================
   Register section
   ========================================================================== */
.register-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.choice-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
}
.choice-card h3 { font-size: 1.15rem; }

.form-panel {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}
.form-panel[hidden] { display: none; }
.form-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.form-panel-head h3 { margin: 0; }
.form-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gray-600);
  padding: 0.2em 0.4em;
}
.form-close:hover { color: var(--ink); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5em;
  padding: 0;
}
.req { color: var(--red); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: var(--red);
}
.field-error {
  color: var(--red);
  font-size: 0.85rem;
  margin: 0.4em 0 0;
  min-height: 1.1em;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem 1rem;
}
.checkbox-grid label, .checkbox-field label {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.checkbox-field { margin-top: 0.4rem; }

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status.success { color: #1D7A3A; }
.form-status.error { color: var(--red); }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item h3 { margin: 0; font-size: 1rem; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.accordion-trigger::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel p { padding-bottom: 1.5rem; margin: 0; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; }
.final-cta p { max-width: 520px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--white); padding: 4rem 0 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { color: #B7C0D9; margin: 0.8em 0; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.social-link:hover { background: var(--red); border-color: var(--red); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { color: #B7C0D9; font-size: 0.94rem; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom { padding: 1.6rem 0; }
.footer-bottom p { color: #7C87A3; font-size: 0.85rem; margin: 0; }

/* ==========================================================================
   Reveal-on-scroll (subtle, section-level only)
   Note: the ".reveal" class is added by JS itself, so content is only ever
   hidden if JavaScript is confirmed to be running and about to reveal it.
   If JS fails to load, elements simply keep their default full visibility.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }

  .two-col-cards { grid-template-columns: 1fr; }
  .numbered-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-divider { display: none; }

  .steps-row { flex-direction: column; }
  .step-connector { width: 2px; height: 32px; margin: 0 auto; }

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

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .numbered-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .flow-node { font-size: 0.9rem; padding: 0.85em 1.1em; }
}
