/* Liquid-glass layer on top of apple.css. Themes: body.t-frost, body.t-midnight, body.t-spectrum */
:root {
  --g-bg: rgba(255,255,255,.55);
  --g-bg-strong: rgba(255,255,255,.72);
  --g-border: rgba(255,255,255,.75);
  --g-hi: rgba(255,255,255,.95);
  --g-shadow: 0 30px 80px -30px rgba(20,30,60,.28), 0 2px 6px rgba(20,30,60,.06);
  --page: #f7f8fb;
  --a1: #8ab4ff; --a2: #c9b8ff; --a3: #9ff0d8; --a4: #ffd6e8;
  --blob-op: .9;
}
body.t-midnight {
  --page: #05070d;
  --ink: #f5f5f7; --ink-2: rgba(245,245,247,.72); --ink-3: rgba(245,245,247,.5);
  --line: rgba(255,255,255,.1);
  --g-bg: rgba(255,255,255,.07);
  --g-bg-strong: rgba(255,255,255,.1);
  --g-border: rgba(255,255,255,.18);
  --g-hi: rgba(255,255,255,.35);
  --g-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4);
  --a1: #2f6bff; --a2: #7c5cff; --a3: #12c2a4; --a4: #ff5fa2;
  --blob-op: .55;
  --bg-soft: rgba(255,255,255,.04);
}
body.t-spectrum {
  --page: #ffffff;
  --a1: #4f8cff; --a2: #b56bff; --a3: #3ee6c1; --a4: #ff8a5b;
  --g-bg: rgba(255,255,255,.5);
  --g-border: rgba(255,255,255,.8);
  --blob-op: 1;
}

body { background: var(--page); position: relative; }

