/* Saudax Landing — design tokens & base styles */

:root {
  --accent: #22c55e;
  --accent-600: #16a34a;
  --accent-700: #15803d;
  --accent-tint: #dcfce7;
  --accent-soft: #f0fdf4;

  --ink-0: #0a0c10;
  --ink-1: #11141b;
  --ink-2: #1a1f29;
  --ink-3: #2a3140;

  --fg-0: #0d1117;
  --fg-1: #1f2937;
  --fg-2: #4b5563;
  --fg-3: #6b7280;
  --fg-4: #9ca3af;

  --bg-0: #ffffff;
  --bg-1: #fafaf9;
  --bg-2: #f4f4f3;
  --bg-3: #e9eae7;

  --line: #e7e8e4;
  --line-strong: #d4d6d1;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --font-sans: "Onest", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --density: 1; /* tweakable */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-0);
  background: var(--bg-0);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: calc(96px * var(--density)) 0;
  position: relative;
}

.section-tight {
  padding: calc(72px * var(--density)) 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 500; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }

p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #06140a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 24px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost {
  background: transparent;
  color: var(--fg-0);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--fg-2); }
.btn-dark {
  background: #fff;
  color: var(--ink-0);
}
.btn-dark-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-dark-ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* Tag / badge */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--fg-1);
}
.tag-dark {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* Card */
.card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover { border-color: var(--line-strong); }

.muted { color: var(--fg-2); }
.mono { font-family: var(--font-mono); }

/* Grid utilities */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Subtle stripe placeholder */
.placeholder-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    var(--bg-2) 0, var(--bg-2) 8px,
    var(--bg-1) 8px, var(--bg-1) 16px
  );
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-3);
}

/* Section divider line */
.rule { height: 1px; background: var(--line); width: 100%; }

/* Fine grid (faint) */
.faint-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reveal-on-scroll hook */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* Form */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 13px; color: var(--fg-2);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.field input {
  height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--fg-0);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.field.error input { border-color: #ef4444; }
.field .err {
  font-size: 12px; color: #ef4444; font-family: var(--font-mono);
}

/* Accordion */
.acc-item {
  border-top: 1px solid var(--line);
}
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-0);
}
.acc-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 200ms ease;
}
.acc-item.open .acc-icon { background: var(--accent); color: #06140a; border-color: var(--accent); transform: rotate(45deg); }
.acc-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms cubic-bezier(.2,.7,.2,1);
}
.acc-panel-inner {
  padding: 0 0 24px 0;
  color: var(--fg-2);
  font-size: 16px;
  max-width: 720px;
}
