/* ==========================================================================
   SHTF: Survival Prep design system
   Dark navy glass theme with red accent, Manrope typography.
   ========================================================================== */

:root {
    --deep-bg: #0a0f1e;
    --accent-color: rgba(240, 76, 60, 1);
    --accent-2: #e67e22;
    --accent-glow: rgba(240, 76, 60, 0.25);
    --accent-soft: rgba(240, 76, 60, 0.12);
    --light-color: rgba(236, 240, 241, 1);
    --muted: rgba(197, 210, 226, 0.68);
    --faint: rgba(197, 210, 226, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-blue: rgba(94, 120, 134, 0.25);
    --glow-red: rgba(240, 76, 60, 0.15);
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-sans: 'Manrope', 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--deep-bg);
    color: var(--light-color);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-color);
    color: #fff;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Scroll-based fade-in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

section {
    padding: 110px 0;
    position: relative;
}

/* ==========================================================================
   Shared typography
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

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

.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--light-color);
    margin-bottom: 18px;
}

.section-header p {
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.85;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--light-color);
}

.mc-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(160, 175, 200, 0.7);
    text-decoration: none;
    padding-left: 50px;
    transition: color 0.2s ease;
}

.mc-badge:hover {
    color: rgba(240, 76, 60, 0.9);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: rgba(236, 240, 241, 0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--light-color);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-2));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-2));
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 76, 60, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-color);
    cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

#home {
    background: linear-gradient(160deg, #0a0f1e 0%, #121a30 30%, #16203a 60%, #0d1225 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    top: -15%;
    right: -10%;
    border-radius: 50%;
    animation: auroraHero1 12s ease-in-out infinite alternate;
    filter: blur(80px);
    pointer-events: none;
}

#home::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    border-radius: 50%;
    animation: auroraHero2 10s ease-in-out infinite alternate;
    filter: blur(80px);
    pointer-events: none;
}

@keyframes auroraHero1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-60px, 30px) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-20px, -20px) scale(1.05); opacity: 0.5; }
}

@keyframes auroraHero2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(50px, -25px) scale(1.15); opacity: 0.7; }
    100% { transform: translate(15px, 10px) scale(0.95); opacity: 0.4; }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(2.7rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--light-color);
    margin-bottom: 6px;
}

.hero-tagline {
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #c8d8e4 45%, #f04c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 26px;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 34px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 44px;
}

.countdown-heading {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 14px;
}

.countdown-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--light-color);
    padding: 10px 0;
    border-radius: var(--radius-md);
    min-width: 78px;
    display: inline-block;
    border: 1px solid var(--glass-border);
}

.countdown-label {
    font-size: 0.72rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faint);
    font-weight: 700;
}

.hero-showcase {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 64px auto 0;
}

.hero-showcase img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-showcase::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, var(--glow-red) 0%, transparent 65%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-2));
    color: #fff;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240, 76, 60, 0.4);
    filter: brightness(1.08);
}

.cta-button--ghost {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--light-color);
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cta-button--ghost:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.16);
    filter: none;
}

/* ==========================================================================
   Purpose section
   ========================================================================== */

#purpose {
    background: linear-gradient(180deg, #0d1225 0%, #0e1528 100%);
    overflow: hidden;
}

#purpose .feature-item a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Features section
   ========================================================================== */

#features {
    background: linear-gradient(180deg, #0e1528 0%, #111a30 50%, #0e1528 100%);
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: left;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(94, 120, 134, 0.15);
    border-color: rgba(255, 255, 255, 0.12);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    border: 1px solid rgba(240, 76, 60, 0.2);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--light-color);
}

.feature-item p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* ==========================================================================
   Mission section
   ========================================================================== */

#ourmission {
    background: linear-gradient(180deg, #0e1528 0%, #101a2e 50%, #0d1225 100%);
    overflow: hidden;
}

#ourmission::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(94, 120, 134, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.ourmission-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 1;
}

.ourmission-image {
    flex: 1;
    min-width: 300px;
}

.ourmission-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
}

.ourmission-text {
    flex: 1;
    min-width: 300px;
}

.ourmission-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 22px;
    color: var(--light-color);
}

.ourmission-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
}

.ourmission-text .cta-button {
    margin-top: 8px;
}

/* ==========================================================================
   FAQ section
   ========================================================================== */

#faq {
    background: linear-gradient(180deg, #0d1225 0%, #111d33 50%, #0d1225 100%);
}

.faq-container {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--light-color);
}

.faq-toggle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.75;
}

