/* ==========================================================================
   CURTAIN — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-dark: #0a0a0b;
    --bg-card: rgba(18, 18, 20, 0.82);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #e5e7eb;
    --accent-strong: #ffffff;
    --navbar-bg: rgba(18, 18, 20, 0.75);
    --navbar-border: rgba(255, 255, 255, 0.1);
    --btn-primary-bg: #ffffff;
    --btn-primary-color: #0a0a0b;
    --btn-primary-hover: #f0f0f2;
    --badge-bg: rgba(255, 255, 255, 0.06);
    --badge-border: rgba(255, 255, 255, 0.1);
    --mac-frame-bg: #1a1a1c;
    --mac-frame-border: #2a2a2c;
    --mac-header-bg: #141416;
    --mac-header-border: #222224;
    --mac-menu-color: #888888;
    --feature-card-bg: rgba(255, 255, 255, 0.04);
    --feature-card-border: rgba(255, 255, 255, 0.08);
    --feature-anim-bg: rgba(0, 0, 0, 0.25);
    --feature-anim-border: rgba(255, 255, 255, 0.07);
    --download-card-bg: rgba(255, 255, 255, 0.04);
    --download-card-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-select-bg: #141416;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, monospace;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #fbfbfd;
        --bg-card: rgba(255, 255, 255, 0.85);
        --border-color: rgba(0, 0, 0, 0.08);
        --border-hover: rgba(0, 0, 0, 0.16);
        --text-primary: #1d1d1f;
        --text-secondary: #6e6e73;
        --text-muted: #86868b;
        --accent: #1d1d1f;
        --accent-strong: #000000;
        --navbar-bg: rgba(255, 255, 255, 0.8);
        --navbar-border: rgba(0, 0, 0, 0.08);
        --btn-primary-bg: #1d1d1f;
        --btn-primary-color: #ffffff;
        --btn-primary-hover: #38383c;
        --badge-bg: rgba(0, 0, 0, 0.04);
        --badge-border: rgba(0, 0, 0, 0.08);
        --mac-frame-bg: #f0f0f4;
        --mac-frame-border: #dcdce0;
        --mac-header-bg: #e6e6eb;
        --mac-header-border: #d5d5da;
        --mac-menu-color: #555555;
        --feature-card-bg: rgba(255, 255, 255, 0.8);
        --feature-card-border: rgba(0, 0, 0, 0.08);
        --feature-anim-bg: rgba(0, 0, 0, 0.03);
        --feature-anim-border: rgba(0, 0, 0, 0.06);
        --download-card-bg: rgba(255, 255, 255, 0.88);
        --download-card-border: rgba(0, 0, 0, 0.08);
        --input-bg: rgba(0, 0, 0, 0.03);
        --input-select-bg: #ffffff;
    }
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.15rem;
}

p {
    color: var(--text-secondary);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* ─── Apple Logo Mask Icon ───────────────────────────────────────────────── */
.apple-icon {
    display: inline-block;
    width: 14px;
    height: 17px;
    background-color: currentColor;
    -webkit-mask: url('apple-logo.png') no-repeat center / contain;
    mask: url('apple-logo.png') no-repeat center / contain;
    vertical-align: -2px;
    flex-shrink: 0;
}

/* ─── Floating Pill Navigation ───────────────────────────────────────────── */
.nav-wrapper {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--navbar-border);
    padding: 7px 10px 7px 18px;
    border-radius: 9999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    width: auto;
    max-width: 860px;
    transition: var(--transition);
}

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

.app-logo-img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 9999px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(128, 128, 128, 0.08);
}

.btn-nav-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-nav-download .apple-icon {
    width: 12px;
    height: 15px;
    margin-top: -1px;
}

.btn-nav-download:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

@media (max-width: 680px) {
    .nav-links .nav-link-hide-mobile {
        display: none;
    }
    .navbar {
        gap: 12px;
        padding: 6px 8px 6px 14px;
    }
}

/* ─── Buttons & Badges ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary .apple-icon {
    width: 15px;
    height: 18px;
    margin-top: -2px;
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: 1px solid var(--badge-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.badge .apple-icon {
    width: 12px;
    height: 15px;
    margin-top: -1px;
}

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero {
    padding-top: 100px;
    padding-bottom: 40px;
    text-align: center;
    scroll-margin-top: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.hero-tagline .apple-icon {
    width: 14px;
    height: 17px;
    margin-top: -2px;
}

.hero-content h1 {
    margin: 4px 0 14px;
}

.hero-content p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-micro-perks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.hero-perk-item {
    display: inline-block;
}

/* ─── Hero Interactive Mac Window Preview ────────────────────────────────── */
.hero-visual {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    scroll-margin-top: 86px;
    perspective: 1200px;
}

.mac-frame {
    background: var(--mac-frame-bg);
    border: 1px solid var(--mac-frame-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color);
    transition: var(--transition);
    position: relative;
}

