/* ─── NOODLE LANDING · BRAND CSS ─────────────────────────── */

:root {
  --off-white: #F7F5F2;
  --near-black: #111111;
  --orange: #E8572A;
  --mid-grey: #555555;
  --muted-grey: #999999;
  --rule: #E0DDD8;
  --panel: #EDEAE5;
  --dark: #1A1A1A;

  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

/* ─── Reset ───────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--near-black);
  background-color: var(--off-white);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input { font-family: var(--mono); }
img { max-width: 100%; display: block; }

::selection {
  background: rgba(232, 87, 42, 0.15);
  color: var(--near-black);
}

/* ─── Layout ──────────────────────────────────────────── */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.rule {
  height: 1px;
  background: var(--rule);
}

/* ─── Typography ──────────────────────────────────────── */

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-grey);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.label--orange { color: var(--orange); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -1.8px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-title--light { color: var(--off-white); }

.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 48px;
}

.section-sub--light { color: #888; }

.mono { font-family: var(--mono); }

/* ─── Reveal Animation ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 100ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 300ms; }
.reveal-d4 { transition-delay: 400ms; }
.reveal-d5 { transition-delay: 500ms; }

/* ─── Nav ─────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-grey);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav__link:hover { color: var(--near-black); }

/* ─── Hero ────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  padding: 80px 40px 100px;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1 1 460px;
  min-width: 300px;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.02;
  margin-bottom: 28px;
  min-height: 1.1em;
}

.hero__desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 36px;
  letter-spacing: -0.1px;
}

.hero__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-grey);
  margin-top: 14px;
}

/* ─── Cursor ──────────────────────────────────────────── */

.cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--orange);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.06s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Waitlist ────────────────────────────────────────── */

.waitlist {
  display: flex;
  max-width: 420px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.waitlist:focus-within { border-color: var(--orange); }

.waitlist--dark {
  border-color: #333;
}

.waitlist--dark:focus-within { border-color: var(--orange); }

.waitlist__input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  font-size: 14px;
  border: none;
  outline: none;
  background: white;
  color: var(--near-black);
}

.waitlist--dark .waitlist__input {
  background: var(--dark);
  color: var(--off-white);
}

.waitlist__btn {
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: var(--orange);
  color: white;
  border: none;
  transition: background-color 0.2s;
}

.waitlist__btn:hover { background: #d14a22; }

.waitlist__success {
  display: flex;
  align-items: center;
  gap: 10px;
}

.waitlist__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.waitlist__msg {
  font-size: 15px;
  font-weight: 500;
  color: var(--orange);
}

/* ─── Phone Mockup ────────────────────────────────────── */

.phone {
  width: 290px;
  height: 600px;
  background: var(--off-white);
  border-radius: 40px;
  border: 1.5px solid var(--rule);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 30px 80px rgba(17,17,17,0.08), 0 0 0 1px var(--rule);
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: var(--near-black);
  border-radius: 13px;
  z-index: 10;
}

.phone__statusbar {
  position: absolute;
  top: 44px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.phone__time {
  font-size: 14px;
  font-weight: 500;
}

.phone__screen {
  position: absolute;
  inset: 0;
  padding: 72px 22px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.phone__screen--capture {
  justify-content: center;
}

.phone__screen--hidden-up {
  opacity: 0;
  transform: translateY(-40px);
}

.phone__screen--hidden-down {
  opacity: 0;
  transform: translateY(40px);
}

.phone__screen--swiping-up {
  transform: translateY(-80px);
  opacity: 0.2;
}

.phone__screen--gone {
  opacity: 0;
  transform: translateY(-80px);
  pointer-events: none;
}

.phone__screen--no-transition {
  transition: none !important;
}

.phone__capture-text {
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.2px;
  min-height: 50px;
}

.phone__capture-text--placeholder {
  font-weight: 300;
  color: var(--muted-grey);
}

.phone__input-modes {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 14px;
}

.phone__swipe-area {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

.phone__swipe-bar {
  width: 36px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--rule);
  margin: 0 auto 7px;
  transition: all 0.3s ease;
}

.phone__swipe-bar--active {
  background: var(--orange);
  transform: scaleX(1.4);
}

.phone__swipe-hint {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted-grey);
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.phone__swipe-hint--active { color: var(--orange); }

.phone__feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.phone__feed-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.phone__feed-count {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-grey);
}

.phone__feed-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.phone__feed-entry-text {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 3px;
}

.phone__feed-entry-time {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-grey);
}

.phone__feed-entry-time--new { color: var(--orange); }

.phone__feed-hint {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-grey);
  text-align: center;
  padding-top: 8px;
  letter-spacing: 0.8px;
}