.faq-answer a {
    color: var(--accent-color);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 20px;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ==========================================================================
   Signup section
   ========================================================================== */

#signup {
    background: linear-gradient(180deg, #0e1528 0%, #131d35 50%, #0d1225 100%);
    overflow: hidden;
}

#signup::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.signup-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 48px 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.form-title {
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--light-color);
}

.form-subtitle {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1rem;
}

#signup-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: rgba(236, 240, 241, 0.8);
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    border-color: rgba(240, 76, 60, 0.5);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 76, 60, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--faint);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-2));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    display: block;
    width: 100%;
    margin-top: 26px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240, 76, 60, 0.4);
    filter: brightness(1.08);
}

#signup-message {
    margin-top: 16px;
    text-align: center;
}

/* ==========================================================================
   Contact section
   ========================================================================== */

#contact {
    background: linear-gradient(180deg, #0d1225 0%, #111b32 50%, #0b1020 100%);
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.contact-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    text-align: center;
    max-width: 560px;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--light-color);
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    margin: 18px 0 0;
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item:visited {
    color: var(--light-color);
}

.contact-item:hover .contact-text,
.contact-item:focus-visible .contact-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-icon {
    font-size: 1.3rem;
    margin-right: 12px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--light-color);
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: linear-gradient(180deg, #0b1020, #060a16);
    color: var(--light-color);
    padding: 44px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-link {
    display: block;
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(160, 175, 200, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-link:hover {
    color: rgba(240, 76, 60, 0.9);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(236, 240, 241, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links p {
    margin: 0;
    color: var(--faint);
}

.copyright {
    color: var(--faint);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    section {
        padding: 90px 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 66px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 66px);
        background: rgba(10, 15, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 44px;
        gap: 26px;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 76px 0;
    }

    .countdown-number {
        font-size: 1.6rem;
        min-width: 66px;
    }

    .signup-content {
        padding: 36px 24px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .cta-button {
        width: 100%;
    }

    .countdown-number {
        font-size: 1.35rem;
        min-width: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #home::before,
    #home::after {
        animation: none;
    }

    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Screens section (annotated app screenshots in the Ollama Mobile layouts)
   ========================================================================== */

#screens {
    background: linear-gradient(180deg, #0e1528 0%, #0f1830 50%, #0d1225 100%);
    overflow: hidden;
}

#screens::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    top: -180px;
    right: -160px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.screens-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(18px, 2vw, 26px);
}

/* Phone frame and callouts */
.shot {
    position: relative;
}

.phone {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    background: #0a0f1e;
}

.phone img {
    width: 100%;
    height: auto;
    display: block;
}

.sc-badge {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(240, 76, 60, 0.45);
    z-index: 2;
}

/* Shared meta row and copy */
.sc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--faint);
}

.sc-chip {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-color);
    border: 1px solid rgba(240, 76, 60, 0.2);
}

.sc-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-copy h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--light-color);
}

.sc-copy h3 em {
    font-style: normal;
    color: var(--accent-color);
}

.sc-legend {
    list-style: none;
    display: grid;
    gap: 10px;
    width: 100%;
}

.sc-legend--cols {
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

.sc-legend li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sc-legend li strong {
    color: var(--light-color);
    font-weight: 700;
}

.sc-legend .n {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.sc-surface {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.sc-ghost-word {
    position: absolute;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: rgba(240, 76, 60, 0.09);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

/* ---- A: Card pair ---- */
.sc-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 24px);
}

.sc-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(28px, 3.5vw, 44px) clamp(28px, 3.5vw, 44px) 0;
    overflow: hidden;
}

.sc-card--alt {
    background: rgba(240, 76, 60, 0.06);
}

.sc-card__visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 24px;
    max-height: 560px;
    overflow: hidden;
    margin-top: auto;
}

.sc-card__visual .shot {
    width: min(78%, 340px);
}

.sc-card__visual .phone {
    border-radius: 30px 30px 0 0;
    border-bottom: 0;
}

/* ---- B: Cinematic ---- */
.sc-cinematic {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 4vw, 60px) clamp(36px, 4vw, 60px) 0;
}

.sc-cinematic .sc-ghost-word {
    bottom: -0.12em;
    left: -0.03em;
    font-size: clamp(6rem, 18vw, 17rem);
}

.sc-cinematic__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 4vw, 60px);
    align-items: flex-end;
}

.sc-cinematic__copy {
    padding-bottom: clamp(36px, 4vw, 56px);
}

.sc-cinematic__phones {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 660px;
    overflow: hidden;
    padding-top: 24px;
}

.sc-cinematic__phone {
    width: min(50%, 330px);
}

.sc-cinematic__phone .phone {
    border-radius: 30px 30px 0 0;
}