.mac-header {
    height: 36px;
    background: var(--mac-header-bg);
    border-bottom: 1px solid var(--mac-header-border);
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
    user-select: none;
}

.dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mac-menu-bar {
    position: absolute;
    left: 68px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--mac-menu-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-left {
    letter-spacing: 0.02em;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-bar-clock {
    font-size: 0.74rem;
    color: var(--mac-menu-color);
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.menu-icon {
    width: 16px;
    height: 16px;
    color: var(--mac-menu-color);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.15s ease;
    display: block;
    flex-shrink: 0;
}

.menu-icon:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Screen area */
.mac-screen {
    height: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 17px 17px;
}

.desktop-bg {
    position: absolute;
    inset: 0;
    background-image: url('Sequoia-Sunrise.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.mac-screen.curtained .desktop-bg {
    filter: brightness(1.06) saturate(1.08);
}

.desktop-icons {
    position: absolute;
    top: 24px;
    right: 28px;
    display: grid;
    grid-template-rows: repeat(3, 106px);
    grid-auto-flow: column;
    grid-auto-columns: 82px;
    gap: 12px 24px;
    overflow: hidden;
    max-height: calc(100% - 48px);
    z-index: 2;
    transition:
        opacity 0.32s cubic-bezier(0.4, 0, 1, 1),
        transform 0.32s cubic-bezier(0.4, 0, 1, 1);
}

.desktop-icons-center {
    position: absolute;
    top: 24px;
    left: 242px;
    display: grid;
    grid-template-rows: repeat(3, 106px);
    grid-auto-flow: column;
    grid-auto-columns: 82px;
    gap: 12px 24px;
    overflow: hidden;
    z-index: 2;
    transition:
        opacity 0.31s cubic-bezier(0.4, 0, 1, 1) 0.02s,
        transform 0.31s cubic-bezier(0.4, 0, 1, 1) 0.02s;
}

.desktop-icons-left {
    position: absolute;
    top: 24px;
    left: 28px;
    display: grid;
    grid-template-rows: repeat(3, 106px);
    grid-auto-flow: column;
    grid-auto-columns: 82px;
    gap: 12px 24px;
    overflow: hidden;
    z-index: 2;
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 1, 1) 0.04s,
        transform 0.3s cubic-bezier(0.4, 0, 1, 1) 0.04s;
}

.mac-screen.curtained .desktop-icons,
.mac-screen.curtained .desktop-icons-left,
.mac-screen.curtained .desktop-icons-center {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 74px;
    text-align: center;
    cursor: default;
    user-select: none;
}

.desktop-icon-svg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
    margin-bottom: 6px;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-item:hover .desktop-icon-svg {
    transform: translateY(-2px) scale(1.06);
}

.icon-item span {
    font-size: 0.68rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.25;
}

.screen-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.toggle-trigger {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 999px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.toggle-trigger:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffbd2e;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.mac-screen.curtained .toggle-dot {
    background-color: #27c93f;
}

/* Fake Cursor for Animation (Authentic macOS Cursor) */
.fake-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 24px;
    z-index: 1000;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease-in-out;
    opacity: 0;
    transform: translate(0, 0);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.fake-cursor.visible {
    opacity: 1;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features {
    padding: 48px 0;
    scroll-margin-top: 72px;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--feature-card-bg);
    border: 1px solid var(--feature-card-border);
    border-radius: 20px;
    padding: 28px;
    transition: var(--transition);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
        0 1px 0 var(--border-color) inset,
        0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    border-radius: inherit;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 var(--border-hover) inset,
        0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ─── Feature Animations shared ─────────────────────────────────────────── */
.feature-anim {
    width: 100%;
    height: 110px;
    margin-bottom: 22px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--feature-anim-bg);
    border: 1px solid var(--feature-anim-border);
    display: flex;
    flex-direction: column;
}

/* shared mini dots */
.fa-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
    background: rgba(255,255,255,0.2);
}

/* ── Anim 1: Instant Toggle ──────────────────────────────────────────────── */
.anim-toggle .fa-menubar {
    height: 18px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    flex-shrink: 0;
}
.anim-toggle .fa-curtain-icon {
    margin-left: auto;
    opacity: 0.6;
    color: #fff;
    display: flex;
    align-items: center;
}
.anim-toggle .fa-desktop {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fa-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 20px);
    grid-template-rows: repeat(2, 22px);
    gap: 8px;
}
.fa-file-icon {
    width: 20px; height: 22px;
    border-radius: 4px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.12);
    animation: icon-blink 3s ease-in-out infinite;
}
.fa-file-icon.fi1 { animation-delay: 0s; }
.fa-file-icon.fi2 { animation-delay: 0.08s; }
.fa-file-icon.fi3 { animation-delay: 0.16s; }
.fa-file-icon.fi4 { animation-delay: 0.05s; }
.fa-file-icon.fi5 { animation-delay: 0.13s; }
.fa-file-icon.fi6 { animation-delay: 0.21s; }

@keyframes icon-blink {
    0%, 35%   { opacity: 1; transform: scale(1); }
    45%, 75%  { opacity: 0; transform: scale(0.7); }
    85%, 100% { opacity: 1; transform: scale(1); }
}

/* ── Anim 2: Presentation Ready ─────────────────────────────────────────── */
.anim-present .fa-screen-outer {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}
.fa-screen-bar {
    height: 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    flex-shrink: 0;
}
.fa-present-label {
    font-size: 7px;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.fa-screen-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fa-slide {
    width: 58px; height: 38px;
    border-radius: 4px;
    background: rgba(99,102,241,0.25);
    border: 1px solid rgba(99,102,241,0.4);
}
.fa-present-icons {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: icons-vanish 3.5s ease-in-out infinite;
}
.fa-p-icon {
    width: 14px; height: 14px;
    border-radius: 3px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.1);
}
@keyframes icons-vanish {
    0%, 30%  { opacity: 1; transform: translateY(-50%) scale(1); }
    50%, 80% { opacity: 0; transform: translateY(-50%) scale(0.6); }
    95%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ── Anim 3: Zero Overhead ───────────────────────────────────────────────── */
.anim-cpu .fa-cpu-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
}
.fa-cpu-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fa-cpu-label {
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    width: 22px;
    flex-shrink: 0;
}
.fa-cpu-val {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}
.fa-bar-track {
    flex: 1;
    height: 5px;
    border-radius: 99px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.fa-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    background: rgba(99,255,160,0.5);
    animation: bar-idle 4s ease-in-out infinite;
}
.mem-fill  { width: 3%; animation: none; background: rgba(99,255,160,0.4); }
.pwr-fill  { width: 0%; animation: none; }
@keyframes bar-idle {
    0%, 100% { width: 0%; }
    20%      { width: 1.5%; }
    50%      { width: 0.5%; }
    70%      { width: 1%; }
}
.fa-pulse-line {
    height: 20px;
    margin-top: 2px;
    opacity: 0.35;
}
.fa-pulse-line svg { width: 100%; height: 100%; }
.fa-pulse-path {
    fill: none;
    stroke: rgba(99,255,160,0.8);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

/* ─── FAQ Section (Original Clean Layout) ────────────────────────────────── */
.faq-section {
    padding: 48px 0;
    scroll-margin-top: 72px;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 24px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 320px;
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 24px 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-answer-inner code {
    font-family: var(--font-mono);
    background: rgba(128, 128, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--text-primary);
}

/* ─── Download Section (Original Card Layout) ────────────────────────────── */
.download-section {
    padding: 60px 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 80px;
}

.download-section .container {
    width: 100%;
}

.download-card {
    background: var(--download-card-bg);
    border: 1px solid var(--download-card-border);
    border-radius: 28px;
    padding: 50px 40px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.12);
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.download-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.download-card p {
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.secure-checkout {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 14px;
    margin-bottom: 0 !important;
}

/* ─── Footer (Original Clean Layout) ─────────────────────────────────────── */
footer {
    padding: 28px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

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

/* ─── Contact & Legal Pages Shared ───────────────────────────────────────── */
.contact-page-container,
.legal-page-container {
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: calc(100vh - 100px);
}

.contact-card-wrapper,
.legal-card-wrapper {
    max-width: 660px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 44px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.contact-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-pill:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: rgba(128, 128, 128, 0.4);
    background: var(--input-select-bg);
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.08);
}

.form-control option {
    background: var(--input-select-bg);
    color: var(--text-primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.btn-contact-submit {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
}

.btn-contact-submit:hover {
    background: var(--btn-primary-hover);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .contact-card-wrapper,
    .download-card {
        padding: 32px 20px;
    }
}

/* ─── Light Mode Overrides for Feature Animations & UI ───────────────────── */
@media (prefers-color-scheme: light) {
    .anim-toggle .fa-menubar {
        background: rgba(0, 0, 0, 0.04);
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .anim-toggle .fa-curtain-icon {
        color: #1d1d1f;
        opacity: 0.85;
    }

    .fa-dot {
        background: rgba(0, 0, 0, 0.2);
    }

    .fa-file-icon {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.12);
    }

    .anim-present .fa-screen-outer {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .anim-present .fa-screen-bar {
        background: rgba(0, 0, 0, 0.04);
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .fa-present-label {
        color: rgba(0, 0, 0, 0.45);
    }

    .fa-slide {
        background: rgba(99, 102, 241, 0.15);
        border-color: rgba(99, 102, 241, 0.35);
    }

    .fa-p-icon {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .fa-cpu-label,
    .fa-cpu-val {
        color: rgba(0, 0, 0, 0.55);
    }

    .fa-bar-track {
        background: rgba(0, 0, 0, 0.08);
    }

    .fa-bar-fill,
    .mem-fill {
        background: rgba(39, 201, 63, 0.8);
    }

    .fa-pulse-path {
        stroke: rgba(39, 201, 63, 0.85);
    }

    .faq-item.active {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.14);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }
}
