:root {
  --ink: #172252;
  --muted: #61719b;
  --blue: #1d69e8;
  --blue-deep: #15358f;
  --cyan: #26d4ef;
  --mint: #8ae16b;
  --gold: #ffc73e;
  --orange: #ff8b32;
  --lavender: #a788dc;
  --paper: #f7fbff;
  --line: rgba(29, 71, 152, 0.14);
  --shadow: 0 28px 80px rgba(25, 66, 143, 0.16);
  --page: min(1180px, calc(100vw - 40px));
  --sans: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--blue); }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; border-radius: 999px; color: white; background: var(--blue-deep); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-shell { position: relative; overflow: hidden; }
.section-frame, .nav-shell { width: var(--page); margin-inline: auto; }

.nav-shell { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 18px; font-weight: 900; letter-spacing: -0.04em; }
.brand > span:last-child > span { color: var(--blue); }
.nav-shell nav { display: flex; gap: 30px; align-items: center; }
.nav-shell nav a { position: relative; color: #4d5d87; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-shell nav a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; content: ""; }
.nav-shell nav a:hover::after, .nav-shell nav a:focus-visible::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; justify-self: end; }
.nav-cta { padding: 11px 17px; border-radius: 999px; color: white; background: var(--blue-deep); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(21, 53, 143, 0.18); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 14px; background: white; box-shadow: 0 6px 20px rgba(29, 71, 152, 0.13); }
.menu-button span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 7vw, 100px); align-items: center; min-height: calc(100svh - 86px); padding-block: 64px 88px; }
.hero::before { position: absolute; z-index: -3; top: 0; bottom: 0; left: 50%; width: 100vw; background: url("assets/flexitrace-desktop-sky.png") center center / cover no-repeat; transform: translateX(-50%); content: ""; }
.hero::after { position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; background: linear-gradient(90deg, rgba(247,251,255,.96) 0%, rgba(247,251,255,.84) 34%, rgba(247,251,255,.28) 62%, rgba(247,251,255,.06) 100%); transform: translateX(-50%); content: ""; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 17px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase; }
.eyebrow span { color: var(--gold); }
h1, h2, h3, p, dl, dd { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 27px; font-size: clamp(54px, 6.3vw, 94px); font-weight: 900; letter-spacing: -0.075em; line-height: 0.96; }
h1 em, h2 em { color: var(--blue); font-style: normal; }
.hero-deck { max-width: 610px; margin-bottom: 30px; color: #52648f; font-size: clamp(16px, 1.45vw, 20px); font-weight: 530; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.app-store-badge { display: inline-flex; border-radius: 10px; box-shadow: 0 10px 25px rgba(27, 46, 105, 0.18); transition: transform 180ms ease, box-shadow 180ms ease; }
.app-store-badge:hover, .app-store-badge:focus-visible { box-shadow: 0 14px 32px rgba(27, 46, 105, 0.26); transform: translateY(-3px); }
.text-link { color: var(--blue-deep); font-size: 13px; font-weight: 850; }
.text-link span { display: inline-block; margin-left: 7px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateY(4px); }
.placeholder-note { margin: 9px 0 0; color: #8592b3; font-size: 10px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 54px); margin: 40px 0 0; }
.hero-stats div { padding-left: 14px; border-left: 2px solid rgba(29, 105, 232, 0.18); }
.hero-stats dt { color: var(--blue-deep); font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.hero-stats dd { margin: 3px 0 0; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }

.hero-visual { position: relative; min-height: 540px; }
.sun-glow { position: absolute; inset: 3% -4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 238, 135, 0.54), rgba(44, 198, 238, 0.14) 42%, transparent 69%); filter: blur(8px); animation: breathe 5s ease-in-out infinite; }
.app-icon-shell { position: absolute; top: 50%; left: 50%; width: min(410px, 78%); aspect-ratio: 1; overflow: hidden; border: 9px solid rgba(255, 255, 255, 0.86); border-radius: 24%; box-shadow: 0 35px 75px rgba(19, 57, 145, 0.25), inset 0 0 0 1px rgba(11, 50, 158, 0.12); transform: translate(-50%, -50%); will-change: transform; animation: iconFloat 5.5s ease-in-out infinite; }
.app-icon-shell img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-shell::after { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.38), transparent 32%); content: ""; }
.pen-bird-container { position: absolute; z-index: -1; top: 20%; left: -10vw; transform: scale(.3) translateX(-10vw); opacity: .72; filter: drop-shadow(0 7px 8px rgba(23,52,91,.16)); will-change: transform; animation: pen-fly-right-one 15s linear infinite; pointer-events: none; }
.pen-bird-container--one { top: 12%; animation-duration: 15s; animation-delay: 0s; }
.pen-bird-container--two { top: 22%; animation-name: pen-fly-right-two; animation-duration: 16s; animation-delay: 1s; }
.pen-bird-container--three { top: 8%; animation-duration: 14.6s; animation-delay: 9.5s; }
.pen-bird-container--four { top: 27%; animation-name: pen-fly-right-two; animation-duration: 16s; animation-delay: 10.25s; }
.pen-bird { width: 88px; height: 125px; background-image: url("assets/bird-cells-new.svg"); background-size: auto 100%; will-change: background-position; animation: pen-fly-cycle 1s steps(10) infinite; }
.pen-bird--one { animation-duration: 1s; animation-delay: -.5s; }
.pen-bird--two { animation-duration: .9s; animation-delay: -.75s; }
.pen-bird--three { animation-duration: 1.25s; animation-delay: -.25s; }
.pen-bird--four { animation-duration: 1.1s; animation-delay: -.5s; }

