/* ————————————————————————————————————————————————
   BUILD YOUR FUTURE — Conway Clouds landing
   Ported from Conway Clouds.dc.html (claude.ai/design)
   ———————————————————————————————————————————————— */

:root {
  /* tokens consumed by ca.js (rest-fig) */
  --cell: 12;
  --half: 6;
  --a-noise: 0.14;
  --a-flow: 0.5;
  --a-truth: 1;
  --ink: #141412;

  --paper: #efeee9;
  --card: #fbfaf7;
  --line: #e3e0d7;
  --mut: #67635a;
  --mut-2: #8b877c;
  --navy: #101b2e;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); overflow-x: hidden; }
* { box-sizing: border-box; }
a { color: #141412; }
a:hover { color: #55524a; }
::selection { background: #141412; color: #efeee9; }

@keyframes clA { 0%,100% { transform: scaleX(1.08) translateX(-22px); } 50% { transform: scaleX(1.08) translateX(22px); } }
@keyframes clB { 0%,100% { transform: scaleX(1.08) translateX(18px); } 50% { transform: scaleX(1.08) translateX(-18px); } }
@keyframes clC { 0%,100% { transform: scaleX(1.08) translateX(-15px); } 50% { transform: scaleX(1.08) translateX(15px); } }
@keyframes clD { 0%,100% { transform: scaleX(1.08) translateX(20px); } 50% { transform: scaleX(1.08) translateX(-20px); } }
@keyframes byfCloudFloat { 0%,100% { transform: translateY(0) rotate(-0.5deg); } 50% { transform: translateY(-11px) rotate(0.5deg); } }

.page { min-height: 100vh; min-height: 100svh; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #141412; }

/* fixed sky */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #4e92d0 0%, #8fc0e6 55%, #deeef8 100%); }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scroll-cue { position: absolute; left: 0; right: 0; bottom: 24px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.scroll-cue-label { font-family: 'Doto', monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.34em; color: rgba(255,255,255,0.85); text-shadow: 0 1px 10px rgba(30,60,95,0.4); }
.scroll-cue-line { width: 1px; height: 26px; background: rgba(255,255,255,0.65); }

/* nav */
.nav { position: fixed; top: 14px; left: 16px; right: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(251,250,247,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(20,20,18,0.06), 0 10px 30px rgba(20,20,18,0.08); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #141412; min-width: 0; }
.nav-brand img { height: 32px; display: block; }
.nav-brand-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.nav-brand-name sup { font-size: 0.45em; vertical-align: 0.75em; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 13.5px; color: #55524a; }
.nav-links a:hover { color: #141412; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { text-decoration: none; font-size: 13.5px; color: #141412; }
.btn-dark { text-decoration: none; background: #141412; color: #f5f4ef; border-radius: 10px; padding: 9px 16px; font-size: 13px; }
.btn-dark:hover { background: #2e2c27; color: #f5f4ef; }

.content { position: relative; z-index: 5; }

/* hero */
.hero-space { position: relative; height: 100vh; height: 100svh; }
.hero { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; will-change: transform, opacity; }
.hero-inner { display: grid; justify-items: center; gap: 20px; padding: 0 24px; }
.hero-cloud-float { pointer-events: auto; display: block; animation: byfCloudFloat 7s ease-in-out infinite; }
.hero-cloud { display: block; width: min(300px, 54vw); transition: transform 0.55s cubic-bezier(0.22,1,0.36,1); }
.hero-cloud:hover { transform: scale(1.06) rotate(-1.2deg); }
.hero-title { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 9vw, 150px); letter-spacing: 0.01em; text-align: center; white-space: nowrap; }
.hero-title sup { font-size: 0.32em; vertical-align: 0.9em; letter-spacing: 0.08em; }
.hero-sub { margin: 0; font-size: clamp(15px, 1.3vw, 19px); color: rgba(255,255,255,0.92); text-shadow: 0 1px 18px rgba(30,60,95,0.45); letter-spacing: 0.01em; text-align: center; }

/* slide to book */
.slider { pointer-events: auto; position: relative; margin-top: 14px; width: min(380px, 78vw); height: 58px; border-radius: 999px; background: rgba(20,35,60,0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.45); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.slider-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slider-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Doto', monospace; font-weight: 900; font-size: 12px; letter-spacing: 0.3em; color: rgba(255,255,255,0.95); text-shadow: 0 1px 8px rgba(30,60,95,0.4); padding-left: 34px; }
.slider-handle { position: absolute; top: 4px; left: 4px; width: 50px; height: 50px; border-radius: 999px; background: #fbfaf7; color: #141412; display: grid; place-items: center; font-family: 'Doto', monospace; font-weight: 900; font-size: 17px; box-shadow: 0 2px 10px rgba(20,30,50,0.3); will-change: transform; }

/* sheet */
.sheet { background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(15,30,55,0.3); }
.container { max-width: 1200px; margin: 0 auto; padding: 36px 28px 100px; }
.kicker { font-family: 'Doto', monospace; font-weight: 900; font-size: 13px; letter-spacing: 0.24em; color: var(--mut-2); }

/* stats */
.stats { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 38px; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 44px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; border-right: 1px solid var(--line); padding-right: 44px; }
.stat-body { display: grid; gap: 12px; }
/* named .stat-num, NOT .stat-n — ca.js claims .stat-n for its glyph-mask animation */
.stat-num { font-family: 'Doto', monospace; font-weight: 900; font-size: 64px; line-height: 1; }
.stat-caption { font-size: 16px; color: var(--mut); }
.stat-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.stat-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: #43413a; }
.btn-icon { justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 18px; font-size: 14px; }
.btn-glyph { font-family: 'Doto', monospace; font-weight: 900; font-size: 13px; }
.btn-light { text-decoration: none; background: var(--card); border: 1px solid #dbd8cd; color: #141412; }
.btn-light:hover { background: #f1efe7; color: #141412; }

/* novas */
.novas { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 120px 6px 30px; }
.novas-copy { display: flex; flex-direction: column; justify-content: flex-start; gap: 44px; }
.novas-title { margin: 0; font-weight: 500; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: pretty; }
.ink { color: #141412; }
.faded { color: #a9a599; }
.novas-copy-body { display: grid; gap: 24px; max-width: 360px; }
.novas-copy-body p { margin: 0; font-size: 15px; line-height: 1.65; color: #43413a; }
.novas > * { min-width: 0; }
.nova-stage { position: relative; justify-self: end; align-self: center; width: min(500px, 100%); min-width: 0; }
.nova-canvas { width: 100%; max-width: 100%; aspect-ratio: 1; display: block; cursor: crosshair; touch-action: none; }
.nova-modal { position: absolute; left: 50%; top: 60%; width: 224px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 34px rgba(20,20,18,0.16); opacity: 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; transform: translate(-50%, 8px); z-index: 3; }
.nova-modal .nm-tag { font-family: 'Doto', monospace; font-weight: 900; font-size: 10px; letter-spacing: 0.24em; color: var(--mut-2); }
.nova-modal .nm-title { font-size: 15px; font-weight: 600; color: #141412; margin-top: 6px; }
.nova-modal p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--mut); }
.nova-modal .nm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nova-modal .nm-cta { text-decoration: none; background: #141412; color: #f5f4ef; border-radius: 9px; padding: 7px 13px; font-size: 12.5px; }
.nova-modal .nm-price { font-family: 'Doto', monospace; font-weight: 900; font-size: 14px; color: #141412; }

/* pitch */
.pitch { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; padding: 90px 6px 0; }
.pitch h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.16; letter-spacing: -0.02em; text-wrap: pretty; }
.pitch p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--mut); max-width: 300px; justify-self: end; }

/* cards */
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 44px; margin-top: 70px; border-top: 1px solid #d9d5ca; padding-top: 44px; }
.card-col { display: grid; gap: 14px; align-content: start; }
.card-col h3 { margin: 0; font-size: 17px; font-weight: 600; }
.card-col > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mut); }
.rows { display: grid; gap: 10px; margin-top: 6px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.row-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #ffffff; display: grid; place-items: center; overflow: hidden; }
.row-icon img { width: 34px; height: 34px; object-fit: contain; }
.row-icon-navy { background: var(--navy); border: none; }
.row-icon-black { background: #101418; border: none; }
.row-icon-blue { background: #2f5cf6; border: none; }
.row-icon img.fit-cover { width: 44px; height: 44px; object-fit: cover; }
.pos-claw { object-position: center 45%; }
.pos-left { object-position: left center; }
.pos-banana { object-position: center; }
.pos-poly { object-position: 12% center; }
.row-text { display: grid; gap: 2px; min-width: 0; }
.row-name { font-size: 14px; font-weight: 600; }
.row-name-note { font-weight: 400; color: var(--mut-2); }
.row-sub { font-size: 12px; color: var(--mut-2); }
.row-price { margin-left: auto; font-family: 'Doto', monospace; font-weight: 900; font-size: 14px; }
.row-price-unit { font-size: 11px; }

/* footer rest figure */
.rest { text-align: center; padding: 120px 24px 90px; }
#rest-fig { width: min(460px, 82vw); aspect-ratio: 104/75; display: block; margin: 0 auto 36px; }
.rest-title { margin: 0 0 18px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: 0.01em; color: #141412; }
.rest-title sup { font-size: 0.32em; vertical-align: 0.9em; letter-spacing: 0.08em; }
.rest-sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--mut); }

/* waves + CTA card */
.waves-zone { position: relative; z-index: 2; }
.waves { overflow: hidden; border-radius: 0 0 26px 26px; }
.wave { display: block; width: 100%; height: 54px; position: relative; overflow: visible; }
.wave-1 { z-index: 1; }
.wave-2 { z-index: 2; margin-top: -34px; }
.wave-3 { z-index: 3; margin-top: -34px; }
.wave-4 { z-index: 4; margin-top: -34px; }
.flip { transform: scaleX(-1); }
.wave-path { transform-box: fill-box; transform-origin: center; }
.anim-clA { animation: clA 17s ease-in-out infinite; }
.anim-clB { animation: clB 21s ease-in-out infinite; }
.anim-clC { animation: clC 19s ease-in-out infinite; }
.anim-clD { animation: clD 23s ease-in-out infinite; }

.cta-card { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); z-index: 5; width: min(680px, 92%); background: linear-gradient(135deg, #0b1322, #3a5988); border-radius: 30px; padding: 4px; box-shadow: 0 22px 50px rgba(11,20,40,0.32); }
.cta-card-inner { background: var(--card); border-radius: 26px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { text-decoration: none; display: grid; gap: 20px; align-content: space-between; border-radius: 24px; padding: 22px; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), background 0.3s; }
.tile-dark { background: var(--navy); color: #f5f7fb; }
.tile-dark:hover { background: #1b2940; color: #f5f7fb; transform: translateY(-4px); }
.tile-light { background: #e3e9f2; color: var(--navy); }
.tile-light:hover { background: #d7e0ee; color: var(--navy); transform: translateY(-4px); }
.tile-ico-a { width: 44px; height: 32px; image-rendering: pixelated; }
.tile-ico-b { width: 84px; height: 46px; image-rendering: pixelated; }
.tile-text { display: grid; gap: 4px; }
.tile-name { font-size: 15px; font-weight: 600; }
.tile-sub { font-size: 13px; }
.tile-dark .tile-sub { color: #93a5c4; }
.tile-light .tile-sub { color: #5f6f8d; }

/* dark footer */
.foot { position: relative; z-index: 1; background: var(--navy); color: #dfe7f5; margin-top: -26px; padding-top: 26px; overflow: hidden; }
.foot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foot-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 150px 28px 40px; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(223,231,245,0.16); padding-top: 28px; flex-wrap: wrap; }
.foot-logo { height: 30px; display: block; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { text-decoration: none; font-size: 13px; color: #93a5c4; }
.foot-links a:hover { color: #dfe7f5; }
.foot-copy { font-size: 13px; color: #5f6f8d; }

/* ————— responsive ————— */
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-copy { grid-column: 1 / -1; }
  .stat:nth-child(2) { border-right: none; padding-right: 0; }
  .novas { grid-template-columns: 1fr; gap: 40px; padding-top: 90px; }
  .nova-stage { justify-self: center; }
  .pitch { grid-template-columns: 1fr; gap: 24px; padding-top: 70px; }
  .pitch p { justify-self: start; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-inner { padding: 0 16px; }
  .hero-title { font-size: clamp(26px, 8.2vw, 40px); }
  .nav { top: 10px; left: 10px; right: 10px; padding: 8px 12px; }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-brand-name { font-size: 17px; }
  .stats { grid-template-columns: 1fr; padding: 26px 22px; gap: 30px; }
  .stat { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 26px; gap: 18px; }
  .stat-num { font-size: 52px; }
  .cards { grid-template-columns: 1fr; }
  .cta-card-inner { grid-template-columns: 1fr; }
  .cta-card { position: relative; top: 0; left: 0; transform: none; width: min(680px, 92%); margin: -28px auto 0; }
  .foot-inner { padding-top: 60px; }
  .foot-bar { justify-content: center; text-align: center; }
  .rest { padding: 80px 20px 60px; }
  .container { padding: 28px 18px 70px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cloud-float { animation: none; }
  .anim-clA, .anim-clB, .anim-clC, .anim-clD { animation: none; }
  .hero-cloud { transition: none; }
  .tile { transition: none; }
}
