/* ============================================================
   REFYN — mobile base styles
   Tokens: ink #0A0A08 / bone #F7F5EF / violet #5B4FE8 / stone #8A8578
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   ============================================================ */

:root {
  --ink: #432818;
  --ink-soft: #543420;
  --bone: #EDEBE3;
  --bone-dim: #E2DFD4;
  --white: #FAFAF8;
  --gold: #99582A;
  --gold-dim: #7A461F;
  --gold-glow: rgba(153, 88, 42, 0.35);
  --camel: #BB9457;
  --wine: #6F1D1B;
  --apricot: #FFE6A7;
  --navy: #1C2942;
  --navy-soft: #24304A;
  --stone: #8A8578;
  --stone-dim: #5F5B50;
  --line: rgba(67, 40, 24, 0.12);
  --line-on-ink: rgba(250, 250, 248, 0.12);

  --violet: var(--gold);
  --violet-dim: var(--gold-dim);
  --violet-glow: var(--gold-glow);

  --font-display: 'Space Grotesk', sans-serif;
  --font-serif: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 100%;
  --gutter: 20px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.is-selectable,
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }

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

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

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.section-eyebrow--light { color: var(--bone); opacity: 0.55; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title--light { color: var(--bone); }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--violet);
  color: var(--bone);
}
.btn--primary:hover { background: var(--violet-dim); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--large { padding: 16px 30px; font-size: 15px; }

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 12px; left: 14px; right: 14px;
  z-index: 100;
  background: var(--bone);
  border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(10, 10, 10, 0.25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__toggle {
  width: 32px; height: 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: none;
  border: none;
}
.nav__toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-desktop-links {
  display: none;
}

/* ============ FULL-SCREEN NAV ============ */

.nav-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  display: flex;
  flex-direction: column;
}

.nav-screen.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.nav-screen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  flex-shrink: 0;
}
.nav-screen__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--bone);
  letter-spacing: -0.02em;
}

.nav-screen__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-soft);
  color: var(--bone);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.nav-screen__panel {
  position: absolute;
  top: 74px; left: 0; right: 0; bottom: 0;
  padding: 8px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}
.nav-screen__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nav-screen__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  border-top: 1px solid rgba(250, 250, 248, 0.12);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
}

.nav-screen__panel .nav-screen__row:last-child {
  border-bottom: 1px solid rgba(250, 250, 248, 0.12);
}

.nav-screen__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 248, 0.25);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-screen__cta {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 248, 0.25);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-screen__back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 4px;
  margin-bottom: 12px;
  cursor: pointer;
}

.nav-screen__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--bone);
  margin-bottom: 20px;
  padding: 0 4px;
}

.nav-screen__link {
  display: block;
  padding: 18px 4px;
  border-top: 1px solid rgba(250, 250, 248, 0.12);
}
.nav-screen__link:last-child {
  border-bottom: 1px solid rgba(250, 250, 248, 0.12);
}

.nav-screen__panel .nav-screen__row:last-child {
  border-bottom: 1px solid rgba(250, 250, 248, 0.12);
}

.nav-screen__row-end {
  border-top: 1px solid rgba(250, 250, 248, 0.12);
}

.nav-screen__link-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--bone);
  margin-bottom: 4px;
}
.nav-screen__link-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--stone);
  line-height: 1.4;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 110px var(--gutter) 40px;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px; 
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__mesh { display: none; }

.hero__trace {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  color: var(--violet-glow);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

.hero__trace-svg { width: 100%; height: 100%; }
#heroTracePath {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: trace-draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
@keyframes trace-draw {
  to { stroke-dashoffset: 0; }
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 28px;
  opacity: 0;
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 12vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 40px;
  opacity: 0;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero__headline-type-wrap {
  display: block;
  min-height: 2.2em;
}

.hero__headline-type {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  opacity: 1;
  filter: blur(0px);
  transform: translateX(0);
}

.hero__headline-type.is-blowing {
  opacity: 0;
  filter: blur(6px);
  transform: translateX(24px);
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__actions {
  display: flex;
  opacity: 0;
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}
.hero__actions .btn { width: auto; padding-left: 32px; padding-right: 32px; }

@media (max-width: 899px){
    .hero__graphic{
        display:none;
    }
}

/* ============ HERO DEMO CARD ============ */
.hero__demo {
  position: relative;
  z-index: 2;
  background: var(--ink);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 30px 60px -20px rgba(10, 10, 8, 0.35);
}
.demo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-on-ink);
}
.demo__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bone);
  opacity: 0.5;
}
.demo__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bone);
  opacity: 0.75;
}
.demo__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.demo__body { display: flex; flex-direction: column; gap: 14px; }