/* Aurora backdrop */
.aurora { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-op); will-change: transform; }
.aurora .b1 { width: 60vw; height: 60vw; left: -15vw; top: -18vw; background: var(--a1); animation: drift1 26s ease-in-out infinite alternate; }
.aurora .b2 { width: 55vw; height: 55vw; right: -18vw; top: -8vw; background: var(--a2); animation: drift2 30s ease-in-out infinite alternate; }
.aurora .b3 { width: 50vw; height: 50vw; left: 20vw; top: 48vh; background: var(--a3); animation: drift3 34s ease-in-out infinite alternate; }
.aurora .b4 { width: 45vw; height: 45vw; right: -10vw; top: 110vh; background: var(--a4); animation: drift1 38s ease-in-out infinite alternate-reverse; }
.aurora .b5 { width: 55vw; height: 55vw; left: -20vw; top: 170vh; background: var(--a2); animation: drift2 32s ease-in-out infinite alternate; }
.aurora .b6 { width: 50vw; height: 50vw; right: -15vw; top: 240vh; background: var(--a1); animation: drift3 36s ease-in-out infinite alternate-reverse; }
.aurora .b7 { width: 50vw; height: 50vw; left: 10vw; top: 310vh; background: var(--a3); animation: drift1 30s ease-in-out infinite alternate; }
.aurora .b8 { width: 55vw; height: 55vw; right: -10vw; bottom: -10vh; background: var(--a2); animation: drift2 34s ease-in-out infinite alternate-reverse; }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--page) 18%, transparent 36%, transparent 64%, var(--page) 82%, transparent); opacity: .35; }
body.t-spectrum .aurora i { filter: blur(70px); }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(1.12); } }
@keyframes drift3 { to { transform: translate(10vw, -8vh) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

main, .glass-nav, .switch { position: relative; z-index: 1; }

/* Glass surfaces */
.glass { background: var(--g-bg); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); border: 1px solid var(--g-border); box-shadow: inset 0 1px 0 var(--g-hi), var(--g-shadow); border-radius: 32px; }
.glass-strong { background: var(--g-bg-strong); }

/* Floating glass nav */
.glass-nav { position: sticky; top: 14px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; }
.glass-nav .pill { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 980px; background: var(--g-bg-strong); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--g-border); box-shadow: inset 0 1px 0 var(--g-hi), 0 12px 40px -16px rgba(20,30,60,.35); }
.glass-nav .logo img { height: 26px; width: auto; margin: 0 6px 0 0; }
body.t-midnight .glass-nav .logo { background: #fff; border-radius: 8px; height: 30px; display: flex; align-items: center; padding: 0 6px; margin-right: 6px; }
body.t-midnight .glass-nav .logo img { height: 22px; margin: 0; }
.glass-nav .links { display: none; gap: 2px; margin: 0 8px; }
.glass-nav .links a { font-size: 13px; padding: 8px 12px; border-radius: 980px; color: var(--ink); opacity: .85; transition: background .2s, opacity .2s; }
.glass-nav .links a:hover { background: rgba(127,127,140,.14); opacity: 1; }
.glass-nav .btn { padding: 8px 16px; font-size: 13px; }
@media (min-width: 820px) { .glass-nav .links { display: flex; } }

/* Buttons, glassy */
.btn-glass { background: var(--g-bg-strong); border: 1px solid var(--g-border); box-shadow: inset 0 1px 0 var(--g-hi); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); }
.btn-glass:hover { background: rgba(255,255,255,.85); }
body.t-midnight .btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-blue { background: linear-gradient(180deg, #4d8bff, #1e63ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -10px rgba(30,99,255,.8); }
.btn-blue:hover { background: linear-gradient(180deg, #5a95ff, #2a6cff); }

/* Gradient word */
.grad { background: linear-gradient(90deg, #2f6bff 0%, #8a5cff 50%, #16c7a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.t-spectrum .grad { background: linear-gradient(90deg, #2f6bff, #b56bff 40%, #ff8a5b 75%, #3ee6c1); -webkit-background-clip: text; background-clip: text; }

/* Section cards: glass panels with air around them */
.sec { padding: 28px 0; }
.sec .card { padding: 72px 24px; text-align: center; overflow: hidden; position: relative; }
@media (min-width: 900px) { .sec .card { padding: 96px 48px; } }
.sec .card.dark { background: rgba(8,10,18,.9); border-color: rgba(255,255,255,.14); }
.sec .card.dark, .sec .card.dark .lead, .sec .card.dark .app-name small { color: #f5f5f7; }
.sec .card.dark .lead { color: rgba(245,245,247,.72); }
body.t-midnight .sec .card.dark { background: rgba(255,255,255,.04); }

/* Hero */
.hero { padding: 64px 0 0; }
.hero-card { padding-bottom: 0 !important; }
.fan { position: relative; height: clamp(360px, 52vw, 640px); margin-top: 48px; }
.fan .phone { position: absolute; bottom: -6%; }
.fan .p1 { width: 30%; left: 7%; transform: rotate(-6deg); z-index: 1; }
.fan .p2 { width: 34%; left: 50%; transform: translateX(-50%); z-index: 3; }
.fan .p3 { width: 30%; right: 7%; transform: rotate(6deg); z-index: 2; }
@media (min-width: 900px) { .fan .p1 { width: 24%; left: 17%; } .fan .p2 { width: 27%; } .fan .p3 { width: 24%; right: 17%; } }
.fan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, var(--page)); z-index: 4; pointer-events: none; }
body.t-midnight .fan::after { background: linear-gradient(transparent, #0a0d16); }
.fan .halo { position: absolute; left: 50%; bottom: 0; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 80%, var(--a1), transparent 70%); filter: blur(40px); opacity: .7; z-index: 0; }

/* Glossy iPhone upgrades */
.iphone { background: linear-gradient(160deg, #3a3b42, #121216 40%, #1c1d23 70%, #2b2c33); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 0 2.5px #0b0b0d inset, 0 40px 80px -28px rgba(10,20,50,.55), 0 4px 12px rgba(0,0,0,.18); }
.iphone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(255,255,255,.14) 100%); mix-blend-mode: screen; opacity: .9; }
.iphone .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(118deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 22%, rgba(255,255,255,0) 42%); }
.glow-under { position: relative; }
.glow-under::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6%; height: 24%; background: radial-gradient(50% 50% at 50% 50%, var(--a1), transparent 70%); filter: blur(30px); opacity: .55; z-index: 0; }
.glow-under > * { position: relative; z-index: 1; }

/* Booking trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; align-items: end; }
.trio figure { margin: 0; }
.trio figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
@media (min-width: 900px) { .trio { gap: 40px; width: 86%; margin-left: auto; margin-right: auto; } }

/* Studio stage */
.studio-stage { position: relative; margin-top: 56px; text-align: left; }
.studio-stage .laptop { width: 84%; }
.studio-stage .phone { position: absolute; right: 0; bottom: -4%; width: 22%; }
.laptop .lid { background: linear-gradient(160deg, #3a3b42, #121216 45%, #26272e); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 50px 100px -40px rgba(10,20,50,.6); }
.site { background: #fff; color: #111; font-family: var(--display); aspect-ratio: 16 / 10; display: flex; flex-direction: column; }
.site-nav { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 9px; color: #666; border-bottom: 1px solid #eee; }
.site-nav b { margin-right: auto; color: #111; letter-spacing: .12em; font-size: 10px; }
.site-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; }
.site-hero > div { padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; }
.site-k { font-size: 9px; letter-spacing: .14em; color: var(--violet); font-weight: 600; text-transform: uppercase; }
.site-h { font-size: clamp(16px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.site-p { font-size: clamp(7px, 1vw, 12px); color: #666; margin-top: 8px; font-family: var(--font); }
.site-b { display: inline-block; width: max-content; margin-top: 12px; padding: 5px 11px; border-radius: 980px; font-size: 9px; background: #111; color: #fff; }
.site-img { background: linear-gradient(160deg, #1b1b22, #3a2f6b 60%, #6e4cff); }

/* Intelligence */
.ai-stage { display: grid; gap: 40px; align-items: center; margin-top: 56px; text-align: left; }
.ai-stage .phone { width: min(250px, 62%); margin: 0 auto; }
.chat { height: 100%; background: linear-gradient(180deg, #fbfbfd, #f1f2f7); padding: 14% 6% 6%; display: flex; flex-direction: column; gap: 8px; font-family: var(--font); }
.chat .t { font-size: 10px; color: #86868b; text-align: center; margin-bottom: 6px; }
.bub { font-size: 11px; line-height: 1.35; padding: 8px 11px; border-radius: 14px; max-width: 84%; }
.bub.them { background: #fff; color: #111; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bub.me { background: linear-gradient(180deg, #4d8bff, #1e63ff); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat .composer { margin-top: auto; display: flex; align-items: center; gap: 8px; border: 1px solid #e3e3e8; background: #fff; border-radius: 980px; padding: 7px 12px; font-size: 11px; color: #a1a1a6; }
.chat .composer i { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); display: block; }
.ai-pts { display: grid; gap: 14px; }
.ai-pts div { padding: 18px 20px; border-radius: 20px; }
.ai-pts div strong { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.ai-pts div span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .ai-stage { grid-template-columns: 1fr 1fr; } }

/* Trades + tiles */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chips a { font-size: 14px; color: var(--ink); padding: 9px 15px; border-radius: 980px; background: var(--g-bg-strong); border: 1px solid var(--g-border); box-shadow: inset 0 1px 0 var(--g-hi); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .2s var(--ease), background .2s; }
.chips a:hover { transform: translateY(-1px); background: rgba(255,255,255,.9); }
body.t-midnight .chips a:hover { background: rgba(255,255,255,.16); }
.tiles { display: grid; gap: 16px; margin-top: 48px; text-align: left; }
.tile { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; border-radius: 26px; }
.tile .price { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.tile .price small { font-size: 14px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.tile ul { display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.tile ul li { padding-left: 20px; position: relative; }
.tile ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #4d8bff, #8a5cff); }
.tile .more { margin-top: auto; }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* CTA */
.cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.foot { background: transparent; border-top: 0; position: relative; z-index: 1; }
body.t-midnight .foot { color: var(--ink-3); }
body.t-midnight .app-icon.violet, body.t-midnight .app-icon.teal { box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
body.t-midnight .switch { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }

body.t-midnight .more { color: #8fb3ff; }
body.t-midnight .more:hover { color: #fff; }
