/* ========================================
   EightRings Marketing Site Styles
   Dark Theme · Gold identity
   ======================================== */

/* CSS Variables */

/* Brand tokens — theme-invariant. These do not change between light/dark. */
:root {
    --gold: #E5A91A;
    --gold-light: #F5C76D;
    --gold-dark: #B8860B;
    /* EightRings brand gold — figure-8 gradient (#FFDD7A → #F5C451 → #E0A437) */
    --gradient-gold: linear-gradient(135deg, #FFDD7A 0%, #F5C451 45%, #E0A437 100%);
    --transition-base: 0.3s ease;
    --on-gold: #3a2b06;
    --device-screen: #000;
    /* Per-app accent colors — the satellite that identifies each app */
    --acc-cal: #AF52DE;
    --acc-lists: #34C759;
    --acc-notes: #0A84FF;
    --acc-habits: #FF9F0A;
    --acc-health: #FF2D55;
    --acc-timers: #FF6B2C;
    --acc-pro: #E0A437;
}

/* Light theme — the site's single theme (dark mode retired).
   Warm off-white ground with a faint gold bias, near-black navy ink.
   Device frames (phone/watch) deliberately stay dark for contrast. */
:root {
    --bg-dark: #FAF9F5;
    --bg-surface: #F1F0EA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-elevated: #12161F;
    --text-primary: #0B0E14;
    --text-secondary: #4C505B;
    --text-muted: #878B95;
    --gradient-bg: radial-gradient(125% 90% at 50% -12%, #FFFDF6 0%, #FAF9F5 58%);
    --gradient-surface: linear-gradient(145deg, #FFFFFF 0%, #F7F6F0 100%);
    --shadow-gold: 0 20px 50px rgba(224, 164, 55, 0.30);
    --shadow-card: 0 18px 48px -24px rgba(11, 14, 20, 0.22);
    --shadow-glow: 0 22px 60px -30px rgba(224, 164, 55, 0.45);
    --border-subtle: rgba(11, 14, 20, 0.09);
    --border-gold: rgba(224, 164, 55, 0.38);
    --nav-bg: rgba(250, 249, 245, 0.80);
    --nav-bg-scrolled: rgba(250, 249, 245, 0.95);
    --video-vignette: rgba(11, 14, 20, 0.18);
    /* Darker gold for legibility on the light ground — keeps identity, gains contrast */
    --gold-text: #A9781A;
    --gold-text-hover: #8A6410;
    --hover-gold-tint: rgba(224, 164, 55, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-rings {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 8px 28px -16px rgba(11, 14, 20, 0.18);
    border-bottom-color: rgba(224, 164, 55, 0.20);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* EightRings orbit mark — rendered from SVG, sits on the dark surface */
.logo-img {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-links a:hover {
    color: var(--gold-text-hover);
}

.nav-cta {
    background: var(--gradient-gold);
    color: var(--on-gold);
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Right-side nav cluster: theme toggle + Download CTA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    /* Light mode disabled — toggle hidden. Markup, CSS, and JS infrastructure
       remain so this can be re-enabled by removing this display:none and
       restoring the pre-paint scripts in the HTML <head>s. */
    display: none;

    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    border-radius: 100px;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-base), background var(--transition-base);
}

.theme-toggle:hover {
    color: var(--gold-text-hover);
    background: var(--hover-gold-tint);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--gold-text-hover);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Icon visibility is driven entirely by the data-theme attribute on <html>
   (or its absence + prefers-color-scheme), so the icon shows the right
   state on first paint without waiting for JS. */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Auto (no override): pick icon by OS preference */
:root:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
    :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
}

/* Explicit override wins */
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-bg);
}

.hero-glow {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(229, 169, 26, 0.12) 0%, rgba(229, 169, 26, 0.04) 40%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 169, 26, 0.1);
    border: 1px solid rgba(229, 169, 26, 0.25);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--gold-text-hover);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-text);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--on-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero marketing video — autoplays muted on page load */
.hero-video-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(229, 169, 26, 0.08) 0%, transparent 18%, transparent 82%, var(--video-vignette) 100%);
}

