/* ============================================
   SHARE2SAVE - Offline Video & Audio Library
   CSS layer on top of main styles.css
   Tech-premium, privacy-focused aesthetic
   ============================================ */

/* Share2Save Color Palette */
:root {
    --s2s-primary: #2563EB;
    --s2s-dark: #1D4ED8;
    --s2s-light: #60A5FA;
    --s2s-cyan: #06B6D4;
    --s2s-cyan-light: #67E8F9;
    --s2s-indigo: #4F46E5;
    --s2s-indigo-light: #818CF8;
    --s2s-gold: #F59E0B;
    --s2s-bg-dark: #0A1628;
    --s2s-bg-light: #F0F7FF;
    --s2s-text: #0F172A;
    --s2s-font: 'Inter', 'Space Grotesk', sans-serif;
}

/* ---- THEME OVERRIDES — both dark and light ---- */
/* Dark theme (default for Share2Save) */
:root,
html:not([data-theme="light"]) {
    --primary: #2563EB;
    --primary-light: #60A5FA;
    --primary-dark: #1D4ED8;

    --accent-cyan: #06B6D4;
    --accent-magenta: #4F46E5;
    --accent-green: #10B981;
    --accent-purple: #818CF8;

    --bg-dark: #0A1628;
    --bg-darker: #060E1A;
    --bg-card: #0F1E35;
    --bg-card-hover: #152440;

    --text-primary: #F0F6FF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --border-color: #1E3A5F;
    --border-accent: #2A4E80;

    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
    --glow-magenta: 0 0 20px rgba(79, 70, 229, 0.3);
    --glow-primary: 0 0 20px rgba(37, 99, 235, 0.35);
}

/* Light theme */
[data-theme="light"] {
    --primary: #2563EB;
    --primary-light: #60A5FA;
    --primary-dark: #1D4ED8;

    --accent-cyan: #06B6D4;
    --accent-magenta: #4F46E5;
    --accent-green: #10B981;
    --accent-purple: #818CF8;

    --bg-dark: #F0F7FF;
    --bg-darker: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #E8F2FF;

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;

    --border-color: #BFDBFE;
    --border-accent: #93C5FD;

    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.15);
    --glow-magenta: 0 0 20px rgba(79, 70, 229, 0.15);
    --glow-primary: 0 0 20px rgba(37, 99, 235, 0.2);
}

/* ---- HIDE MAIN SITE BG ANIMATION ---- */
.bg-animation {
    display: none;
}

/* ---- BODY & FONT OVERRIDES ---- */
body {
    font-family: var(--s2s-font);
    background: var(--bg-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--s2s-font);
}

p, li, a, span, div {
    font-family: var(--s2s-font);
}

/* ---- KEYFRAME ANIMATIONS ---- */
@keyframes s2s-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes s2s-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-18px) scale(1.02); }
    60% { transform: translateY(-8px) scale(1.01); }
}

@keyframes s2s-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes s2s-particle-rise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift, 20px)) scale(0.2);
        opacity: 0;
    }
}

@keyframes s2s-pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4), 0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6), 0 0 35px 6px rgba(37, 99, 235, 0.15);
    }
}

@keyframes s2s-confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), calc(var(--vy) + 200px)) rotate(var(--rotation));
        opacity: 0;
    }
}

@keyframes s2s-emoji-burst-out {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.2);
        opacity: 0;
    }
}

@keyframes s2s-wobble-shake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
}

@keyframes s2s-scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes s2s-data-stream {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}