.demo__msg {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 4px;
}
.demo__msg--user {
  background: var(--line-on-ink);
  color: var(--bone);
  align-self: flex-start;
  max-width: 85%;
}
.demo__msg--thinking {
  background: transparent;
  border: 1px dashed rgba(91, 79, 232, 0.4);
  color: var(--stone);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.demo__msg--settled {
  background: rgba(91, 79, 232, 0.12);
  border: 1px solid rgba(91, 79, 232, 0.3);
  color: var(--bone);
}
.demo__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 6px;
  opacity: 0.8;
}
.demo__label--settled {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #A5F3C4;
}
.demo__icon { width: 15px; height: 15px; flex-shrink: 0; }
.demo__hash {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
}

.hero__scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.hero__scroll-cue span {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--stone), transparent);
  display: block;
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============ DIVIDER ============ */

.divider {
  height: 180px;
  background: repeating-linear-gradient(
    65deg,
    var(--ink) 0px,
    var(--ink) 26px,
    var(--apricot) 26px,
    var(--apricot) 52px
  );
}

.divider--zigzag {
  clip-path: none;
  -webkit-clip-path: none;
}

.divider--zigzag-flip {
  clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 55% 0%, 40% 55%, 25% 0%, 0% 0%);
  -webkit-clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 55% 0%, 40% 55%, 25% 0%, 0% 0%);
}

@keyframes headline-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-14px); }
}

/* ============ THE LOOP ============ */
.loop {
  position: relative;
  padding: 88px 0 88px var(--gutter);
  background: var(--bone-dim);
}
.loop .section-title { margin-bottom: 64px; }

.loop__trace-wrap { display: none; }

.loop__steps {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.loop__step {
  position: relative;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: baseline;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.65;
}
.loop__step.is-active { transform: translateX(4px); }

.loop__step:first-child { border-top: 1px solid var(--line); }
.loop__step.is-active { opacity: 1; }

.loop__step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--stone);
  transition: color 0.4s ease;
}
.loop__step.is-active .loop__step-num { color: var(--gold-dim); }

.loop__step-body { min-width: 0; }

.loop__step-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
  transition: color 0.4s ease;
}
.loop__step.is-active .loop__step-index { color: var(--gold-dim); }

.loop__step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--ink);
}
.loop__step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-dim);
  max-width: 42ch;
}


/* ============ STACK ============ */

.stack {
  padding: 120px var(--gutter) 96px;
  background: var(--ink);
}
.stack__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}
.stack__all-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bone);
  border-radius: 999px;
  padding: 14px 24px;
  white-space: nowrap;
  transition: background 200ms ease, transform 200ms ease;
}
.stack__all-btn:active {
  background: var(--apricot);
  transform: scale(0.97);
}

.stack__carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
}
.stack__carousel::-webkit-scrollbar { display: none; }

.stack__card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--ink-soft);
  border: 1px solid var(--line-on-ink);
  border-radius: 6px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.stack__card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 12px;
}

.stack__card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin-bottom: 10px;
}

.stack__card-desc-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--bone-dim);
  margin-bottom: 20px;
}

.stack__card-diagram {
  height: 150px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.stack__diagram-svg {
  width: 150px;
  height: 150px;
  color: var(--bone-dim);
  opacity: 0.85;
}

.stack__diagram-svg .diagram-draw {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.stack__diagram-svg .diagram-pulse {
  opacity: 0.4;
  transform-origin: center;
  transition: opacity 500ms ease, transform 500ms ease;
}
.stack__card--in-view .diagram-draw { stroke-dashoffset: 0; }
.stack__card--in-view .diagram-pulse {
  opacity: 1;
  animation: diagramPulse 2.2s ease-in-out 900ms infinite;
}
@keyframes diagramPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 1; }
}

.stack__card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  transition: opacity 200ms ease;
}
.stack__card-link:active { opacity: 0.7; }

.stack__card-link-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  color: var(--bone);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.stack__card-link-icon svg { width: 16px; height: 16px; }
.stack__card-link:active .stack__card-link-icon {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--bone);
  transform: scale(0.94);
}