.feature-ribbon { display: flex; gap: 24px; align-items: center; width: max-content; min-width: 100%; padding: 18px 24px; color: white; background: linear-gradient(90deg, #15358f, #1d69e8, #06a5ca); font-size: 10px; font-weight: 900; letter-spacing: .14em; white-space: nowrap; }
.feature-ribbon i { color: var(--gold); font-style: normal; }

.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); align-items: center; padding-block: 130px; }
.section-heading h2, .album-copy h2, .trailer-copy h2, .relax-copy h2 { margin-bottom: 24px; font-size: clamp(46px, 5.1vw, 76px); font-weight: 900; letter-spacing: -.065em; line-height: 1; }
.section-heading > p:last-child, .album-copy > p, .trailer-copy > p, .relax-copy > p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.trace-demo { overflow: hidden; border: 1px solid rgba(37, 101, 214, .14); border-radius: 30px; background: rgba(255,255,255,.85); box-shadow: var(--shadow); }
.demo-top, .demo-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 22px; color: #6b7da7; background: rgba(242, 248, 255, .84); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.demo-top { border-bottom: 1px solid var(--line); }
.demo-bottom { border-top: 1px solid var(--line); }
.demo-bottom strong, .status { color: var(--blue); }
.trace-demo-image { display: block; width: 100%; height: 390px; padding: 16px; object-fit: contain; background: linear-gradient(160deg, #e6fbff, #f8f0ff 52%, #fff4d0); }

.journey { padding-block: 40px 130px; }
.compact-heading { display: grid; grid-template-columns: .45fr 1fr; gap: 30px; align-items: end; margin-bottom: 50px; }
.compact-heading h2 { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 390px; padding: 30px; overflow: hidden; border: 1px solid rgba(28, 67, 149, .1); border-radius: 28px; background: white; box-shadow: 0 18px 55px rgba(29, 71, 152, .1); }
.feature-card::after { position: absolute; right: -70px; bottom: -100px; width: 250px; height: 250px; border-radius: 50%; opacity: .18; content: ""; }
.card-blue::after { background: var(--cyan); }.card-gold::after { background: var(--gold); }.card-green::after { background: var(--mint); }
.card-number { display: block; margin-bottom: 60px; color: #9aa8c5; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.card-icon { position: absolute; top: 24px; right: 24px; display: grid; width: 65px; height: 65px; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 19px; font-weight: 900; box-shadow: 0 12px 30px rgba(29,105,232,.24); }
.card-gold .card-icon { color: #6c4200; background: var(--gold); }.card-green .card-icon { color: #194e14; background: var(--mint); }
.kicker { margin-bottom: 11px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.feature-card h3 { margin-bottom: 15px; font-size: 27px; letter-spacing: -.04em; line-height: 1.05; }
.feature-card > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.65; }

.relax { position: relative; padding-block: 130px; background: linear-gradient(135deg, #2d2568, #69529e 58%, #bd94c9); }
.relax::before { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 18% 25%, white 0 1px, transparent 1.5px), radial-gradient(circle at 72% 55%, #ffe98f 0 1px, transparent 1.5px); background-size: 170px 180px, 240px 220px; content: ""; }
.relax-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 7vw, 100px); align-items: center; }
.relax-art { overflow: hidden; border: 7px solid rgba(255,255,255,.2); border-radius: 32px; box-shadow: 0 35px 90px rgba(23,16,74,.42); transform: rotate(-1.5deg); }
.relax-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.relax-copy { color: white; }.relax-copy .eyebrow { color: #ffe17a; }.relax-copy h2 em { color: #ffd6f1; }.relax-copy > p { color: rgba(255,255,255,.78); }
.theme-list { display: grid; gap: 8px; padding: 0; margin: 32px 0 0; list-style: none; }
.theme-list li { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.08); }
.theme-list .swatch { grid-row: span 2; width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; }
.swatch.twilight { background: linear-gradient(135deg, #7765bc, #e7a9d8); }.swatch.ocean { background: linear-gradient(135deg, #1a8fc4, #75ddc2); }.swatch.garden { background: linear-gradient(135deg, #70c86b, #f1c777); }
.theme-list strong { font-size: 13px; }.theme-list small { color: rgba(255,255,255,.62); font-size: 11px; }

.soundtrack { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: center; padding-block: 140px; }
.album-art { position: relative; }.album-art img { width: 100%; aspect-ratio: 1; border-radius: 24px; object-fit: cover; box-shadow: 0 35px 90px rgba(25, 59, 139, .24); }
.track-list { padding: 0; margin: 35px 0 22px; list-style: none; border-top: 1px solid var(--line); }
.track-list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); }
.track-list span { color: #9aa7c1; font-size: 10px; font-weight: 850; }.track-list strong { font-size: 13px; }.track-list small { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.release-note { display: inline-block; padding: 9px 13px; border-radius: 999px; color: #6b4500 !important; background: #fff0b3; font-size: 9px !important; font-weight: 900; letter-spacing: .1em; }

.trailer { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(45px, 7vw, 90px); align-items: center; padding-bottom: 140px; }
.video-placeholder { position: relative; display: grid; min-height: 390px; place-items: center; overflow: hidden; border: 1px solid rgba(29, 105, 232, .15); border-radius: 30px; background: linear-gradient(145deg, rgba(20, 57, 146, .76), rgba(34, 186, 223, .56)), url("assets/dreamy-sky.png") center 62%/cover; box-shadow: var(--shadow); }
.video-placeholder::after { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent, rgba(16,34,91,.42)); content: ""; }
.play-button { position: relative; z-index: 2; display: grid; width: 86px; height: 86px; place-items: center; padding-left: 6px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; color: var(--blue-deep); background: rgba(255,255,255,.9); font-size: 26px; box-shadow: 0 20px 50px rgba(10,30,87,.35); transition: transform 180ms ease; }
.video-placeholder:hover .play-button { transform: scale(1.08); }
.video-label { position: absolute; z-index: 2; right: 22px; bottom: 20px; left: 22px; display: flex; justify-content: space-between; align-items: end; color: white; }
.video-label strong { font-size: 11px; letter-spacing: .1em; }.video-label small { font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.video-corner { position: absolute; z-index: 2; top: 20px; right: 22px; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 850; letter-spacing: .12em; }

.final-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-bottom: 90px; padding: 30px; border-radius: 28px; color: white; background: linear-gradient(115deg, var(--blue-deep), var(--blue) 58%, #19a8cf); box-shadow: 0 30px 70px rgba(25,62,152,.22); }
.final-cta > img { width: 100px; border: 4px solid rgba(255,255,255,.6); border-radius: 25%; box-shadow: 0 14px 35px rgba(10,30,91,.28); }
.final-cta .eyebrow { margin-bottom: 8px; color: #b9f3ff; }.final-cta h2 { margin-bottom: 4px; font-size: clamp(30px, 3.5vw, 48px); letter-spacing: -.05em; }.final-cta p:last-child { margin: 0; color: rgba(255,255,255,.76); }
.footer { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; min-height: 120px; border-top: 1px solid var(--line); color: #7786a8; font-size: 11px; }
.footer p { margin: 0; }.footer-brand { font-size: 15px; }.footer-legal { justify-self: end; line-height: 1.6; text-align: right; }.studio-credit { font-weight: 900; letter-spacing: .04em; }.neon-word { color: #ff3f9b; }.pixel-word { color: var(--blue); }

@keyframes breathe { 50% { opacity: .68; transform: scale(1.06); } }
@keyframes iconFloat { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 16px)); } }
@keyframes pen-fly-cycle { 100% { background-position: -900px 0; } }
@keyframes pen-fly-right-one {
  0% { transform: scale(.3) translateX(-10vw); }
  10% { transform: translateY(2vh) translateX(10vw) scale(.4); }
  20% { transform: translateY(0) translateX(30vw) scale(.5); }
  30% { transform: translateY(4vh) translateX(50vw) scale(.6); }
  40% { transform: translateY(2vh) translateX(70vw) scale(.6); }
  50% { transform: translateY(0) translateX(90vw) scale(.6); }
  60%, 100% { transform: translateY(0) translateX(110vw) scale(.6); }
}
@keyframes pen-fly-right-two {
  0% { transform: translateY(-2vh) translateX(-10vw) scale(.5); }
  10% { transform: translateY(0) translateX(10vw) scale(.4); }
  20% { transform: translateY(-4vh) translateX(30vw) scale(.6); }
  30% { transform: translateY(1vh) translateX(50vw) scale(.45); }
  40% { transform: translateY(-2.5vh) translateX(70vw) scale(.5); }
  50% { transform: translateY(0) translateX(90vw) scale(.45); }
  51%, 100% { transform: translateY(0) translateX(110vw) scale(.45); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .pen-bird-container { display: none; } }

@media (max-width: 960px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-shell nav { position: absolute; top: 72px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(15px); }
  .nav-shell nav.open { display: flex; }.nav-shell nav a { padding: 14px; }.nav-shell nav a::after { display: none; }
  .nav-cta { display: none; }.menu-button { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }.hero-visual { min-height: 500px; }.hero::after { background: linear-gradient(180deg, rgba(247,251,255,.92) 0%, rgba(247,251,255,.72) 48%, rgba(247,251,255,.18) 100%); }
  .how, .soundtrack, .trailer, .relax-inner { grid-template-columns: 1fr; }.how { padding-block: 100px; }.section-heading { max-width: 690px; }
  .compact-heading { grid-template-columns: 1fr; }.card-grid { grid-template-columns: 1fr; }.feature-card { min-height: 300px; }.card-number { margin-bottom: 38px; }
  .relax-art { order: 2; }.relax-copy { order: 1; }.soundtrack { padding-block: 100px; }.album-art { max-width: 620px; }
}

@media (max-width: 640px) {
  :root { --page: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 72px; }.hero { min-height: auto; padding-block: 62px 76px; }.hero-deck { font-size: 16px; }.hero-stats { gap: 17px; }.hero-stats dt { font-size: 19px; }
  .hero-visual { min-height: 390px; }.app-icon-shell { width: min(330px, 82%); border-width: 6px; }
  .feature-ribbon { gap: 16px; padding-block: 15px; }
  .how { gap: 40px; padding-block: 80px; }.trace-demo-image { height: 310px; padding: 11px; }.demo-top, .demo-bottom { padding-inline: 15px; }
  .journey { padding-bottom: 90px; }.feature-card { min-height: 310px; padding: 25px; }
  .relax { padding-block: 90px; }.relax-art { border-width: 4px; border-radius: 20px; }.theme-list li { padding: 10px; }
  .soundtrack { gap: 45px; padding-block: 90px; }.album-art img { border-radius: 18px; }
  .track-list li { grid-template-columns: 28px 1fr; padding-block: 9px; }.track-list small { grid-column: 2; margin-top: -8px; }
  .trailer { gap: 35px; padding-bottom: 90px; }.video-placeholder { min-height: 260px; }.video-label { display: grid; gap: 5px; }.video-label small { display: block; }
  .final-cta { grid-template-columns: 70px 1fr; padding: 22px; }.final-cta > img { width: 70px; }.final-cta .app-store-badge { grid-column: 1 / -1; width: fit-content; }
  .footer { grid-template-columns: 1fr; gap: 13px; padding-block: 35px; text-align: center; }.footer > * { justify-self: center !important; }
}