.hero-video-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 80px rgba(229, 169, 26, 0.25);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Our Apps Section */
.apps-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.apps-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(229, 169, 26, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.apps-section .container {
    position: relative;
    z-index: 1;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.app-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.app-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.app-icon {
    width: 56px;
    height: 56px;
    background: rgba(229, 169, 26, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold-text);
}

.app-icon--pro {
    background: transparent;
}

.app-icon--pro img {
    width: 44px;
    height: 44px;
    display: block;
}

.app-card h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.app-name-accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-tagline {
    color: var(--gold-text-hover);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.app-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* "Coming Soon" pill + "All-in-One" badge */
.coming-soon,
.app-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.coming-soon {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
}

.app-badge {
    color: var(--on-gold);
    background: var(--gradient-gold);
}

/* Pro — featured double-width card closing the grid beside the secret card
   (7 app cards + Pro = a full 3×3) */
.app-card--pro {
    grid-column: span 2;
    background: var(--gradient-surface);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.app-card--pro .app-desc {
    max-width: 620px;
}

/* Inline App Store button used inside the Pro card */
.app-store-btn--inline {
    align-self: flex-start;
    margin-top: 24px;
    margin-bottom: 0;
    padding: 12px 24px;
}

@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-card--pro {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card--pro {
        grid-column: span 1;
    }
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(229, 169, 26, 0.1);
    color: var(--gold-text);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(229, 169, 26, 0.15);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 16px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(229, 169, 26, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold-text);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshot Gallery Section */
.screenshots-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.screenshot-item {
    text-align: center;
    transition: transform var(--transition-base);
}

.screenshot-item:hover {
    transform: translateY(-8px);
}

.screenshot-phone {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 14px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-base);
}

.screenshot-item:hover .screenshot-phone {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.screenshot-phone img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.screenshot-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.screenshot-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* iPhone Section */
.iphone-section {
    padding: 120px 0;
    background: var(--bg-surface);
}

.iphone-section .section-header {
    text-align: center;
    margin-bottom: 0;
}

.iphone-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.iphone-text .section-tag {
    margin-bottom: 16px;
}

.iphone-text h2 {
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 16px;
}

.list-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(229, 169, 26, 0.12);
    color: var(--gold-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.list-icon svg {
    width: 14px;
    height: 14px;
}

.feature-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-list span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Feature list grid — full-width two-column checklist */
.feature-list-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
    margin-top: 48px;
}

.feature-list-grid li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-list-grid .list-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(229, 169, 26, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    margin-top: 2px;
}

.feature-list-grid .list-icon svg {
    width: 14px;
    height: 14px;
}

.feature-list-grid strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.feature-list-grid span {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .feature-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.iphone-visual {
    display: flex;
    justify-content: center;
}

.iphone-frame {
    width: 300px;
    height: 600px;
    background: var(--bg-elevated);
    border-radius: 50px;
    padding: 12px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border: 1px solid var(--border-gold);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: var(--device-screen);
    border-radius: 40px;
    overflow: hidden;
}

/* Watch Section */
.watch-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.watch-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.watch-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.watch-frame {
    width: 200px;
    height: 240px;
    background: var(--bg-elevated);
    border-radius: 45px;
    padding: 10px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.watch-screen {
    width: 100%;
    height: 100%;
    background: var(--device-screen);
    border-radius: 38px;
    overflow: hidden;
}

.watch-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.watch-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 169, 26, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.watch-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.watch-feature {
    display: flex;
    gap: 16px;
}

.wf-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(229, 169, 26, 0.1);
    color: var(--gold-text);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-icon svg {
    width: 20px;
    height: 20px;
}

.watch-feature strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.watch-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-surface);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    color: var(--on-gold);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold-text);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-text), transparent);
    margin-top: 24px;
    opacity: 0.3;
}

/* Languages Section */
.languages-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.languages-content {
    text-align: center;
}

.languages-content h2 {
    margin-bottom: 16px;
}

.languages-content > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.language-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.lang-tag {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.lang-tag:hover {
    border-color: var(--border-gold);
    color: var(--gold-text-hover);
    background: var(--bg-card-hover);
}

/* Download Section */
.download-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(229, 169, 26, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-content h2 {
    margin-bottom: 16px;
}

.download-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    transition: all var(--transition-base);
    margin-bottom: 32px;
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(229, 169, 26, 0.2);
}

.apple-icon {
    width: 32px;
    height: 32px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-small {
    font-size: 0.7rem;
    opacity: 0.7;
}

.btn-large {
    font-size: 1.25rem;
    font-weight: 600;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: var(--gold-text-hover);
}

.footer-made-with {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-made-with .heart-icon {
    width: 16px;
    height: 16px;
    color: #EF4444;
}

.footer-made-with .octicorp {
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   Rebrand additions — nav ghost, Orbit hero, Spectrum app grid
   ============================================================ */

/* Nav ghost link (replaces the retired theme toggle) */
.nav-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition-base), background var(--transition-base);
}

.nav-ghost:hover {
    color: var(--text-primary);
    background: var(--hover-gold-tint);
}

/* Hero — the Orbit graphic */
.hero-orbit {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.hero-orbit svg {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
}

.orbit-spin {
    transform-origin: 256px 256px;
}

@media (prefers-reduced-motion: no-preference) {
    .orbit-spin {
        animation: orbit-rotate 64s linear infinite;
    }
}

@keyframes orbit-rotate {
    to { transform: rotate(360deg); }
}

/* Spectrum app grid — accent-tinted cards + gold "8" tiles */
.app-tile {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #FFFDF8;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 6px 16px -8px rgba(11, 14, 20, 0.35);
    display: grid;
    place-items: center;
}

.app-tile svg {
    width: 50px;
    height: 50px;
    display: block;
}

.app-tile--pro {
    border-color: var(--border-gold);
    box-shadow: 0 8px 22px -8px rgba(224, 164, 55, 0.55);
}

.apps-grid .app-card {
    background: linear-gradient(180deg, var(--acc-tint, transparent) 0%, var(--bg-card) 58%);
    border-color: var(--border-subtle);
}

.apps-grid .app-card:hover {
    background: linear-gradient(180deg, var(--acc-tint, transparent) 0%, var(--bg-card) 48%);
    border-color: var(--acc, var(--border-gold));
    box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--acc, #E0A437) 55%, transparent);
}

/* App tagline picks up the app's accent instead of gold */
.app-tagline {
    color: var(--acc, var(--gold-text));
}

/* Tier pills — Free / Coming soon / Pro */
.tier-pill {
    flex-shrink: 0;
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 11px;
    border-radius: 100px;
    white-space: nowrap;
}

.tier-free { color: #1C7A3A; background: rgba(52, 199, 89, 0.13); }
.tier-soon { color: var(--text-muted); background: rgba(11, 14, 20, 0.05); border: 1px solid var(--border-subtle); }
.tier-pro  { color: #8A6410; background: rgba(224, 164, 55, 0.16); }

/* Secret eighth app — blurred mystery card with a coming-soon overlay */
.app-card--secret {
    position: relative;
    overflow: hidden;
}

.app-card--secret .app-card-blur {
    filter: blur(9px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}

.secret-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 32px;
}

.secret-q {
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secret-overlay p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 240px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .iphone-content,
    .watch-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .iphone-text,
    .watch-text {
        text-align: center;
    }

    .feature-list,
    .watch-features {
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-list li,
    .watch-feature {
        text-align: left;
    }

    .watch-visual {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--gold-text), transparent);
        margin: 0;
    }

    .floating-card {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .hero-video-frame {
        max-width: 280px;
        border-radius: 26px;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .screenshot-phone {
        padding: 4px;
        border-radius: 14px;
    }

    .screenshot-phone img {
        border-radius: 10px;
    }

    .screenshot-item p {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .iphone-frame {
        width: 260px;
        height: 520px;
    }

    .watch-frame {
        width: 160px;
        height: 190px;
    }
}