.stack__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.stack__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(247, 245, 239, 0.25);
  transition: background 0.2s ease, width 0.2s ease;
}
.stack__dot--active {
  background: var(--violet);
  width: 16px;
  border-radius: 3px;
}

/* ============ PROOF ============ */
.proof {
  padding: 80px var(--gutter);
  text-align: center;
}
.proof__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}
.proof__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 16vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.proof__unit {
  font-size: clamp(18px, 5vw, 24px);
  color: var(--violet);
  font-weight: 600;
}
.proof__sub {
  font-size: 15px;
  color: var(--stone-dim);
  margin-bottom: 48px;
}

.proof__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.proof__stat {
  background: var(--bone);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof__stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
}
.proof__stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
}

/* ============ TRUST ============ */
.trust {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 28px;
}
.trust__logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-items: center;
}
.trust__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--stone);
  opacity: 0.6;
}

/* ============ CAPABILITIES ============ */
.capabilities {
  padding: 80px var(--gutter);
}
.capabilities .section-title { margin-bottom: 40px; }

.capabilities__grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cap-card {
  background: var(--bone);
  padding: 26px 22px;
}
.cap-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}
.cap-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--stone-dim);
}

/* ============ DEVELOPERS ============ */
.developers__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--camel);
}

/* ---------- DEV DEMO ---------- */

.dev-demo {
  padding: 40px 14px;
  background: var(--surface);
}

.dev-demo__frame {
  background: var(--bone);
  border: 10px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0,0,0,0.4);
  position: relative;
}
.dev-demo__notch {
  height: 30px;
  background: var(--ink);
  position: relative;
}
.dev-demo__notch::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #0A0805;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.dev-demo__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--ink);
  border-bottom: 1px solid var(--line-on-ink);
}

.dev-demo__header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--camel);
  flex-shrink: 0;
}
.dev-demo__header-dot--live {
  animation: devDemoLivePulse 1.8s ease-in-out infinite;
}
@keyframes devDemoLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(187, 148, 87, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(187, 148, 87, 0); }
}

.dev-demo__header-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone);
}

.dev-demo__thread {
  padding: 24px 18px;
  min-height: 440px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dev-demo__msg {
  max-width: 82%;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.dev-demo__msg p { margin: 0; }
.dev-demo__msg--visible { opacity: 1; transform: translateY(0); }

.dev-demo__avatar {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--camel);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.dev-demo__msg--agent {
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.dev-demo__msg--agent .dev-demo__msg-body {
  background: var(--sand);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.dev-demo__msg-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-bottom: 4px;
}
.dev-demo__msg-label em {
  font-style: normal;
  opacity: 0.7;
}

.dev-demo__msg--user {
  align-self: flex-end;
  background: var(--camel);
  color: var(--bone);
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
}

.dev-demo__typing {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 250ms ease, height 250ms ease;
}
.dev-demo__typing--visible {
  height: 32px;
  opacity: 1;
}
.dev-demo__typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--sand);
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.dev-demo__typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--stone);
  animation: devDemoTypingBounce 1.1s ease-in-out infinite;
}
.dev-demo__typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.dev-demo__typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes devDemoTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.dev-demo__receipt {
  align-self: flex-start;
  max-width: 88%;
  padding: 14px 16px;
  margin-top: 4px;
  border-left: 3px solid var(--camel);
  background: var(--sand);
  color: var(--ink);
  border-radius: 4px 12px 12px 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.dev-demo__receipt.dev-demo__msg--visible { opacity: 1; transform: translateY(0); }
.dev-demo__receipt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 6px;
}
.dev-demo__receipt-tag svg { width: 12px; height: 12px; }

.dev-demo__receipt p {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}
.dev-demo__receipt-hash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  margin-top: 8px;
}

.dev-demo__receipt-hash svg { width: 12px; height: 12px; }

.dev-demo__inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bone);
}
.dev-demo__inputbar-placeholder {
  flex: 1;
  font-size: 14px;
  color: var(--stone);
}
.dev-demo__inputbar-send {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--camel);
  border-radius: 50%;
  color: var(--bone);
}
.dev-demo__inputbar-send svg { width: 16px; height: 16px; }

.dev-demo__caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  margin-top: 20px;
}

