/* MadeWithIN: "Daylight" design. Plain CSS, system fonts, no external requests. */
:root {
  --ink: #0a1a4a;
  --navy: #0a2a8a;
  --blue: #247bff;
  --blue-text: #1d5fd1;
  --sky: #e8f0ff;
  --bg: #f7f9ff;
  --card: #ffffff;
  --muted: #55658f;
  --line: #dfe7fb;
  --dark: #071035;
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--blue-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
code { font-size: .78rem; word-break: break-all; color: var(--ink); background: var(--sky); padding: .1rem .35rem; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--navy)); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 249, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(10, 42, 138, .5); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 22%; }
.brand em { font-style: normal; color: var(--blue); }
nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
nav a.btn { color: #fff; border-bottom: 0; padding: .65rem 1.3rem; }
nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: .45rem .85rem; font: inherit; cursor: pointer; }

/* ---- Buttons and chips ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(10, 42, 138, .35); }
.btn-primary { background: linear-gradient(135deg, #1d68e0, #0a3fc4); color: #fff; border: 0; box-shadow: 0 14px 30px -12px rgba(36, 123, 255, .7); }
.btn-primary:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; padding: .25rem .75rem; border-radius: 999px; background: #e1ecff; color: var(--navy); }
.tag-free { background: #dff5e8; color: #14753f; }
.tag-dev { background: #fff0d6; color: #a15c00; }
.eyebrow { color: var(--blue-text); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .5rem; }

/* ---- Type ---- */
h1 { font-size: clamp(2.5rem, 5.8vw, 4.4rem); line-height: 1.05; letter-spacing: -.03em; margin: .4rem 0 1.1rem; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; margin: .4rem 0 .8rem; font-weight: 800; }
h3 { font-size: 1.3rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.grad { background: linear-gradient(95deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 36rem; margin: 0 0 1.8rem; }
.sub { color: var(--muted); max-width: 40rem; }

/* ---- Sections ---- */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 .5rem; }
.page-head h1 { max-width: 22ch; }

/* ---- Home hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 123, 255, .22), transparent 65%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(10, 42, 138, .12), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.pill { display: inline-flex; gap: .6rem; align-items: center; padding: .4rem 1rem .4rem .5rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--navy); text-decoration: none; box-shadow: 0 8px 24px -14px rgba(10, 42, 138, .4); }
.pill i { background: var(--blue); color: #fff; font-style: normal; font-size: .7rem; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .06em; }
.proof { display: flex; flex-wrap: wrap; gap: 2.2rem; margin: 2.4rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.proof div { display: flex; flex-direction: column-reverse; }
.proof dd { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof dt { color: var(--muted); font-size: .85rem; }

/* phone mock-ups */
.stage { position: relative; height: 560px; }
.mock { position: absolute; width: 250px; border-radius: 38px; padding: 9px; background: #0b1230; box-shadow: 0 40px 80px -30px rgba(10, 26, 74, .55), inset 0 0 0 2px #26325f; }
.mock img { width: 100%; border-radius: 30px; }
.p1 { left: 2%; top: 50px; transform: rotate(-6deg); }
.p2 { right: 2%; top: 0; transform: rotate(5deg); z-index: 2; }
.chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .7rem 1rem; box-shadow: 0 18px 40px -20px rgba(10, 42, 138, .45); font-weight: 700; font-size: .92rem; z-index: 3; display: flex; gap: .6rem; align-items: center; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; display: inline-block; }
.c1 { left: -1%; bottom: 70px; }
.c2 { right: 6%; bottom: 20px; }

/* ---- Bento cards (home) ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; margin-top: 2.4rem; }
.card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 2rem; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(10, 42, 138, .45); }
.card p { color: var(--muted); margin: .3rem 0 0; }
.card h3 { font-size: 1.7rem; }
.b-docr { grid-column: span 4; background: linear-gradient(145deg, #eaf2ff, #fff 60%); display: grid; grid-template-columns: 1fr 210px; gap: 1rem; align-items: end; }
.b-docr .mock { position: relative; width: 210px; transform: rotate(4deg); margin-bottom: -3.2rem; }
.b-game { grid-column: span 2; color: #fff; background: #06122e; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.b-game:hover { color: #fff; }
.b-game::before { content: ""; position: absolute; inset: 0; background: url(../assets/drifter/drifter-the-ascent.jpg) 100% 78%/290% auto no-repeat; opacity: .8; }
.b-game::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, #06122e 95%); }
.b-game > * { position: relative; z-index: 1; }
.b-game p { color: #c4d3f7; }
.b-game .tag { align-self: flex-start; margin-bottom: 1rem; }
.b-mini { grid-column: span 2; display: flex; flex-direction: column; gap: .4rem; }
.b-mini b { font-size: 2.6rem; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.b-mini h3 { font-size: 1.2rem; }
.b-wide { grid-column: span 4; background: var(--navy); border-color: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.b-wide h3 { color: #fff; }
.b-wide p { color: #b9c9f5; }
.b-wide .btn { color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.tile { display: block; aspect-ratio: 4 / 3; border-radius: 20px; border: 1px solid var(--line); background-size: 175% auto; background-position: 100% 65%; background-repeat: no-repeat; transition: transform .3s ease; }
.tile:hover { transform: scale(1.03); }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-split img { width: 100%; max-width: 420px; justify-self: center; }

/* ---- Products page ---- */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.meta { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; }
.meta li { display: flex; gap: .75rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.meta b { min-width: 7.5rem; color: var(--muted); font-weight: 600; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--sky); transition: transform .35s ease; }
.shot figcaption { color: var(--muted); font-size: .85rem; padding-top: .6rem; }
.shot.phone { justify-self: center; width: min(290px, 100%); }
.shot.phone img { border: 9px solid #0b1230; border-radius: 38px; background: #0b1230; box-shadow: 0 40px 70px -34px rgba(10, 26, 74, .6); }
.shot.phone figcaption { text-align: center; }
.crop { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: #0a1530; }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 70%; transform: scale(1.3); transform-origin: 100% 70%; border: 0; border-radius: 0; background: none; }
.shot:hover .crop img { transform: scale(1.36); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.gallery.phones { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); justify-content: start; gap: 1.5rem; }
.video-block { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.shot.vid { width: min(320px, 100%); }
.shot.vid video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 20px; border: 1px solid var(--line); background: #000; }

/* ---- Text pages ---- */
.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 2.2rem; color: var(--ink); font-size: 1.45rem; }
.prose h3 { margin: 1.6rem 0 .2rem; color: var(--ink); font-size: 1.1rem; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 44rem; }
.notice { border-left: 4px solid var(--blue); background: var(--sky); padding: 1rem 1.25rem; border-radius: 0 16px 16px 0; color: var(--ink) !important; }
.shot.phone.poster { width: min(380px, 100%); margin: 2.5rem 0 0; justify-self: start; }
.shot.phone.poster img { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -34px rgba(10, 26, 74, .5); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #b9c9f5; padding: 3rem 0; font-size: .95rem; }
.site-footer strong { color: #fff; font-size: 1.1rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; }
.foot a { color: #b9c9f5; display: inline-block; padding: .65rem 0; }
.foot a:hover { color: #fff; }

/* ---- Lightbox ---- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1280px); max-height: 92vh; color: #fff; }
.lightbox::backdrop { background: rgba(3, 8, 26, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 16px; margin: 0 auto; }
.lightbox p { text-align: center; color: #b9c9f5; margin: .6rem 0 0; font-size: .9rem; }
.lb-close { position: absolute; top: -.2rem; right: .2rem; z-index: 2; font-size: 1.8rem; line-height: 1; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid #fff3; background: #0a1530; color: #fff; cursor: pointer; }

/* ---- Motion (respects reduced-motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  /* content is visible by default; the entrance animation only decorates it */
  .hero .pill, .hero h1, .hero .lead, .hero .actions, .hero .proof { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero h1 { animation-delay: .08s; }
  .hero .lead { animation-delay: .18s; }
  .hero .actions { animation-delay: .28s; }
  .hero .proof { animation-delay: .4s; }
  .p1 { animation: float1 7s ease-in-out infinite; }
  .p2 { animation: float2 8s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float1 { 50% { transform: rotate(-6deg) translateY(-10px); } }
@keyframes float2 { 50% { transform: rotate(5deg) translateY(-12px); } }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .hero-grid, .product, .about-split, .video-block { grid-template-columns: 1fr; }
  .stage { height: 520px; }
  .bento { grid-template-columns: 1fr; }
  .b-docr, .b-game, .b-mini, .b-wide { grid-column: auto; }
  .b-docr { grid-template-columns: 1fr; }
  .b-docr .mock { margin: 1rem auto -3.2rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .shot.vid { justify-self: center; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .meta li { flex-direction: column; gap: 0; }
  .stage { height: 470px; }
  .mock { width: 200px; }
  .c2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