.phone__dot {
  position: absolute;
  bottom: 48px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 10px rgba(232,87,42,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.phone__dot--hidden {
  opacity: 0;
  transform: scale(0.5);
}

.phone__home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: var(--near-black);
  border-radius: 2px;
  z-index: 8;
}

/* ─── Stats Bar ───────────────────────────────────────── */

.stats {
  background: var(--panel);
}

.stats__inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 40px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.stat__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -1.5px;
  text-align: center;
}

.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-grey);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 4px;
}

/* ─── Quote Section ───────────────────────────────────── */

.quote-section {
  background: var(--near-black);
  padding: 100px 40px;
}

.quote-section__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.5;
  letter-spacing: -0.5px;
}

.quote__dim { color: var(--muted-grey); }

.quote--accent {
  font-weight: 500;
  color: var(--orange);
  margin-top: 24px;
}

/* ─── Features ────────────────────────────────────────── */

.features { padding: 100px 0 80px; }

.features__list { max-width: 620px; }

.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.feature__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--orange);
  min-width: 28px;
  padding-top: 2px;
}

.feature__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.feature__desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.6;
  max-width: 500px;
}

/* ─── Untangle Section ────────────────────────────────── */

.untangle-section {
  background: var(--dark);
  padding: 100px 0;
}

.untangle-demo {
  background: var(--dark);
  border-radius: 4px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid #2a2a2a;
}

.untangle-demo__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(85,85,85,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.untangle-demo__node {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.untangle-demo__node.is-visible { opacity: 1; }

.untangle-demo__node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 auto 6px;
}

.untangle-demo__node-label {
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0.85;
}

.untangle-demo__insight {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--near-black);
  border: 1px solid #333;
  padding: 16px 20px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.7s ease 1.4s;
}

.untangle-demo__insight.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.untangle-demo__insight-label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.untangle-demo__insight-text {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.55;
}

/* ─── Pricing ─────────────────────────────────────────── */

.pricing { padding: 100px 0; }

.pricing__grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: stretch;
}

.tier {
  flex: 1 1 280px;
  min-width: 260px;
  padding: 40px 32px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid transparent;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.tier:hover { border-color: var(--rule); }

.tier--accent {
  background: var(--near-black);
  border-color: #333;
}

.tier--accent:hover { border-color: var(--orange); }

.tier__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
}

.tier__name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-grey);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tier__price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 4px;
}

.tier--accent .tier__price { color: var(--off-white); }

.tier__period {
  font-size: 13px;
  color: var(--muted-grey);
  margin-bottom: 28px;
}

.tier__features {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier--accent .tier__features { border-color: #2a2a2a; }

.tier__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tier__feature-plus {
  color: var(--orange);
  font-size: 14px;
  line-height: 20px;
  flex-shrink: 0;
}

.tier__feature-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 20px;
}

.tier--accent .tier__feature-text { color: #bbb; }

/* ─── CTA Section ─────────────────────────────────────── */

.cta-section {
  background: var(--near-black);
  padding: 100px 40px;
  text-align: center;
}

.cta-section__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta__sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted-grey);
  line-height: 1.6;
  margin-bottom: 44px;
}

/* ─── Footer ──────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer__copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-grey);
}

/* ─── Floating Dot ────────────────────────────────────── */

.floating-dot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(232,87,42,0.3);
  z-index: 100;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}

