/* ============================================================
   Celebray – Senior Apple Web Developer Redesign (2026)
   Mobile-First Architecture & Apple Interactive Showcase Stage
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
    /* Brand Palette */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-pink: #ec4899;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-brand-wide: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #f97316 100%);
    --gradient-text: linear-gradient(135deg, #c4b5fd 0%, #f9a8d4 50%, #fde68a 100%);

    /* Dark Surfaces */
    --dark-bg: #06060c;
    --dark-bg-2: #0a0a14;
    --dark-card: rgba(255, 255, 255, 0.035);
    --dark-card-hover: rgba(255, 255, 255, 0.06);
    --dark-border: rgba(255, 255, 255, 0.08);
    --dark-border-hover: rgba(139, 92, 246, 0.35);
    --dark-text: #eef2ff;
    --dark-text-2: #a5b4fc;
    --dark-text-3: #6b7fa3;

    /* Light Surfaces */
    --light-bg: #f8fafc;
    --light-bg-2: #f1f5f9;
    --light-card: #ffffff;
    --light-border: rgba(0, 0, 0, 0.07);
    --light-border-hover: rgba(139, 92, 246, 0.25);
    --light-text: #0f172a;
    --light-text-2: #475569;
    --light-text-3: #94a3b8;

    /* Spacing Scale (Mobile-First) */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 48px;
    --sp-3xl: 64px;

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.15);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.18s var(--ease);
    --t-base: 0.35s var(--ease);
    --t-smooth: 0.5s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    touch-action: manipulation;
}

/* ─── Language System ───────────────────────────────────── */
[data-lang] {
    display: none !important;
}

body.lang-sv [data-lang="sv"] { display: block !important; }
body.lang-sv span[data-lang="sv"],
body.lang-sv a[data-lang="sv"] { display: inline-block !important; }
body.lang-sv li[data-lang="sv"] { display: flex !important; }
body.lang-sv td[data-lang="sv"],
body.lang-sv th[data-lang="sv"] { display: table-cell !important; }
body.lang-sv div[data-lang="sv"] { display: block !important; }

body.lang-en [data-lang="en"] { display: block !important; }
body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"] { display: inline-block !important; }
body.lang-en li[data-lang="en"] { display: flex !important; }
body.lang-en td[data-lang="en"],
body.lang-en th[data-lang="en"] { display: table-cell !important; }
body.lang-en div[data-lang="en"] { display: block !important; }

/* ─── Base Layout ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--sp-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--sp-lg);
    }
}

.section-dark {
    background: var(--dark-bg);
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
    padding: var(--sp-3xl) 0;
}

.section-light {
    background: var(--light-bg);
    color: var(--light-text);
    position: relative;
    padding: var(--sp-3xl) 0;
}

@media (min-width: 992px) {
    .section-dark, .section-light {
        padding: 100px 0;
    }
}

/* ─── Section Headers ───────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--sp-2xl) auto;
}

.section-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--sp-sm);
    padding: 6px 14px;
    border-radius: var(--r-pill);
}

.section-dark .section-label {
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-light .section-label {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.section-header h2 {
    font-size: clamp(26px, 6vw, 44px);
    margin-bottom: var(--sp-sm);
    letter-spacing: -0.02em;
}

.section-dark .section-header h2 { color: var(--dark-text); }
.section-light .section-header h2 { color: var(--light-text); }

.section-header p {
    font-size: clamp(15px, 3.5vw, 17px);
    line-height: 1.65;
}

.section-dark .section-header p { color: var(--dark-text-3); }
.section-light .section-header p { color: var(--light-text-2); }

/* ─── Mobile-First Buttons ──────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    min-height: 52px;
    width: 100%;
    background: var(--gradient-brand);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--r-md);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
    transition: transform var(--t-base), box-shadow var(--t-base);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .btn-primary {
        width: auto;
        padding: 16px 36px;
        font-size: 16px;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(139, 92, 246, 0.45);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ─── Official Apple App Store Badge ───────────────────── */
.app-store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 24px;
    min-height: 56px;
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--r-md);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

@media (min-width: 640px) {
    .app-store-badge {
        width: auto;
        min-width: 210px;
    }
}

.app-store-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.app-store-badge:hover::before {
    left: 100%;
}

.app-store-badge:hover {
    transform: translateY(-2px) scale(1.02);
    background: #0b0b10;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.35);
    color: #ffffff;
}

.app-store-badge:active {
    transform: translateY(-1px) scale(0.99);
}

.app-store-badge .app-store-icon {
    width: 26px;
    height: 26px;
    fill: #ffffff;
    flex-shrink: 0;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
}

.app-store-subtitle {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.85);
}