/* ---- NAVBAR OVERRIDES ---- */
.navbar {
    background: rgba(10, 22, 40, 0.92);
    border-bottom: 2px solid rgba(37, 99, 235, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .navbar {
    background: rgba(240, 247, 255, 0.92);
    border-bottom: 2px solid rgba(37, 99, 235, 0.3);
}

.nav-logo {
    font-family: var(--s2s-font);
    font-weight: 700;
    gap: 0.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--s2s-primary) 0%, var(--s2s-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-family: var(--s2s-font);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-cursor {
    display: none;
}

.nav-link {
    font-family: var(--s2s-font);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link::after {
    background: linear-gradient(90deg, var(--s2s-primary), var(--s2s-cyan));
}

/* Language switcher */
.s2s-lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.s2s-lang-switcher .lang-switch {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--s2s-font);
}

.s2s-lang-switcher .lang-switch.active {
    background: var(--s2s-primary);
    color: #fff;
    border-color: var(--s2s-primary);
}

.s2s-lang-switcher .lang-switch:not(.active):hover {
    color: var(--s2s-primary);
    border-color: var(--s2s-primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.25);
}

/* Back to main site link */
.back-to-main {
    font-family: var(--s2s-font);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.back-to-main:hover {
    color: var(--s2s-primary);
}

/* Theme toggle override */
.theme-toggle:hover {
    color: var(--s2s-primary);
    border-color: var(--s2s-primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.s2s-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.12) 0%,
        rgba(6, 182, 212, 0.07) 30%,
        rgba(79, 70, 229, 0.09) 60%,
        rgba(37, 99, 235, 0.10) 100%
    );
    background-size: 300% 300%;
    animation: s2s-gradient 14s ease infinite;
}

[data-theme="light"] .s2s-hero {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.07) 0%,
        rgba(6, 182, 212, 0.05) 30%,
        rgba(79, 70, 229, 0.06) 60%,
        rgba(37, 99, 235, 0.07) 100%
    );
    background-size: 300% 300%;
    animation: s2s-gradient 14s ease infinite;
}

/* Geometric particles */
.s2s-particle {
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    animation: s2s-particle-rise linear infinite;
}

.s2s-particle:nth-child(1) {
    width: 6px; height: 6px;
    background: rgba(37, 99, 235, 0.5);
    left: 8%; bottom: 10%;
    animation-duration: 16s;
    animation-delay: 0s;
    --drift: 15px;
}
.s2s-particle:nth-child(2) {
    width: 4px; height: 4px;
    background: rgba(6, 182, 212, 0.6);
    left: 22%; bottom: 5%;
    animation-duration: 20s;
    animation-delay: 3s;
    --drift: -10px;
    border-radius: 50%;
}
.s2s-particle:nth-child(3) {
    width: 8px; height: 8px;
    background: rgba(79, 70, 229, 0.4);
    left: 40%; bottom: 15%;
    animation-duration: 18s;
    animation-delay: 6s;
    --drift: 25px;
    border-radius: 50%;
}
.s2s-particle:nth-child(4) {
    width: 5px; height: 5px;
    background: rgba(96, 165, 250, 0.5);
    left: 60%; bottom: 8%;
    animation-duration: 22s;
    animation-delay: 1s;
    --drift: -18px;
}
.s2s-particle:nth-child(5) {
    width: 3px; height: 3px;
    background: rgba(103, 232, 249, 0.7);
    left: 75%; bottom: 20%;
    animation-duration: 14s;
    animation-delay: 8s;
    --drift: 12px;
    border-radius: 50%;
}
.s2s-particle:nth-child(6) {
    width: 7px; height: 7px;
    background: rgba(37, 99, 235, 0.4);
    left: 88%; bottom: 12%;
    animation-duration: 19s;
    animation-delay: 4s;
    --drift: -22px;
}
.s2s-particle:nth-child(7) {
    width: 4px; height: 4px;
    background: rgba(6, 182, 212, 0.5);
    left: 32%; bottom: 25%;
    animation-duration: 17s;
    animation-delay: 10s;
    --drift: 8px;
    border-radius: 50%;
}
.s2s-particle:nth-child(8) {
    width: 5px; height: 5px;
    background: rgba(129, 140, 248, 0.6);
    left: 55%; bottom: 30%;
    animation-duration: 21s;
    animation-delay: 7s;
    --drift: -15px;
}

/* Hero container */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero text */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--s2s-light);
    width: fit-content;
    letter-spacing: 0.02em;
}

[data-theme="light"] .hero-badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--s2s-dark);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0;
}

.s2s-name {
    background: linear-gradient(135deg, var(--s2s-primary) 0%, var(--s2s-cyan) 50%, var(--s2s-indigo-light) 100%);
    background-size: 200% 200%;
    animation: s2s-gradient 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-tagline {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 500px;
    font-weight: 400;
}

/* CTA buttons */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-s2s-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background: linear-gradient(135deg, var(--s2s-primary), var(--s2s-indigo));
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: s2s-pulse-glow 3s ease-in-out infinite;
    font-family: var(--s2s-font);
    letter-spacing: -0.01em;
}

