:root {
  color-scheme: dark;
  --bg: #030811;
  --surface: rgba(13, 27, 47, 0.78);
  --surface-strong: #10243d;
  --text: #f7f9ff;
  --muted: #a7b8ce;
  --line: rgba(170, 203, 236, 0.16);
  --blue: #79c5ff;
  --blue-strong: #278be5;
  --gold: #ffd16d;
  --max: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 78% 4%, rgba(38, 105, 178, .2), transparent 32rem), var(--bg); }
a { color: var(--blue); text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
.site-header, main, footer { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 1.08rem; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 8px 22px rgba(27, 105, 173, .24); }
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; transition: color 160ms ease; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav .nav-cta { padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: var(--text); background: rgba(255,255,255,.07); }

.hero { display: grid; min-height: min(780px, calc(100vh - 80px)); align-items: center; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 7vw, 94px); padding-block: 70px 110px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 15px; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { max-width: 710px; margin: 0; font-size: clamp(3.9rem, 7.8vw, 7.6rem); line-height: .9; }
.lede { max-width: 660px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid var(--line); border-radius: 15px; font-weight: 750; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { border-color: transparent; background: var(--text); color: #071326; }
.button.secondary { background: rgba(255,255,255,.045); color: var(--text); }
.app-store-button { min-height: 58px; padding-inline: 19px 22px; }
.app-store-button .apple { font-size: 2rem; line-height: 1; }
.app-store-button span:last-child { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.05rem; line-height: 1.05; }
.app-store-button small { margin-bottom: 4px; font-size: .62rem; font-weight: 600; letter-spacing: .01em; }
.hero-note { margin: 17px 0 0; color: #71839b; font-size: .82rem; }

.hero-visual { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: clamp(30px, 5vw, 54px); background: radial-gradient(circle at center, #172b48 0, #081221 43%, #030711 76%); box-shadow: 0 38px 120px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.05); isolation: isolate; }
.star-field, .star-field::before, .star-field::after { position: absolute; inset: 0; content: ""; background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.2px); background-size: 91px 91px; background-position: 13px 27px; opacity: .32; }
.star-field::before { transform: rotate(33deg) scale(1.3); opacity: .55; }
.star-field::after { transform: rotate(-19deg) scale(.8); opacity: .35; }
.hero-sun, .hero-moon { position: absolute; top: 50%; left: 50%; width: 48%; aspect-ratio: 1; border-radius: 50%; }
.hero-sun { z-index: 1; background: #ffad32 url('/assets/sun-surface.jpg') center/130% auto; box-shadow: 0 0 12px #fff7c4, 0 0 35px #ffb345, 0 0 100px rgba(255,153,46,.65), 0 0 190px rgba(255,128,31,.25); transform: translate(-50%, -50%); }
.hero-moon { z-index: 2; background: #01030a; box-shadow: none; opacity: .08; transform: translate(-150%, -58%) scale(.98); animation: hero-eclipse 12s cubic-bezier(.58,.03,.42,.98) infinite; }
.hero-orbit { position: absolute; z-index: 0; border: 1px solid rgba(144,196,239,.12); border-radius: 50%; }
.orbit-a { inset: 12%; transform: rotate(-19deg) scaleY(.6); }
.orbit-b { inset: 3%; transform: rotate(36deg) scaleY(.7); }
.totality-label { position: absolute; z-index: 5; bottom: 26px; left: 27px; display: flex; align-items: center; gap: 8px; color: #ced9e8; font-size: .7rem; font-weight: 750; letter-spacing: .12em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.eclipse-section, .features-section { padding-block: 120px; border-top: 1px solid var(--line); }
.section-heading { display: grid; align-items: end; grid-template-columns: 1.35fr .65fr; gap: 70px; margin-bottom: 54px; }
.section-heading h2, .pro-section h2, .contact-panel h2 { margin: 0; font-size: clamp(2.6rem, 5.7vw, 5.4rem); line-height: .98; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.7; }
.eclipse-stage { display: grid; overflow: hidden; grid-template-columns: .82fr 1.18fr; border: 1px solid rgba(132,188,235,.2); border-radius: 34px; background: linear-gradient(145deg, rgba(14,34,58,.94), rgba(5,14,26,.96)); box-shadow: 0 34px 100px rgba(0,0,0,.35); }
.eclipse-sky { --solar-y: 45%; --daylight: .5; position: relative; min-height: 410px; overflow: hidden; background: radial-gradient(circle at 50% var(--solar-y), rgba(100,170,225,calc(.18 + var(--daylight) * .24)), transparent 33%), linear-gradient(to bottom, rgba(24,65,104,calc(var(--daylight) * .62)), transparent 72%), #030812; transition: background 1s ease; isolation: isolate; }
.live-stars { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.76) 0 1px, transparent 1.2px); background-position: 12px 19px; background-size: 73px 73px; opacity: calc(.62 - var(--daylight) * .57); transition: opacity 1s ease; }
.live-stars::after { position: absolute; inset: -20%; content: ""; background-image: radial-gradient(circle, rgba(187,218,255,.6) 0 1px, transparent 1.3px); background-size: 109px 109px; transform: rotate(27deg); }
.sky-horizon { position: absolute; z-index: 1; right: -12%; bottom: -29%; left: -12%; height: 52%; border: 1px solid rgba(139,189,224,.2); border-radius: 50% 50% 0 0; background: linear-gradient(to bottom, rgba(17,44,67,.9), #06101b 42%); box-shadow: 0 -8px 34px rgba(104,171,219,calc(var(--daylight) * .2)); }
.live-sun-system { position: absolute; z-index: 3; top: var(--solar-y); left: 50%; width: min(43%, 220px); aspect-ratio: 1; transform: translate(-50%,-50%); transition: top 1s ease, opacity 1s ease; }
.live-sun-disc, .live-corona, .live-moon { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%,-50%); }
.live-sun-disc { z-index: 2; width: 100%; height: 100%; background: #ffad32 url('/assets/sun-surface.jpg') center/130% auto; box-shadow: 0 0 8px #fff6c0, 0 0 24px #ffb33f, 0 0 68px rgba(255,149,37,.65); }
.live-corona { z-index: 1; width: 123%; height: 123%; background: repeating-conic-gradient(from 7deg, rgba(255,246,205,.52) 0 1deg, transparent 1deg 9deg); filter: blur(6px); opacity: 0; transition: opacity .8s ease; animation: corona-turn 24s linear infinite; }
.live-moon { z-index: 4; width: var(--moon-size, 101%); height: var(--moon-size, 101%); left: calc(50% + var(--moon-x, -180%)); top: calc(50% + var(--moon-y, 0%)); background: #010308 url('/assets/moon-surface.jpg') center/113% auto; filter: brightness(.075); box-shadow: inset -10px -4px 24px #000, 0 0 3px rgba(222,239,255,.55); opacity: 0; transition: left .9s linear, top .9s linear, width .9s linear, height .9s linear, opacity .6s ease; }
.eclipse-sky.is-eclipse .live-moon { opacity: 1; }
.eclipse-sky.is-total .live-corona { opacity: .92; box-shadow: 0 0 50px rgba(255,242,187,.7), 0 0 115px rgba(134,190,244,.36); }
.eclipse-sky.is-total .live-sun-disc { box-shadow: 0 0 8px white, 0 0 30px rgba(214,235,255,.82), 0 0 88px rgba(126,190,245,.5); }
.eclipse-sky.is-night .live-sun-system { opacity: 0; }
.sky-directions { position: absolute; z-index: 4; right: 17px; bottom: 18px; left: 17px; display: flex; justify-content: space-between; color: rgba(186,207,227,.45); font-size: .58rem; font-weight: 750; letter-spacing: .08em; }
.live-sky-reading { position: absolute; z-index: 5; top: 22px; right: 24px; left: 24px; display: flex; align-items: flex-start; flex-direction: column; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.live-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #bcd3e9; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #6dc4ff; box-shadow: 0 0 12px #65bfff; }
.live-sky-reading strong { font-size: clamp(1.15rem,2.2vw,1.55rem); letter-spacing: -.025em; }
.live-sky-reading > span:not(.live-badge) { margin-top: 5px; color: #a7bbcf; font-size: .75rem; }
.live-sky-reading .sunrise-reading { margin-top: 12px !important; padding: 8px 11px; border: 1px solid rgba(255,198,91,.26); border-radius: 999px; color: #ffe09a !important; background: rgba(28,35,45,.64); font-weight: 750; }
.eclipse-data { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 62px); }
.event-kicker { margin: 0 0 12px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.eclipse-data h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.event-time { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 30px; color: var(--muted); }
.event-time span { color: var(--text); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { padding: 16px 8px 14px; border: 1px solid var(--line); border-radius: 14px; text-align: center; background: rgba(255,255,255,.035); }
.countdown strong, .countdown span { display: block; }
.countdown strong { font-size: clamp(1.4rem, 3vw, 2.3rem); font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 5px; color: #74879f; font-size: .67rem; text-transform: uppercase; }
.event-note { margin: 12px 0 0; color: #71839b; font-size: .78rem; text-align: right; }
.eclipse-map { position: relative; grid-column: 1 / -1; min-height: 360px; overflow: hidden; border-top: 1px solid var(--line); }
.eclipse-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eclipse-map .land { fill: #80969c; stroke: #b5c4c3; stroke-width: 1; opacity: .76; }
.totality-path { fill: none; stroke: url('#path'); stroke-width: 76; }
.center-line { fill: none; stroke: #c5e9ff; stroke-width: 1; stroke-dasharray: 7 9; opacity: .74; }
.reykjavik-ring { fill: none; stroke: white; stroke-width: 1.5; opacity: .8; }
.reykjavik-dot { fill: var(--gold); }
.eclipse-map text { fill: #eaf5ff; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.eclipse-map .ocean-label { fill: #7691ab; font-size: 12px; letter-spacing: 3px; }
.umbra-marker { offset-path: path('M -40 337 C 183 275 337 219 760 96'); animation: umbra-move 10s ease-in-out infinite; }
.map-caption { position: absolute; right: 24px; bottom: 20px; left: 24px; display: flex; justify-content: space-between; color: rgba(223,235,247,.6); font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(145deg, rgba(18,38,64,.85), rgba(7,16,29,.9)); }
.feature-card:first-child { grid-column: 1 / -1; min-height: 480px; }
.feature-copy { position: relative; z-index: 3; max-width: 540px; padding: clamp(27px, 4vw, 48px); }
.feature-number { color: #6e88a5; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.feature-card h3 { margin: 14px 0 10px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; }
.feature-card p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.65; }
.globe-demo { position: absolute; width: 650px; aspect-ratio: 1; right: -65px; bottom: -340px; overflow: hidden; border: 1px solid rgba(137,204,241,.26); border-radius: 50%; background: radial-gradient(circle at 40% 18%, #50aad2, #156187 36%, #0b3454 68%, #06172c); box-shadow: 0 0 85px rgba(76,168,216,.22); }
.globe-grid { position: absolute; inset: 0; border-radius: 50%; background-image: linear-gradient(rgba(187,228,246,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(187,228,246,.12) 1px, transparent 1px); background-size: 55px 55px; transform: rotate(-13deg) scale(1.3); }
.night-side { position: absolute; inset: -5%; border-radius: 50%; background: rgba(1,7,17,.86); transform: translateX(-48%); filter: blur(3px); }
.city { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe09b; box-shadow: 0 0 10px #ffc65f; }
.city-one { top: 24%; left: 37%; }.city-two { top: 31%; left: 43%; }.city-three { top: 19%; left: 31%; }
.celestial-pair { position: absolute; right: 5%; bottom: 5%; left: 5%; height: 55%; border-top: 1px solid rgba(255,255,255,.16); }
.surface { position: absolute; bottom: 12%; width: 36%; aspect-ratio: 1; border-radius: 50%; background-position: center; background-size: 118% auto; }
.sun-surface { left: 9%; background-image: url('/assets/sun-surface.jpg'); box-shadow: 0 0 15px #ffc044, 0 0 55px rgba(255,142,35,.4); }
.moon-surface { right: 9%; background-image: url('/assets/moon-surface.jpg'); box-shadow: inset -10px -5px 22px rgba(0,0,0,.45), 0 0 20px rgba(187,211,235,.15); }
.altitude-scale { position: absolute; top: -10px; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; color: #7690aa; font-size: .66rem; }
.compass-demo { position: absolute; right: 10%; bottom: 6%; width: min(75%, 340px); aspect-ratio: 1; }
.compass-ring { position: absolute; inset: 11%; border: 1px solid rgba(159,202,235,.36); border-radius: 50%; box-shadow: inset 0 0 40px rgba(59,120,173,.1); }
.compass-ring::before, .compass-ring::after { position: absolute; top: 50%; left: 50%; content: ""; background: rgba(159,202,235,.19); transform: translate(-50%,-50%); }
.compass-ring::before { width: 100%; height: 1px; }.compass-ring::after { width: 1px; height: 100%; }
.compass-demo > span { position: absolute; color: #9db1c7; font-size: .75rem; font-weight: 800; }
.north { top: 2%; left: 50%; color: var(--gold) !important; transform: translateX(-50%); }.south { bottom: 2%; left: 50%; transform: translateX(-50%); }.east { top: 50%; right: 2%; transform: translateY(-50%); }.west { top: 50%; left: 2%; transform: translateY(-50%); }
.sun-bearing, .shadow-bearing { position: absolute; z-index: 2; bottom: 50%; left: calc(50% - 2px); width: 4px; border-radius: 4px 4px 0 0; transform-origin: 50% 100%; }
.sun-bearing { height: 39%; background: linear-gradient(transparent, #ffd05e); box-shadow: 0 -7px 14px #ffbf3e; transform: rotate(48deg); }
.shadow-bearing { height: 34%; background: linear-gradient(transparent, #6ab9ff); transform: rotate(228deg); }
.compass-center { position: absolute; z-index: 3; top: 50%; left: 50%; width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: #0a1b2e; transform: translate(-50%,-50%); }

.pro-section { display: grid; align-items: center; grid-template-columns: 1fr .75fr; gap: 70px; padding-block: 130px; border-top: 1px solid var(--line); }
.pro-copy > p:not(.eyebrow) { max-width: 640px; margin: 25px 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.pro-copy ul { display: grid; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; color: #cfdae8; }
.pro-copy li::before { margin-right: 10px; content: "✓"; color: var(--gold); }
.pro-visual { position: relative; display: grid; min-height: 420px; place-items: center; }
.pro-visual img { position: relative; z-index: 2; width: min(58%, 256px); border-radius: 25%; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.app-icon-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(77,173,231,.35), transparent 68%); filter: blur(5px); }
.pro-badge { position: absolute; z-index: 3; right: 16%; bottom: 17%; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #182037; font-size: .74rem; font-weight: 900; letter-spacing: .12em; background: linear-gradient(135deg, #fff2b3, #ffb94c); box-shadow: 0 10px 25px rgba(255,180,62,.3); }

.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-block: 50px 110px; padding: clamp(30px, 5vw, 58px); border: 1px solid rgba(113,183,255,.23); border-radius: 30px; background: linear-gradient(130deg, rgba(38,92,151,.25), rgba(12,28,49,.64)); }
.contact-panel h2 { font-size: clamp(2.3rem, 4vw, 4rem); }
.contact-panel p:not(.eyebrow) { max-width: 620px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
.contact-actions { display: flex; flex: 0 0 auto; align-items: center; flex-direction: column; gap: 14px; }
.text-link { font-size: .85rem; font-weight: 650; text-decoration: none; }

.legal-page { max-width: 900px; }
.legal-heading { padding: 90px 0 48px; }
.legal-heading h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .95; }
.legal-card { margin-bottom: 100px; padding: clamp(26px, 6vw, 62px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(18px); }
.legal-card > p:first-child { margin-top: 0; font-size: 1.1rem; }
.legal-card h2 { margin: 44px 0 12px; font-size: 1.5rem; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.65; }
.legal-card p { margin: 12px 0; }

footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px 50px; border-top: 1px solid var(--line); color: #71839a; font-size: .82rem; }
footer a { color: #91a5bb; }

@keyframes hero-eclipse {
  0%, 8% { opacity: .08; transform: translate(-154%, -58%) scale(.98); }
  30% { opacity: .94; }
  43%, 57% { opacity: 1; transform: translate(-50%, -50%) scale(1.01); box-shadow: 0 0 9px white, 0 0 55px rgba(202,231,255,.72), 0 0 120px rgba(116,184,240,.34); }
  70% { opacity: .94; }
  92%, 100% { opacity: .08; transform: translate(54%, -42%) scale(.98); }
}
@keyframes corona-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes umbra-move { 0%, 8% { offset-distance: 0%; opacity: 0; } 18%, 82% { opacity: 1; } 92%, 100% { offset-distance: 100%; opacity: 0; } }

@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 75px 100px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-visual { width: min(80vw, 570px); justify-self: center; }
  .section-heading { align-items: start; grid-template-columns: 1fr; gap: 22px; }
  .eclipse-stage, .pro-section { grid-template-columns: 1fr; }
  .eclipse-sky { min-height: 360px; }
  .feature-card:first-child { min-height: 590px; }
  .globe-demo { right: 50%; bottom: -340px; transform: translateX(50%); }
  .pro-section { gap: 10px; }
  .pro-visual { min-height: 360px; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
  .contact-actions { align-items: flex-start; }
}

@media (max-width: 650px) {
  .site-header, main, footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding-block: 15px; }
  .hero { padding-block: 60px 85px; }
  h1 { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .eclipse-section, .features-section, .pro-section { padding-block: 85px; }
  .eclipse-stage { border-radius: 24px; }
  .eclipse-sky { min-height: 300px; }
  .countdown div { padding-inline: 2px; }
  .countdown strong { font-size: 1.25rem; }
  .eclipse-map { min-height: 300px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:first-child { grid-column: auto; min-height: 510px; border-radius: 24px; }
  .globe-demo { width: 520px; bottom: -305px; }
  .surface { width: 38%; }
  .pro-visual { min-height: 300px; }
  .contact-panel { margin-bottom: 80px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer .credits { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .hero-moon { opacity: 1; transform: translate(-50%, -50%) scale(1.01); box-shadow: 0 0 9px white, 0 0 55px rgba(202,231,255,.72); }
}
