:root {
	--bg: #050608;
	--panel: rgba(255, 255, 255, 0.045);
	--line: rgba(255, 255, 255, 0.09);
	--text: #f4f5f8;
	--muted: #9a9eab;
	--blue: #5aa8ea;
	--gold: #f2b544;
	--gem: linear-gradient(135deg, #9fd8ff 0%, #3f8fe0 55%, #1c3f8f 100%);
	--radius: 22px;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0; }
.muted, .lead { color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 34em; }
.eyebrow { color: var(--blue); font-weight: 650; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.gradient { background: var(--gem); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(5, 6, 8, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.button) { display: none; } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--text); color: #000; font-weight: 650; font-size: 16px; text-decoration: none; border: 0; }
.button.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button.muted { background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.store { display: inline-block; line-height: 0; }
.store img { height: 52px; width: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(closest-side, rgba(63, 143, 224, 0.28), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero h1 { margin: 18px 0 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
/* iPhone frame: titanium band, black bezel, Dynamic Island and side buttons */
.phone { position: relative; justify-self: center; width: min(330px, 78vw); aspect-ratio: 1206 / 2622; padding: 11px; border-radius: 58px; background: linear-gradient(145deg, #a3a6ad 0%, #4b4e55 14%, #1f2024 45%, #3c3e44 78%, #a7aab1 100%); box-shadow: 0 50px 120px rgba(63, 143, 224, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.phone .screen { height: 100%; border-radius: 48px; overflow: hidden; background: #000; box-shadow: 0 0 0 5px #050505; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: calc(11px + 2.1%); left: 50%; width: 31%; height: 3.6%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone .side { position: absolute; width: 4px; background: #6b6e75; }
.phone .side.left { left: -3px; border-radius: 3px 0 0 3px; }
.phone .side.right { right: -3px; border-radius: 0 3px 3px 0; }
.phone .action { top: 16%; height: 4%; }
.phone .vol-up { top: 23%; height: 7.5%; }
.phone .vol-down { top: 32%; height: 7.5%; }
.phone .power { top: 25%; height: 11%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-inline: auto; } .hero .actions { justify-content: center; } }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin: 10px 0 16px; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(90, 168, 234, 0.14); font-size: 22px; margin-bottom: 18px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cards fan */
.fan { position: relative; height: 440px; }
.fan img { position: absolute; left: 50%; top: 50%; width: 200px; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); transform-origin: 50% 100%; }
.fan img:nth-child(1) { transform: translate(-50%, -50%) translateX(-32px) rotate(-10deg); }
.fan img:nth-child(2) { transform: translate(-50%, -50%) translateY(-14px); z-index: 2; }
.fan img:nth-child(3) { transform: translate(-50%, -50%) translateX(32px) rotate(10deg); }
@media (max-width: 520px) { .fan { height: 360px; } .fan img { width: 170px; } }

.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tiers span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--muted); }
.tiers b { color: var(--gold); font-weight: 650; }

.ladder { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ladder li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 15.5px; }
.ladder li span:first-child { color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--muted); }

.cta { text-align: center; padding: 110px 0; background: radial-gradient(closest-side, rgba(63, 143, 224, 0.2), transparent 75%); }
.cta h2 { margin-bottom: 18px; }
.cta .button { margin-top: 28px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: #c9ccd4; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }

/* Invite page */
body.invite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(closest-side, rgba(63, 143, 224, 0.25), transparent 80%) var(--bg); }
.invite-card { width: min(460px, 100%); text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 36px 26px; }
.invite-card .brand { margin-bottom: 26px; }
.invite-card h1 { font-size: 30px; margin-bottom: 12px; }
.invite-card > p { color: var(--muted); }
.code { display: flex; justify-content: center; gap: 8px; margin: 28px 0; }
.code span { width: 54px; height: 66px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font: 700 32px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.invite-card .small { font-size: 13px; margin-top: 18px; }
@media (max-width: 380px) { .code span { width: 46px; height: 58px; font-size: 26px; } }