.app-store-title {
    font-size: 18px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", "Inter", sans-serif;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.app-store-badge-lg {
    min-height: 60px;
    padding: 12px 28px;
}

.app-store-badge-lg .app-store-icon {
    width: 28px;
    height: 28px;
}

.app-store-badge-lg .app-store-title {
    font-size: 19px;
}

.nav-appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    min-height: 40px;
    background: var(--gradient-brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--r-pill);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
    transition: all var(--t-base);
}

.nav-appstore-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.5);
    color: #ffffff;
}

/* ─── Navigation & Mobile Header ────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    transition: background var(--t-base), padding var(--t-base), border-color var(--t-base);
    border-bottom: 1px solid transparent;
    background: rgba(6, 6, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--dark-border);
    background: rgba(6, 6, 12, 0.92);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    text-decoration: none;
    z-index: 1010;
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--accent-pink);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Links Drawer (< 992px) */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 6, 12, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--sp-xl);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-base);
        z-index: 1000;
    }

    .nav-open .nav-links {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 22px;
        font-weight: 700;
        color: var(--dark-text);
    }
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: var(--sp-xl);
    }

    .nav-links a {
        font-size: 14px;
        font-weight: 500;
        color: var(--dark-text-3);
        transition: color var(--t-fast);
    }

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    z-index: 1010;
}

.lang-btn {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-text-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-sm);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 40px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: var(--r-pill);
}

/* Mobile Hamburger Toggle Button */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: transform var(--t-fast), opacity var(--t-fast);
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
    padding-top: 130px;
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    .hero {
        padding-top: 150px;
        padding-bottom: 100px;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--sp-3xl);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-md);
}

@media (min-width: 992px) {
    .hero-content {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--r-pill);
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(34px, 8vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

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

.hero-desc {
    font-size: clamp(15px, 4vw, 18px);
    color: var(--dark-text-3);
    max-width: 520px;
    line-height: 1.65;
}

.hero-actions {
    width: 100%;
    margin-top: var(--sp-sm);
}

@media (min-width: 640px) {
    .hero-actions {
        width: auto;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
    width: 100%;
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--dark-border);
}

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

@media (min-width: 992px) {
    .hero-stat {
        align-items: flex-start;
    }
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 800;
    color: var(--dark-text);
}

.stat-label {
    font-size: 11px;
    color: var(--dark-text-3);
}

.hero-phone {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-phone .phone-img {
    max-width: 100%;
    width: 520px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* ─── Apple-Grade Interactive Showcase Stage ────────────── */
.preview-section {
    background: var(--light-bg);
}

/* Horizontal Touch-Scrollable Pill Carousel */
.showcase-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-bottom: var(--sp-2xl);
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
    display: flex;
    justify-content: center;
}

.showcase-tabs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.showcase-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    padding: 4px;
    background: var(--light-bg-2);
    border: 1px solid var(--light-border);
    border-radius: var(--r-pill);
    min-width: max-content;
}

.showcase-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: var(--light-text-2);
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
    scroll-snap-align: center;
    white-space: nowrap;
}

.showcase-tab:hover {
    color: var(--light-text);
}

.showcase-tab.active {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.showcase-tab svg {
    flex-shrink: 0;
}

/* Showcase Stage Grid */
.showcase-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .showcase-stage {
        grid-template-columns: 0.9fr 1.1fr;
        gap: var(--sp-3xl);
    }
}

/* Device Viewport & Floating Badges */
.showcase-device-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 20px 0;
}

.showcase-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.25);
    filter: blur(60px);
    pointer-events: none;
    transition: background var(--t-smooth);
}

/* iPhone Frame */
.showcase-iphone-frame {
    position: relative;
    z-index: 2;
    max-width: 220px;
    width: 100%;
    border-radius: 32px;
    padding: 7px;
    background: #0f172a;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.iphone-dynamic-island {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    background: #000;
    border-radius: 9px;
    z-index: 10;
}

.showcase-img {
    width: 100%;
    border-radius: 26px;
    display: block;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

/* Floating Micro-Badges */
.floating-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--r-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    font-weight: 700;
    color: var(--light-text);
    transition: opacity var(--t-base), transform var(--t-base);
}

@media (max-width: 991px) {
    .floating-badge {
        display: none; /* Hide on mobile to keep viewport clean */
    }
}

.badge-top-left {
    top: 40px;
    left: -20px;
    animation: floatBadge1 4s ease-in-out infinite;
}

.badge-bottom-right {
    bottom: 40px;
    right: -20px;
    animation: floatBadge2 5s ease-in-out infinite;
}

@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Interactive Info Cards */
.showcase-info-panel {
    position: relative;
}

.showcase-card {
    display: none;
    flex-direction: column;
    gap: var(--sp-md);
}