/* ============ CTA ============ */
.cta-section {
  padding: 90px var(--gutter);
  text-align: center;
}
.cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.cta__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.cta__headline-accent { color: var(--stone); }
.cta__sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--stone-dim);
  max-width: 40ch;
  margin: 0 auto 32px;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.cta__notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
}

/* ============ FOOTER ============ */
.footer {
  padding: 56px var(--gutter) 32px;
  background: var(--ink);
  color: var(--bone);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  display: block;
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 40ch;
  margin-bottom: 24px;
}

.footer__socials { display: flex; gap: 16px; margin-bottom: 48px; }
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  opacity: 0.6;
  transition: opacity 200ms ease;
}
.footer__social-link svg { width: 18px; height: 18px; }
.footer__social-link:active { opacity: 1; }

.footer__cols {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 4px;
}
.footer__col a { font-size: 14px; color: var(--stone); }

.footer__bottom {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-dim);
  padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
}



/* ============ ECOSYSTEM PAGE ============ */

.eco {
  padding-top: 100px;
}

.eco__hero {
  padding: 0 var(--gutter) 24px;
}

.eco__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.eco__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 16px;
}

.eco__subhead {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 34ch;
}

.eco__spotlight {
  padding: 0 var(--gutter) 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eco__card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(250, 250, 248, 0.1);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.eco__card:active {
  transform: scale(0.96);
  border-color: rgba(250, 250, 248, 0.35);
  filter: brightness(1.12);
}

.eco__card--slete {
  background: var(--ink-soft);
}
.eco__card--slete:active {
  background: var(--ink);
}

.eco__card--luminth {
  background: var(--camel);
}
.eco__card--luminth:active {
  background: #a5813f;
}

.eco__card-logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
}

.eco__card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco__card-body {
  flex: 1;
  min-width: 0;
}

.eco__card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--bone);
  margin-bottom: 4px;
}

.eco__card--luminth .eco__card-name {
  color: var(--ink);
}

.eco__card-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--stone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 2);
}

.eco__card--luminth .eco__card-desc {
  color: var(--ink-soft);
}

.eco__card-go {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 248, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease;
}

.eco__card--slete .eco__card-go {
  color: var(--camel);
  border-color: rgba(187, 148, 87, 0.4);
}

.eco__card--luminth .eco__card-go {
  color: var(--ink-soft);
  border-color: rgba(67, 40, 24, 0.3);
}

.eco__card:active .eco__card-go {
  border-color: var(--gold);
}

.eco__more {
  padding: 48px var(--gutter) 80px;
}

.eco__more-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  text-align: center;
}


/* ============ PRICING PAGE ============ */

.pricing {
  padding-top: 90px;
}

.pricing__hero {
  padding: 0 var(--gutter) 8px;
}

.pricing__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.pricing__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 16px;
}

.pricing__subhead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 36ch;
}

.pricing__plans {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pricing__card:nth-child(3) {
  grid-column: 1 / -1;
}

.pricing__card {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid rgba(250, 250, 248, 0.1);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

.pricing__card--featured {
  background: var(--camel);
  border-color: var(--camel);
}

.pricing__card--featured .pricing__plan-name,
.pricing__card--featured .pricing__amount {
  color: var(--ink);
}

.pricing__card--featured .pricing__plan-desc,
.pricing__card--featured .pricing__period {
  color: var(--ink-soft);
}

.pricing__card--featured .pricing__features li {
  color: var(--ink);
  border-top-color: rgba(67, 40, 24, 0.15);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.pricing__plan-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--bone);
  margin-bottom: 6px;
}

.pricing__plan-desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: var(--stone);
  margin-bottom: 14px;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--bone);
}

.pricing__period {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--stone);
}

.pricing__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.pricing__features li {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--bone);
  padding: 8px 0;
  border-top: 1px solid rgba(250, 250, 248, 0.08);
}

.pricing__features li:first-child {
  border-top: none;
}

.pricing__cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 248, 0.25);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
}

.pricing__cta--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.pricing__row-end {
  border-top: 1px solid rgba(250, 250, 248, 0.08);
}

.pricing__trust {
  padding: 8px var(--gutter) 20px;
}

.pricing__trust-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
  text-align: center;
  max-width: 42ch;
  margin: 0 auto;
}

.pricing__note {
  padding: 32px var(--gutter) 60px;
}

.pricing__note-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  text-align: center;
}