.sc-cinematic__phone--front {
    z-index: 1;
    transform: rotate(-3deg);
}

.sc-cinematic__phone--back {
    transform: rotate(6deg) translateX(-28px);
    opacity: 0.85;
}

/* ---- C: Scatter ---- */
.sc-scatter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(32px, 5vw, 64px) 0;
}

.sc-scatter__stage {
    position: relative;
    height: 860px;
}

.sc-scatter__phone {
    position: absolute;
    width: 300px;
}

.sc-scatter__phone--a {
    top: 0;
    left: 4%;
    transform: rotate(-7deg);
}

.sc-scatter__phone--b {
    bottom: 0;
    right: 2%;
    width: 320px;
    transform: rotate(6deg);
}

/* ---- D: Ghost word ---- */
.sc-ghost {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.sc-ghost .sc-ghost-word {
    top: -0.1em;
    left: -0.02em;
    font-size: clamp(4.5rem, 14vw, 14rem);
}

.sc-ghost__phones {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 110px;
    height: 680px;
    width: 100%;
    overflow: hidden;
}

.sc-ghost__phone {
    width: min(40%, 320px);
}

.sc-ghost__phone--a { transform: rotate(-6deg) translateY(-18px); }
.sc-ghost__phone--b { transform: rotate(5deg); }

.sc-ghost .sc-copy {
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 780px;
}

.sc-ghost .sc-copy h3 {
    text-align: center;
}

/* ---- E: Split pair ---- */
.sc-split-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 24px);
}

.sc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    overflow: hidden;
}

.sc-split--flip .sc-split__copy { order: 2; }
.sc-split--flip .sc-split__visual { order: 1; }

.sc-split__copy {
    padding: clamp(24px, 3vw, 40px);
    justify-content: center;
}

.sc-split__copy h3 {
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
}

.sc-split__visual {
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.sc-split__visual .shot {
    width: 100%;
    max-width: 250px;
}

.sc-split__visual .phone {
    border-radius: 24px;
}

.sc-split--wide {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.sc-split--wide .sc-split__copy h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.sc-split--wide .sc-split__visual .shot {
    max-width: 300px;
}

@media (max-width: 992px) {
    .sc-pair,
    .sc-split-pair,
    .sc-cinematic__layout,
    .sc-scatter,
    .sc-split--wide {
        grid-template-columns: 1fr;
    }

    .sc-scatter__stage { height: 520px; }
    .sc-scatter__phone--a { width: 200px; }
    .sc-scatter__phone--b { width: 215px; }
    .sc-scatter__phone .phone { border-radius: 24px; }
}

@media (max-width: 640px) {
    .phone { border-radius: 22px; }
    .sc-legend--cols { grid-template-columns: 1fr; }

    .sc-split { grid-template-columns: 1fr; }
    .sc-split--flip .sc-split__copy,
    .sc-split--flip .sc-split__visual { order: 0; }

    .sc-card { padding: 28px 24px 0; }
    .sc-card__visual { max-height: 500px; }
    .sc-card__visual .phone { border-radius: 22px 22px 0 0; }

    .sc-cinematic { padding: 32px 24px 0; }
    .sc-cinematic__phones { height: 420px; }
    .sc-cinematic__phone { width: min(48%, 180px); }
    .sc-cinematic__phone .phone { border-radius: 20px 20px 0 0; }

    .sc-ghost { padding: 32px 20px; }
    .sc-ghost__phones { height: auto; padding-top: 70px; padding-bottom: 12px; gap: 16px; }
    .sc-ghost__phone { width: min(46%, 170px); }

    .sc-scatter__stage { height: 380px; }
    .sc-scatter__phone--a { width: 145px; }
    .sc-scatter__phone--b { width: 158px; }
    .sc-scatter__phone .phone { border-radius: 18px; }

    .sc-badge { width: 22px; height: 22px; font-size: 0.7rem; border-width: 1.5px; }
}

/* Store badges (structured like the Ollama Mobile site) */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.85rem;
}

.store-badges--large {
    margin-top: 1.5rem;
}

.store-badge {
    position: relative;
    display: inline-flex;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

a.store-badge:hover,
a.store-badge:focus-visible {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* Override any base img rules so badges sit flush. */
.store-badge img {
    display: block;
    width: auto;
    margin: 0;
    border-radius: 0;
}

/* Measured: Apple's badge fills 100% of its art; Google's PNG button is only
   ~67% of its height, the rest is transparent clear-space. Google renders
   ~1.49x taller so the two visible buttons match height on a common centre line.
   Same sizing as the Ollama Mobile site. */
.store-badge--apple img { height: 44px; }
.store-badge--google img { height: 65px; }