.showcase-card.active {
    display: flex;
    animation: fadeInUp 0.4s var(--ease-out);
}

.showcase-chip {
    align-self: flex-start;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--r-pill);
}

.chip-cyan { color: #0284c7; background: rgba(2, 132, 199, 0.1); }
.chip-green { color: #059669; background: rgba(5, 150, 105, 0.1); }
.chip-pink { color: #db2777; background: rgba(219, 39, 119, 0.1); }
.chip-orange { color: #ea580c; background: rgba(234, 88, 12, 0.1); }
.chip-purple { color: #7c3aed; background: rgba(124, 58, 237, 0.1); }

.showcase-card h3 {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--light-text);
}

.showcase-card p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--light-text-2);
}

.showcase-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--sp-xs);
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    box-shadow: var(--shadow-sm);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.dot-cyan { background: var(--accent-cyan); }
.dot-green { background: var(--accent-green); }
.dot-pink { background: var(--accent-pink); }
.dot-orange { background: var(--accent-orange); }
.dot-purple { background: var(--accent); }

/* ─── Apple Bento Grid (Dark) ───────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-lg);
    }
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: dense;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

.bento-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--sp-lg);
    transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--dark-border-hover);
    background: var(--dark-card-hover);
}

.bento-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.12);
    border-radius: var(--r-pill);
    margin-bottom: 12px;
}

.tag-cyan { color: var(--accent-cyan); background: rgba(34, 211, 238, 0.12); }
.tag-pink { color: var(--accent-pink); background: rgba(236, 72, 153, 0.12); }
.tag-green { color: var(--accent-green); background: rgba(52, 211, 153, 0.12); }
.tag-orange { color: var(--accent-orange); background: rgba(251, 146, 60, 0.12); }

.bento-content h3 {
    font-size: 22px;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.bento-content p {
    font-size: 14px;
    color: var(--dark-text-3);
    line-height: 1.6;
}

/* Bento Visuals */
.mock-notification {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mock-notif-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-light);
}

.mock-notif-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mock-notif-body {
    font-size: 12px;
    color: var(--dark-text-2);
}

.bento-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-chip {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-pill);
    color: var(--dark-text-2);
}

.bento-gauge {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-gauge-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.bento-gauge-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--r-pill);
}

.bento-gauge-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-text-2);
}

.bento-badge-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shield-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: var(--r-pill);
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 700;
}

.bento-lang-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 22px;
}

/* Bento Budget Chart */
.bento-budget-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 70px;
    padding-top: 10px;
}

.chart-bar {
    flex: 1;
    height: var(--bar-height);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    transition: background var(--t-fast);
}

.active-bar {
    background: var(--gradient-brand);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.bar-label {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    font-weight: 700;
    color: var(--dark-text-3);
}

.peak-dot {
    position: absolute;
    top: -16px;
    font-size: 10px;
    color: var(--accent-pink);
}

/* Bento Calendar Export */
.bento-calendar-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cal-pill-icon {
    font-size: 20px;
}

.cal-pill-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cal-pill-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-text);
}

.cal-pill-sub {
    font-size: 11px;
    color: var(--dark-text-3);
}

.cal-pill-check {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.12);
    padding: 3px 10px;
    border-radius: var(--r-pill);
}

/* ─── Apple Stepper (Light) ─────────────────────────────── */
.apple-stepper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
}

@media (min-width: 768px) {
    .apple-stepper-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stepper-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.stepper-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stepper-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: var(--gradient-brand);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.stepper-card h3 {
    font-size: 20px;
    color: var(--light-text);
}

.stepper-card p {
    font-size: 14px;
    color: var(--light-text-2);
    line-height: 1.65;
}

.stepper-sub {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

/* ─── Apple Pricing Cards (Dark) ────────────────────────── */
.apple-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .apple-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .apple-pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.apple-pricing-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-xl);
    padding: var(--sp-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
    position: relative;
}

.premium-card-featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.25);
}

.lifetime-card-featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
}

.featured-ribbon {
    position: absolute;
    top: -14px;
    right: 24px;
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: var(--r-pill);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.featured-ribbon.ribbon-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.tier-name {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-top: 6px;
}

.price-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text-3);
}

.price-switcher {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-alt {
    display: block;
    font-size: 12px;
    color: var(--accent-light);
    margin-top: 2px;
}

.tier-desc {
    font-size: 14px;
    color: var(--dark-text-3);
}

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

.tier-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dark-text-2);
}

.check-icon {
    font-weight: 800;
    color: var(--dark-text-3);
}

.check-accent {
    color: var(--accent-light);
}

/* ─── Pricing Tier Buttons ──────────────────────────────── */
.tier-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all var(--t-base);
}

.tier-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.tier-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--dark-text-2);
}