.floating-dot--visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 20px 24px; }
  .nav__links { gap: 16px; }

  .hero { padding: 48px 24px 64px; gap: 48px; }
  .hero__content { min-width: 100%; }

  .phone { width: 260px; height: 540px; margin: 0 auto; }

  .stats__inner { gap: 32px; padding: 32px 24px; }
  .stat__value { font-size: 28px; }

  .quote-section { padding: 64px 24px; }

  .features { padding: 64px 0 48px; }

  .untangle-section { padding: 64px 0; }

  .pricing { padding: 64px 0; }
  .pricing__grid { flex-direction: column; }

  .cta-section { padding: 64px 24px; }

  .footer__inner { padding: 24px; }

  .waitlist { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero__title { letter-spacing: -2px; }
  .nav__link:first-child { display: none; }
  .stats__inner { gap: 24px; }
}

/* ─── Dark Mode ───────────────────────────────────────── */
/* Respects prefers-color-scheme. Swaps light/dark roles
   while keeping brand palette intact. Burnt orange stays
   as the sole accent. */

@media (prefers-color-scheme: dark) {
  :root {
    --off-white: #1A1A1A;
    --near-black: #F7F5F2;
    --mid-grey: #aaa;
    --muted-grey: #777;
    --rule: #2a2a2a;
    --panel: #222222;
    --dark: #111111;
    /* --orange stays #E8572A */
  }

  body {
    background-color: var(--off-white);
    color: var(--near-black);
  }

  ::selection {
    background: rgba(232, 87, 42, 0.25);
    color: #F7F5F2;
  }

  /* Waitlist inputs */
  .waitlist { border-color: #333; }
  .waitlist:focus-within { border-color: var(--orange); }
  .waitlist__input {
    background: #222;
    color: #F7F5F2;
  }
  .waitlist--dark { border-color: #444; }
  .waitlist--dark .waitlist__input {
    background: #181818;
    color: #F7F5F2;
  }

  /* Quote section — invert to light on dark scheme */
  .quote-section { background: #111; }
  .quote { color: #eee; }
  .quote__dim { color: #666; }

  /* Stats bar */
  .stats { background: var(--panel); }

  /* Features */
  .feature { border-bottom-color: var(--rule); }

  /* Untangle — already dark, deepen slightly */
  .untangle-section { background: #0d0d0d; }
  .untangle-demo { background: #111; border-color: #222; }
  .untangle-demo__insight { background: #0d0d0d; border-color: #2a2a2a; }

  /* Pricing */
  .tier { background: var(--panel); border-color: transparent; }
  .tier:hover { border-color: #333; }
  .tier--accent { background: #111; border-color: #333; }
  .tier--accent:hover { border-color: var(--orange); }
  .tier--accent .tier__price { color: #F7F5F2; }
  .tier--accent .tier__features { border-color: #2a2a2a; }
  .tier--accent .tier__feature-text { color: #aaa; }
  .tier__features { border-color: var(--rule); }

  /* CTA section */
  .cta-section { background: #111; }
  .cta__title { color: #F7F5F2; }
  .cta__sub { color: #777; }

  /* Footer */
  .footer { border-top-color: var(--rule); }

  /* Phone mockup — stays light to contrast against dark page */
  .phone {
    background: #F7F5F2;
    border-color: #333;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px #333;
  }
  .phone__time { color: #111; }
  .phone__statusbar svg rect { fill: #111; }
  .phone__capture-text { color: #111; }
  .phone__capture-text--placeholder { color: #999; }
  .phone__feed-title { color: #111; }
  .phone__feed-entry-text { color: #111; }
  .phone__swipe-area { border-top-color: #E0DDD8; }
  .phone__swipe-bar { background: #E0DDD8; }
  .phone__feed-entry { border-bottom-color: #E0DDD8; }
  .phone__home { background: #111; }
  .phone .rule { background: #E0DDD8; }

  /* Nav link hover */
  .nav__link:hover { color: #F7F5F2; }

  /* Section titles in dark context */
  .section-title--light { color: #F7F5F2; }
  .section-sub--light { color: #777; }

  /* Untangle nodes keep their original colours */
  .untangle-demo__grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  }
}