.btn-s2s-primary:hover {
    background: linear-gradient(135deg, var(--s2s-dark), var(--s2s-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    animation: none;
}

.btn-s2s-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: transparent;
    color: var(--s2s-light);
    border: 1.5px solid rgba(37, 99, 235, 0.4);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--s2s-font);
    letter-spacing: -0.01em;
}

.btn-s2s-secondary:hover {
    border-color: var(--s2s-primary);
    color: var(--s2s-primary);
    background: rgba(37, 99, 235, 0.07);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-s2s-secondary {
    color: var(--s2s-dark);
    border-color: rgba(37, 99, 235, 0.35);
}

/* App icon in hero */
.hero-app-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-app-icon img {
    width: 260px;
    height: 260px;
    border-radius: 56px;
    animation: s2s-float 5s ease-in-out infinite;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35),
                0 0 0 1px rgba(37, 99, 235, 0.2),
                0 0 80px rgba(37, 99, 235, 0.15);
    transition: transform 0.3s ease;
}

.hero-app-icon img:hover {
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.5),
                0 0 100px rgba(6, 182, 212, 0.2);
}

/* Hero icon glow ring */
.hero-app-icon::before {
    content: '';
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.1));
    z-index: -1;
    animation: s2s-pulse-glow 3s ease-in-out infinite;
}

/* ---- WAVE DIVIDERS ---- */
.section-wave {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: -1px;
    overflow: hidden;
}

/* ============================================
   SECTION BASE
   ============================================ */
.s2s-section {
    padding: 5rem 2rem;
    position: relative;
}

.s2s-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.s2s-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--s2s-light);
    margin-bottom: 0.6rem;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .s2s-section-label {
    color: var(--s2s-dark);
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.2);
}

.s2s-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    line-height: 1.15;
}

.s2s-section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Section-specific background tints */
#screenshots {
    background: linear-gradient(180deg,
        rgba(37, 99, 235, 0.03) 0%,
        rgba(6, 182, 212, 0.04) 100%
    );
}

#how-it-works {
    background: linear-gradient(180deg,
        rgba(6, 182, 212, 0.04) 0%,
        rgba(79, 70, 229, 0.05) 100%
    );
}

#features {
    background: linear-gradient(180deg,
        rgba(37, 99, 235, 0.04) 0%,
        rgba(37, 99, 235, 0.06) 100%
    );
}

