/* ============================
   CSS VARIABLES
   ============================ */
:root {
    --white: #ffffff;
    --off-white: #f8f9fa;
    --surface: #f0f4ff;
    --black: #0a0a0a;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;
    --green-500: #10b981;
    --red-400: #f87171;
    --space-dark: #050510;
    --space-accent: #6d28d9;
    --radius-sm: 16px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 100px;
}

/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

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

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

/* ============================
   BLUE VIGNETTE GLOW (Antigravity Signature)
   ============================ */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.vignette::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    right: -20%;
    height: 120%;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

.vignette::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    right: -20%;
    height: 120%;
    background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.06) 0%, transparent 55%);
}

/* ============================
   STAR-FIELD BACKGROUND  
   ============================ */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.download-card .btn:last-child {
    margin-top: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-600);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--blue-600);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

/* ============================
   TRIAL MODAL
   ============================ */
.trial-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trial-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.trial-modal {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-modal-overlay.active .trial-modal {
    transform: translateY(0);
}

.trial-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.trial-modal-close:hover {
    color: var(--black);
}

.trial-modal h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.trial-modal p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.trial-modal input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.trial-modal input:focus {
    border-color: var(--blue-600);
}

.trial-modal .btn {
    width: 100%;
    justify-content: center;
}

.trial-modal .trial-error {
    color: #dc2626;
    font-size: 0.88rem;
    margin-top: 12px;
    display: none;
}

.trial-modal .trial-key-display {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    margin-bottom: 16px;
    user-select: all;
}

.trial-step {
    display: none;
}

.trial-step.active {
    display: block;
}

/* ============================
   PRICE NOTE
   ============================ */
.price-note {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-top: 40px;
    font-weight: 500;
    font-size: 1.15rem;
}

/* ============================
   NAVIGATION
   ============================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 28px;
}

.nav-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--black);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--black);
    background: var(--gray-100);
}

.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--gray-100);
    padding: 3px;
    border-radius: var(--radius-pill);
    margin-left: 12px;
}

.lang-btn {
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lang-btn:not(.active):hover {
    color: var(--gray-700);
}

/* ============================
   HAMBURGER + MOBILE MENU
   ============================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 32px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--blue-600);
}

/* ============================
   CONTAINER
   ============================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* ============================
   HERO
   ============================ */
.hero {
    padding: 200px 0 160px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
    font-size: clamp(2.2rem, 7.5vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 28px;
    color: var(--black);
    min-height: 1.1em;
    /* Prevent layout shift */
    display: inline-block;
    /* Essential for width calculation */
    text-align: left;
    /* Ensure typing flows LTR inside the centered box */
    white-space: nowrap;
}

.hero h1::after {
    content: '▎';
    display: inline-block;
    vertical-align: baseline;
    animation: blink 1s step-end infinite;
    color: var(--blue-600);
    font-weight: 300;
    margin-left: 2px;
}

.hero p {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    color: var(--gray-500);
    max-width: 680px;
    margin: 0 auto 52px;
    line-height: 1.6;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ============================
   BUTTONS (Antigravity-style pill)
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 36px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--black);
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-blue {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ============================
   SECTIONS
   ============================ */
.section {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    background: var(--surface);
    color: var(--blue-600);
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    color: var(--black);
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 640px;
    line-height: 1.7;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ============================
   SPLIT LAYOUT
   ============================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-text ul {
    list-style: none;
    margin-top: 28px;
}

.split-text li {
    padding: 14px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.6;
}

.split-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
}

.media-placeholder .icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* ============================
   MEDIA CONTAINERS (Real Assets)
   ============================ */
.media-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    cursor: zoom-in;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-content {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    /* Let container handle the click */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.media-container:hover .media-content {
    transform: scale(1.03);
}

.dark .media-container {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .media-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================
   MEDIA MODAL (Lightbox)
   ============================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    /* Solid background for stability */
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: hidden;
    /* Prevent body scrollbars from appearing */
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: visible;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content img,
.modal-content video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    transform: translateZ(0) !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ============================
   CHAT DEMO (Assistant Section)
   ============================ */
.chat-demo-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    max-width: 400px;
}

.chat-bubble {
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chat-icon {
    font-size: 1.1rem;
    margin-top: -2px;
}

.user-bubble {
    background: var(--black);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background: var(--white);
    color: var(--gray-700);
    align-self: flex-start;
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
}

.system-bubble {
    background: var(--space-dark);
    color: #a78bfa;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    align-self: center;
    border-radius: 8px;
    padding: 10px 16px;
    max-width: 100%;
}

/* Staggered Typing Reveal Animation */
.typing-reveal {
    opacity: 0;
    transform: translateY(15px);
    animation: chatPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-play-state: paused;
    /* Start paused, unpaused by observer */
}

.chat-demo-container.visible .typing-reveal {
    animation-play-state: running;
}

@keyframes chatPopIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   CARD GRID
   ============================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--blue-400);
    background: rgba(255, 255, 255, 0.9);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.custom-svg {
    width: 48px;
    height: 48px;
    color: var(--blue-500);
    background: var(--blue-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .custom-svg {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.custom-svg svg {
    width: 24px;
    height: 24px;
}

.card:hover .custom-svg {
    transform: scale(1.1) rotate(5deg);
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.dark .card:hover .custom-svg {
    background: #8b5cf6;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* SVG Specific Hover Animations */
.card:hover .shield-inner {
    transform: scale(0.9);
    transform-origin: center;
    transition: transform 0.3s;
}

.card:hover .bolt-anim {
    animation: vibe 0.3s linear infinite;
}

@keyframes vibe {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(-1px, -1px);
    }

    60% {
        transform: translate(1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

.card:hover .mic-wave {
    stroke-dasharray: 10;
    animation: dash 1s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.card:hover .folder-line {
    transform: rotate(90deg);
    transform-origin: center;
    transition: transform 0.4s;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--black);
}

.card p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================
   DARK SECTION (Bento Grid)
   ============================ */
.dark {
    background: var(--space-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(37, 99, 235, 0) 0deg, rgba(139, 92, 246, 0.15) 180deg, rgba(37, 99, 235, 0) 360deg);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateBg {
    100% {
        transform: rotate(360deg);
    }
}

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

.dark .section-label {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.dark .section-title {
    color: var(--white);
}

.dark .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.bento-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.bento-header .custom-svg {
    margin-bottom: 0;
    flex-shrink: 0;
}

.bento-header h3 {
    margin-bottom: 0;
    line-height: 1;
    transform: translateY(2px);
}

.bento-item h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--white);
}

.bento-item p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
}

.bento .media-container {
    aspect-ratio: 16 / 11;
    background: rgba(0, 0, 0, 0.2);
}

.bento .media-content {
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.bento-8 {
    grid-column: span 8;
}

.bento-4 {
    grid-column: span 4;
}

.bento-6 {
    grid-column: span 6;
}

.bento-12 {
    grid-column: span 12;
}

.more-media-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.more-media-row .media-container {
    margin-top: 0;
}

/* ============================
   COMPARISON TABLE
   ============================ */
.comparison-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead th {
    padding: 22px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
    background: var(--off-white);
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table thead th.hl {
    background: var(--black);
    color: var(--white);
}

.comparison-table tbody td {
    padding: 18px 20px;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--black);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--off-white);
}

.yes {
    color: var(--green-500);
    font-weight: 700;
    font-size: 1.2rem;
}

.no {
    color: var(--red-400);
    opacity: 0.4;
    font-size: 1.2rem;
}

/* ============================
   DOWNLOAD SECTION
   ============================ */
.download-bg {
    background: var(--surface);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.download-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 46px 36px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
    background: var(--white);
    border-color: var(--blue-100);
}

.download-card .os-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.download-card .os-note {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.download-card .btn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 0.92rem;
    padding: 13px 20px;
}

.download-card .btn:last-child {
    margin-bottom: 0;
}

.price-note {
    text-align: center;
    margin-top: 44px;
    color: var(--gray-500);
    font-size: 1.05rem;
}

.price-note strong {
    color: var(--black);
    font-size: 1.15rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    padding: 80px 0 48px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--black);
}

.footer-copy {
    color: var(--gray-400);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Scroll-triggered (Advanced Motion) */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95) skewY(2deg);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    transform-origin: bottom center;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1) skewY(0deg);
}

/* Faster reveals for smaller elements */
.reveal.reveal-fast {
    transition-duration: 0.8s;
    transform: translateY(30px) scale(0.98);
}

/* Stagger child elements in Bento Grid */
.bento-item.reveal {
    transition-delay: calc(var(--stagger-delay, 0) * 120ms);
}

/* Hero Element Staggering */
.hero-title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-20deg);
    animation: heroWordFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
}

@keyframes heroWordFade {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* ============================
   PRICING TABLE (Added)
   ============================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: var(--blue-500);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.pricing-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.pricing-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-duration {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.pricing-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--blue-400);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card .btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 992px) {
    .split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .bento-8,
    .bento-4,
    .bento-6,
    .bento-12 {
        grid-column: span 12;
    }

    .more-media-row {
        grid-template-columns: 1fr;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-link {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu.open {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 100px;
    }

    .section {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        white-space: normal;
        /* Allow wrap if absolutely necessary */
        text-align: center;
        /* Fallback for very small screens */
    }

    .container {
        padding: 0 20px;
    }
}