/* ==================================================
   Ingso public landing page — dedicated stylesheet.
   Uses Ingso's established charcoal/near-black + vivid-green visual
   identity, but is a wholly separate file with no shared dependency
   on the Builder's stylesheet or scripts. No external fonts, no
   CDNs, no script dependency — fully self-contained.
   ================================================== */

:root {
  --void: #0A0E13;            /* page background — deepest layer */
  --void-alt: #0D1218;        /* alternating section tint, one step up */
  --panel-bg: #12181F;        /* card / panel surface */
  --panel-raised: #171F27;    /* hovered / emphasized panel surface */
  --panel-border: #212A33;
  --ink: #F5F7F8;             /* primary text on dark */
  --ink-muted: #96A1AB;       /* secondary text on dark */
  --ink-faint: #626C75;
  --emerald: #00D85A;         /* primary accent (vivid Ingso green) */
  --emerald-strong: #00B84C;  /* hover / pressed */
  --emerald-bright: #3BFA8C;  /* glow highlight */
  --emerald-soft: rgba(0, 216, 90, 0.14);
  --emerald-glow: rgba(0, 216, 90, 0.22);
  --line: #202830;
  --line-soft: #161D23;
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { line-height: 1.6; }

a { color: var(--emerald); }
a:hover { color: var(--emerald-bright); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn[aria-disabled="true"] {
  cursor: default;
}

.btn-primary {
  background: var(--emerald);
  color: #05170C;
  box-shadow: 0 0 0 1px rgba(0, 216, 90, 0.35), 0 10px 26px rgba(0, 216, 90, 0.22);
}

.btn-primary:hover {
  background: var(--emerald-bright);
  color: #05170C;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 216, 90, 0.45), 0 14px 32px rgba(0, 216, 90, 0.3);
}

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

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

.btn-ghost .play {
  display: inline-flex;
  font-size: 10px;
  color: var(--emerald);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 13.5px;
  flex: none;
}

.btn-follow { margin-top: 28px; }

/* ---------- Header ---------- */

header.site-header {
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 68px;
}

.wordmark {
  margin-right: auto;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--emerald);
  text-decoration: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  position: relative;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 2px;
  transition: color 0.2s var(--ease);
}

nav.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--emerald);
  transition: right 0.25s var(--ease);
}

nav.site-nav a:hover { color: var(--ink); }
nav.site-nav a:hover::after { right: 0; }

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

.hero {
  position: relative;
  padding: 108px 0 88px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--emerald-glow), rgba(0, 216, 90, 0.05) 55%, transparent 75%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto 20px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  animation: fadeRise 0.8s var(--ease) both;
}

.hero .lede {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  animation: fadeRise 0.8s 0.08s var(--ease) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeRise 0.8s 0.14s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  box-shadow: var(--shadow-sm);
  animation: fadeRise 0.7s var(--ease) both;
}

.hero-badge .dot,
.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* ---------- Section shell ---------- */

section { padding: 100px 0; }

section:nth-of-type(even) { background: var(--void-alt); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  color: var(--emerald);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 33px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.section-lede {
  color: var(--ink-muted);
  max-width: 620px;
  font-size: 16.5px;
  margin: 0 0 44px;
}

.reveal { animation: fadeRise 0.7s var(--ease) both; }

@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

/* ambient green fades through additional sections */
#how-it-works, #what-were-building {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#how-it-works::before,
#what-were-building::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 620px;
  height: 420px;
  background: radial-gradient(closest-side, var(--emerald-glow), transparent 70%);
  opacity: 0.35;
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

#what-were-building::before { top: auto; bottom: -160px; left: -100px; right: auto; }

/* ---------- Product preview ---------- */

#preview .wrap { position: relative; }

.preview-card {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: var(--shadow-lg);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: -40px -40px auto -40px;
  height: 260px;
  background: radial-gradient(closest-side, var(--emerald-glow), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.5;
}

.preview-card img { width: 100%; height: auto; }

.preview-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  background: var(--void-alt);
}

.preview-caption::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
}

/* ---------- Steps ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.step {
  position: relative;
  padding: 0 10px;
}

.step .num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--void-alt);
  border: 1px solid var(--panel-border);
  color: var(--emerald);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--void), var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.step:hover .num {
  border-color: var(--emerald);
  box-shadow: 0 0 0 6px var(--void), 0 0 0 4px var(--emerald-soft);
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Creation categories ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.category-card:hover {
  transform: translateY(-3px);
  background: var(--panel-raised);
  border-color: rgba(0, 216, 90, 0.35);
  box-shadow: var(--shadow-md);
}

.category-card .icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  margin-bottom: 14px;
  color: var(--emerald);
}

.category-card .icon svg { width: 100%; height: 100%; display: block; }

.category-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.category-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Status / Private Early Access ---------- */

.status-card {
  position: relative;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--emerald-soft), transparent 45%);
  pointer-events: none;
}

.status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--void-alt);
  border: 1px solid rgba(0, 216, 90, 0.35);
  color: var(--emerald);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.status-card > p {
  position: relative;
  max-width: 640px;
  color: var(--ink-muted);
  font-size: 15.5px;
}

.status-card ul {
  position: relative;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
  display: grid;
  gap: 12px;
}

.status-card li {
  padding-left: 26px;
  position: relative;
}

.status-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.status-card li.real::before {
  background: var(--emerald-soft);
  border: 1.5px solid var(--emerald);
}

.status-card li.building::before {
  background: transparent;
  border: 1.5px dashed var(--ink-faint);
}

/* ---------- Follow the build (informational, non-interactive) ---------- */

.follow-block {
  position: relative;
  text-align: center;
  padding: 88px 0;
}

.follow-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.follow-block .kicker {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 700;
  margin: 0 0 12px;
}

.follow-block p {
  color: var(--ink-muted);
  font-size: 16.5px;
  max-width: 520px;
  margin: 0 auto;
}

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

footer.site-footer {
  position: relative;
  padding: 40px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- Motion ---------- */

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--emerald-soft); }
  50% { box-shadow: 0 0 0 6px rgba(0, 216, 90, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

@media (max-width: 900px) {
  section { padding: 76px 0; }
  .hero { padding: 96px 0 64px; }
  .hero .lede { max-width: 560px; }
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 420px;
    margin: 0 auto;
  }
  .steps::before {
    top: 0;
    bottom: 0;
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
  }
  .step { display: flex; gap: 18px; align-items: flex-start; padding: 0; }
  .step .num { flex: none; margin-bottom: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero { padding: 84px 0 56px; }
  .hero::before { width: 640px; height: 420px; top: -180px; left: -10%; }
  section { padding: 56px 0; }
  .follow-block { padding: 64px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .status-card { padding: 26px 22px; }
  .hero-actions { gap: 12px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}

@media (max-width: 480px) {
  header.site-header { position: static; }
  .site-header .wrap {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .wordmark { margin-right: 0; }
  nav.site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }
  nav.site-nav a { font-size: 13px; }
  .btn-nav { order: 3; }
}

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