#benefits {
    background: linear-gradient(180deg,
        rgba(79, 70, 229, 0.04) 0%,
        rgba(79, 70, 229, 0.07) 100%
    );
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */
.device-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.device-tab {
    padding: 0.5rem 1.4rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--s2s-font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-tab.active,
.device-tab:hover {
    border-color: var(--s2s-primary);
    color: var(--s2s-primary);
    background: rgba(37, 99, 235, 0.07);
}

.screenshots-carousel {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 1rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--s2s-primary) transparent;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshots-carousel.hidden {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.screenshot-item img {
    width: auto;
    max-height: 420px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(37, 99, 235, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 45px rgba(37, 99, 235, 0.25),
                0 0 0 1px rgba(37, 99, 235, 0.3);
}

.screenshot-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.how-it-works-visual img {
    max-width: 720px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 50px rgba(37, 99, 235, 0.2),
                0 0 0 1px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .how-it-works-visual img {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.1);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.15);
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.step-card:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--s2s-primary), var(--s2s-light));
}
.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--s2s-cyan), var(--s2s-indigo));
}
.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--s2s-indigo), var(--s2s-indigo-light));
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    border-top: 3px solid var(--s2s-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) { border-top-color: var(--s2s-primary); }
.feature-card:nth-child(2) { border-top-color: var(--s2s-cyan); }
.feature-card:nth-child(3) { border-top-color: var(--s2s-indigo); }
.feature-card:nth-child(4) { border-top-color: var(--s2s-light); }
.feature-card:nth-child(5) { border-top-color: var(--s2s-cyan); }
.feature-card:nth-child(6) { border-top-color: var(--s2s-indigo-light); }
.feature-card:nth-child(7) { border-top-color: var(--s2s-gold); }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.12);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.s2s-stats-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.06) 0%,
        rgba(6, 182, 212, 0.05) 50%,
        rgba(79, 70, 229, 0.06) 100%
    );
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--s2s-primary), var(--s2s-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(1) .stat-number {
    background: linear-gradient(135deg, var(--s2s-primary), var(--s2s-light));
    -webkit-background-clip: text;
    background-clip: text;
}
.stat-item:nth-child(2) .stat-number {
    background: linear-gradient(135deg, var(--s2s-cyan), var(--s2s-indigo));
    -webkit-background-clip: text;
    background-clip: text;
}
.stat-item:nth-child(3) .stat-number {
    background: linear-gradient(135deg, var(--s2s-indigo), var(--s2s-primary));
    -webkit-background-clip: text;
    background-clip: text;
}
.stat-item:nth-child(4) .stat-number {
    background: linear-gradient(135deg, var(--s2s-light), var(--s2s-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    border-left: 3px solid var(--s2s-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:nth-child(1) { border-left-color: var(--s2s-primary); }
.benefit-card:nth-child(2) { border-left-color: var(--s2s-cyan); }
.benefit-card:nth-child(3) { border-left-color: var(--s2s-indigo); }
.benefit-card:nth-child(4) { border-left-color: var(--s2s-light); }
.benefit-card:nth-child(5) { border-left-color: var(--s2s-gold); }
.benefit-card:nth-child(6) { border-left-color: var(--s2s-indigo-light); }

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}

.benefit-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.benefit-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.s2s-trust-section {
    padding: 3rem 2rem;
    text-align: center;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

[data-theme="light"] .trust-item {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.15);
}

.trust-item span:first-child {
    font-size: 1rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: rgba(37, 99, 235, 0.4);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--s2s-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
    color: var(--s2s-primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--s2s-primary);
    transition: transform 0.3s ease, background 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: rgba(37, 99, 235, 0.18);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.5rem;
}

.faq-answer.open {
    max-height: 500px;
    padding-bottom: 1.2rem;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.s2s-cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.10) 0%,
        rgba(6, 182, 212, 0.07) 40%,
        rgba(79, 70, 229, 0.09) 100%
    );
    position: relative;
    overflow: hidden;
}

.s2s-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.s2s-cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    line-height: 1.65;
}

.cta-badge {
    margin-top: 1rem !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.s2s-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--s2s-primary), var(--s2s-cyan), var(--s2s-indigo));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================
   CONFETTI & EMOJI BURST
   ============================================ */
.s2s-confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 9998;
    animation: s2s-confetti-fall 1s ease-out forwards;
}

.s2s-emoji-burst {
    position: fixed;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 9998;
    animation: s2s-emoji-burst-out 0.9s ease-out forwards;
    transform-origin: center;
}

.s2s-wobble {
    animation: s2s-wobble-shake 0.6s ease-in-out !important;
}

/* ============================================
   FOOTER
   ============================================ */
.s2s-footer {
    background: var(--bg-darker);
    border-top: 2px solid rgba(37, 99, 235, 0.3);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--s2s-primary), var(--s2s-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ============================================
   CARD TILT SETUP
   ============================================ */
.feature-card,
.benefit-card,
.step-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        align-items: center;
    }
    .hero-tagline {
        max-width: 100%;
    }
    .hero-app-icon {
        order: -1;
    }
    .hero-app-icon img {
        width: 200px;
        height: 200px;
    }
    .hero-app-icon::before {
        width: 230px;
        height: 230px;
    }
}

@media (max-width: 768px) {
    .s2s-hero {
        padding: 5rem 1.5rem 3rem;
    }
    .steps-container {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .screenshot-item img {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .hero-app-icon img {
        width: 160px;
        height: 160px;
    }
    .hero-app-icon::before {
        width: 185px;
        height: 185px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-s2s-primary,
    .btn-s2s-secondary {
        justify-content: center;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .s2s-hero,
    .s2s-name,
    .hero-app-icon img,
    .s2s-particle,
    .btn-s2s-primary {
        animation: none !important;
    }
    .feature-card,
    .benefit-card,
    .step-card {
        transition: none !important;
    }
}