.tier-btn-featured {
    background: var(--gradient-brand);
    border: none;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: #ffffff;
}

.tier-btn-featured:hover {
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.55);
    color: #ffffff;
}

.tier-btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    color: #ffffff;
}

.tier-btn-gold:hover {
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5);
    color: #ffffff;
}

/* ─── Apple Feature Comparison Matrix (Dark) ─────────────── */
.apple-matrix-wrapper {
    max-width: 900px;
    margin: var(--sp-3xl) auto 0;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-xl);
    padding: var(--sp-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .apple-matrix-wrapper {
        padding: var(--sp-2xl);
    }
}

.matrix-header-box {
    text-align: center;
    margin-bottom: var(--sp-xl);
}

.matrix-header-box h3 {
    font-size: clamp(22px, 4vw, 30px);
    color: var(--dark-text);
    margin-bottom: 6px;
}

.matrix-header-box p {
    font-size: 14px;
    color: var(--dark-text-3);
}

.apple-matrix-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.matrix-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--t-fast);
}

.matrix-row:hover:not(.matrix-head) {
    background: rgba(255, 255, 255, 0.03);
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-head {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-text-3);
    border-bottom: 2px solid var(--dark-border);
    padding-bottom: 16px;
}

.matrix-head .col-highlight {
    color: var(--accent-light);
}

.col-feature {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text);
}

.col-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.col-highlight {
    background: rgba(139, 92, 246, 0.06);
    border-radius: var(--r-sm);
    padding: 4px 8px;
}

.matrix-check {
    font-weight: 800;
    color: var(--dark-text-3);
}

.matrix-check.check-accent {
    color: var(--accent-light);
    font-size: 16px;
}

.matrix-cross {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-size: 13px;
}

.matrix-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.15);
    padding: 2px 8px;
    border-radius: var(--r-pill);
}

/* ─── Footer: Apple Sitemap Grid ───────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    padding-bottom: var(--sp-2xl);
    border-bottom: 1px solid var(--dark-border);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    color: var(--dark-text-3);
    transition: color var(--t-fast);
}

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

.footer-bottom {
    padding-top: var(--sp-lg);
    text-align: center;
    font-size: 12px;
    color: var(--dark-text-3);
}

/* ─── FAQ Section (Light) ───────────────────────────────── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.faq-item {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t-fast);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--light-text);
    text-align: left;
}

.faq-chevron {
    font-size: 10px;
    transition: transform var(--t-base);
    color: var(--light-text-3);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--light-text-2);
}

.faq-contact-box {
    max-width: 760px;
    margin: var(--sp-xl) auto 0;
    text-align: center;
    padding: var(--sp-lg);
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed rgba(139, 92, 246, 0.25);
    border-radius: var(--r-md);
}

.faq-contact-box p {
    font-size: 14px;
    color: var(--light-text-2);
    font-weight: 500;
}

.faq-contact-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    transition: opacity var(--t-fast);
}

.faq-contact-link:hover {
    opacity: 0.8;
}

/* ─── CTA Section ───────────────────────────────────────── */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(30px, 6vw, 48px);
}

.cta-content p {
    font-size: 16px;
    color: var(--dark-text-3);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: var(--sp-xs);
}

.cta-actions .btn-primary,
.cta-actions .app-store-badge,
.cta-actions .btn-android {
    width: 100%;
    max-width: 340px;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-actions .btn-primary,
    .cta-actions .app-store-badge,
    .cta-actions .btn-android {
        width: 340px;
    }
}

.btn-android {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text-2);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    transition: all var(--t-base);
}

.btn-android:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-android svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--dark-border);
    background: var(--dark-bg);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-xs);
}

.footer-tagline {
    font-size: 13px;
    color: var(--dark-text-3);
}

.footer-links {
    display: flex;
    gap: var(--sp-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--dark-text-3);
    transition: color var(--t-fast);
}

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

.footer-bottom {
    font-size: 12px;
    color: var(--dark-text-3);
    opacity: 0.6;
}

/* ─── Legal Pages ───────────────────────────────────────── */
.legal-body {
    background-color: var(--light-bg);
}

.legal-header {
    background: var(--dark-bg);
    color: var(--dark-text);
    padding: 130px 0 50px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--dark-border);
}

.legal-header h1 {
    font-size: clamp(28px, 5vw, 44px);
    margin-bottom: var(--sp-xs);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    font-size: 13px;
    color: var(--dark-text-3);
    margin-bottom: var(--sp-md);
}

.back-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
}

.legal-content {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 0 var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.legal-content section {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: var(--sp-xs);
}

.legal-content p {
    font-size: 14px;
    color: var(--light-text-2);
    line-height: 1.7;
}

/* ─── Keyframe Animations ───────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}
