/* CryptoSage · Celestial Observatory. Brand roles shared across the public site. */
:root {
  color-scheme: dark;
  --bg: #090e12; --fg: #f4f2ec; --card: #10181e; --card-fg: #f4f2ec;
  --primary: #e5bc72; --primary-fg: #11120f; --muted: #142027;
  --muted-fg: #adb8bf; --accent: #25322d; --accent-fg: #f4f2ec;
  --border: rgba(221,190,133,.19); --gold-glow: rgba(221,190,133,.09);
  --sky: 56,118,123; --starlight: #f2d99f;
}
body { background: var(--bg); color: var(--fg); }
section { position: relative; }
section:not(.hero) { background-image: radial-gradient(ellipse at 100% 25%,rgba(var(--sky),.065),transparent 60%); }
.container { max-width: 1224px; padding-inline: max(28px,env(safe-area-inset-left)); }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible { outline: 2px solid var(--starlight); outline-offset: 5px; }
button,a,input { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 16px; padding: 12px 20px; color: #090e12; background: var(--starlight); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.navbar { background: rgba(9,14,18,.9); border-color: rgba(220,196,146,.13); }
.navbar .container { height: 76px; }
.nav-logo { font-size: 1.08rem; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: #b5bec5; }
.nav-links a.nav-cta { min-height: 44px; }
.nav-toggle,.scroll-top { min-width: 44px; min-height: 44px; }
.hero { padding: 136px 0 72px; isolation: isolate; border-bottom: 1px solid var(--border); }
.hero .container { position: relative; z-index: 1; }
.hero::before,.hero::after,.hero-phone-wrap::before { display: none; }
.celestial-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 78% 40%,rgba(var(--sky),.22),transparent 57%),radial-gradient(ellipse at 20% 80%,rgba(177,130,57,.06),transparent 45%); }
.celestial-halo { position: absolute; width: 820px; aspect-ratio: 1; top: -100px; left: calc(75% - 410px); border-radius: 50%; background: radial-gradient(circle,transparent 34%,rgba(218,180,102,.035) 43%,rgba(var(--sky),.13) 51%,transparent 64%); }
.celestial-orbit { position: absolute; width: 720px; aspect-ratio: 1; left: calc(75% - 360px); top: -22px; border: 1px solid rgba(216,184,122,.18); border-radius: 50%; transform: rotate(-25deg); }
.celestial-orbit::before,.celestial-orbit::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--starlight); box-shadow: 0 0 15px rgba(235,193,109,.65); left: 14%; top: 14%; }
.celestial-orbit::after { left: auto; top: auto; bottom: 14%; right: 14%; width: 4px; height: 4px; }
.orbit-two { width: 560px; left: calc(75% - 280px); top: 58px; border-style: dashed; border-color: rgba(216,184,122,.12); transform: rotate(28deg); }
.orbit-two::before,.orbit-two::after { display: none; }
.celestial-stars { position: absolute; inset: 0; opacity: .65; background-image: radial-gradient(circle at 10% 22%,#edd6a4 0 1px,transparent 1.6px),radial-gradient(circle at 38% 12%,#d4e3e4 0 1px,transparent 1.8px),radial-gradient(circle at 50% 75%,#edd6a4 0 1px,transparent 1.7px),radial-gradient(circle at 95% 67%,#edd6a4 0 1.5px,transparent 2.2px),radial-gradient(circle at 59% 35%,#d4e3e4 0 1px,transparent 1.6px),radial-gradient(circle at 7% 78%,#d4e3e4 0 1px,transparent 1.5px),radial-gradient(circle at 88% 16%,#edd6a4 0 1px,transparent 1.7px),radial-gradient(circle at 62% 89%,#edd6a4 0 1px,transparent 1.7px); }
.constellation { position: absolute; width: 750px; height: 750px; left: calc(75% - 375px); top: -25px; stroke: rgba(199,191,154,.14); stroke-width: 1; }
.constellation circle { fill: #c3b78f; stroke: none; opacity: .6; }
.hero-layout { gap: 56px; }
.hero .hero-text { flex: 1.15; }
.hero .platform-badge { background: rgba(17,28,32,.7); color: #c6cdd0; border-color: rgba(216,184,122,.22); margin-bottom: 28px; font-size: .75rem; }
.hero-eyebrow { color: var(--primary); font-size: .73rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(3.3rem,5.7vw,5rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 650; }
.hero-gold { display: inline-block; font-family: Georgia,'Times New Roman',serif; font-size: 1.15em; font-weight: 400; font-style: italic; letter-spacing: -.055em; color: var(--starlight); padding-right: .1em; padding-bottom: .06em; }
.hero .subtitle { max-width: 470px; font-size: 1.08rem; line-height: 1.75; color: #b9c3c9; }
.hero-buttons { gap: 12px; margin-top: 28px; }
.btn-gold,.btn-outline { min-height: 50px; padding: 13px 21px; border-radius: 10px; font-size: .85rem; }
.btn-gold { background: linear-gradient(120deg,#f0d498,#d5aa59); box-shadow: 0 5px 22px rgba(211,167,81,.14); color: #17150e; }
.btn-outline { color: #e6d9bf; background: rgba(17,26,31,.7); border-color: rgba(225,201,154,.25); }
.hero-note { color: #9eabb4; font-size: .73rem; margin-top: 20px; display: flex; gap: 11px; flex-wrap: wrap; }
.hero .hero-screenshot { flex: 1; flex-direction: column; align-items: center; gap: 20px; }
.hero .hero-phone-frame { width: 292px; max-width: 100%; padding: 7px; border: 1px solid #998360; border-radius: 42px; box-shadow: 0 32px 80px rgba(0,0,0,.55),0 0 0 5px rgba(225,201,154,.025); }
.hero .hero-phone-frame .phone-screen,.hero .hero-phone-frame img { border-radius: 34px; }
.hero-rotator .hero-slide,.hero-rotator .hero-slide:not(.hs-1) { position: relative; opacity: 1; animation: none; }
.hero-rotator .hero-slide[hidden] { display: none; }
.hero-view-controls { display: flex; padding: 4px; gap: 3px; border: 1px solid var(--border); border-radius: 999px; background: #10191d; }
.hero-view-controls[hidden] { display: none; }
.hero-view-controls button { min-height: 44px; padding: 0 16px; border-radius: 999px; background: transparent; color: #a9b6bd; border: 0; font: 500 .75rem 'Inter',sans-serif; cursor: pointer; }
.hero-view-controls button[aria-pressed="true"] { background: #e4c788; color: #1a1c18; }
.screenshot-note { font-size: .66rem; color: #a1afb8; letter-spacing: .015em; }
.hero-screenshot .screenshot-note { margin-top: -10px; }
@media(min-width:768px) { .hero-layout { align-items: center; } .hero h1 { margin:0; } .hero .subtitle { margin: 23px 0 0; } .hero-buttons { justify-content:flex-start; } }
.section-title,.showcase-header h2 { font-weight: 650; letter-spacing: -.04em; }
.section-label { color: #e4c788; font-size: .73rem; }
.section-desc { color: var(--muted-fg); }
.phone-card .phone-front,.hero-phone-frame .phone-front { animation: none; opacity: 1; }
.phone-back { display:none; }
.shimmer-text { animation: none; }
.phone-card .hero-phone-frame { border-color: rgba(219,197,153,.35); box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.phone-card .phone-front { cursor: zoom-in; }
.feature-card,.price-card { background: linear-gradient(150deg,#131d23,#0e151b); border-color: var(--border); }
.price-card.popular { background: linear-gradient(150deg,#21271e,#111c21); }
.download-action { margin: 28px 0; text-align: center; }
.signup-intro { font-size:.85rem; color: var(--muted-fg); margin-top: 36px; }
.cta-section { background: radial-gradient(ellipse at 50% 100%,rgba(var(--sky),.21),transparent 70%),var(--bg); }
footer { border-top: 1px solid var(--border); background: #080d11; }
.screen-dialog { color: var(--fg); border: 1px solid var(--border); border-radius: 20px; padding: 16px; background:#10191e; width: min(480px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; margin: auto; }
.screen-dialog::backdrop { background:rgba(3,7,10,.9); backdrop-filter:blur(8px); }
.screen-dialog header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.screen-dialog h2 { font-size:.9rem; font-weight:500; }
.screen-dialog button { width:44px; height:44px; background:transparent; border:1px solid var(--border); border-radius:50%; color:var(--fg); font-size:1.3rem; cursor:pointer; }
.screen-dialog img { width:auto; max-width:100%; max-height:76dvh; margin:auto; border-radius:22px; }
.screen-dialog p { font-size:.75rem; color:var(--muted-fg); margin:12px 0 0; }
.gallery-hint { text-align:center; color:var(--muted-fg); font-size:.75rem; margin-top:28px; }
@media(max-width:1100px) and (min-width:768px) { .hero-layout { gap:32px; } .hero h1 { font-size:3.8rem; } .hero .hero-phone-frame { width:254px; } .hero-buttons { flex-direction: column; align-items: flex-start; } .hero .hero-text { flex:1.2; } }
@media(max-width:767px) { .navbar .container { height:68px; } .container { padding-inline:max(24px,env(safe-area-inset-left)); } .hero { padding:112px 0 48px; } .hero-layout { gap:36px; } .hero h1 { font-size:clamp(3.3rem,12vw,4.5rem); } .hero .subtitle { max-width:470px; font-size:1rem; margin-top:20px; } .hero .platform-badge { margin-bottom:24px; } .hero-eyebrow { font-size:.64rem; } .hero-buttons { flex-direction:column; align-items:stretch; max-width:340px; margin-inline:auto; } .hero-buttons a { justify-content:center; } .hero-note { justify-content:center; gap:8px; font-size:.67rem; } .hero .hero-screenshot { margin-top:8px; } .hero .hero-phone-frame { width:264px; } .celestial-halo { top:530px; left:calc(50% - 410px); } .celestial-orbit { top:590px; left:calc(50% - 360px); } .orbit-two { top:670px; left:calc(50% - 280px); } .constellation { top:570px; left:calc(50% - 375px); } .section-title,.showcase-header h2 { font-size:2.1rem; } .nav-links.open { top:68px; background:#10191e; border-bottom:1px solid var(--border); } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media(prefers-contrast:more) { :root { --muted-fg:#d4dbe0; --border:#71828c; } }
/* Flex children must be allowed to reflow when readers enlarge text. */
.hero .hero-text, .hero .hero-screenshot { min-width: 0; max-width: 100%; }
.hero h1, .hero-eyebrow, .hero .subtitle { overflow-wrap: anywhere; }
@media(max-width:767px) { .hero .hero-text { width:100%; } }

.toggle-btn { min-height: 44px; }
@media(max-width:767px) { .footer-col a { display:inline-flex; min-height:44px; align-items:center; } }

.phone-front:focus-visible { outline:3px solid var(--starlight); outline-offset:-5px; }
