/* ============================================================
   NR Studio — Design System (v2 — Inspired by afinanceiro.pt)
   Background: #000 (pure black)
   Accent: #2592f8 (electric blue), #03024b (deep navy)
   Text: #fff (white), #8B92A5 (muted)
   Fonts: Geist (display), Inter (body)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Brand Palette — afinanceiro style */
    --color-black: #000000;
    --color-navy: #03024b;
    --color-navy-mid: #031457;
    --color-blue: #2592f8;
    --color-blue-soft: #8aa5ff;
    --color-blue-glow: rgba(37, 146, 248, 0.3);
    --color-white: #ffffff;
    --color-text-muted: #A3B1C6;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-card-bg: rgba(3, 20, 87, 0.15);
    --color-card-border: rgba(255, 255, 255, 0.12);
    --color-line: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 90px;

    /* Corners */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-white);
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.25rem);
    text-align: center;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.4;
}

p {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-blue);
    text-align: center;
    text-shadow: 0 0 20px rgba(37, 146, 248, 0.5), 0 0 40px rgba(37, 146, 248, 0.2);
}

.section-description {
    max-width: 590px;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-line);
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(37, 146, 248, 0.6));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
}

.nav-cta .btn-primary {
    font-size: 0.85rem;
    padding: 10px 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-white);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--color-white);
}

.nav-mobile-cta {
    margin-top: 16px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 146, 248, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 146, 248, 0.6);
}

/* ── Accessibility: Focus States ── */
:focus-visible {
    outline: 2px solid var(--color-blue) !important;
    outline-offset: 4px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    border-radius: var(--radius-full);
}

/* Primary: gradient border glow button */
.btn-primary {
    padding: 14px 32px;
    color: var(--color-white);
    background: var(--color-blue);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(37, 146, 248, 0.3), 0 0 40px rgba(37, 146, 248, 0.1);
    transition: box-shadow var(--transition-medium);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(37, 146, 248, 0.5), 0 0 60px rgba(37, 146, 248, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--color-blue), #4AABFF);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Secondary: outline style */
.btn-secondary {
    padding: 14px 32px;
    color: var(--color-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Section base ── */
section {
    position: relative;
    overflow: hidden;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 64px;
    position: relative;
    z-index: 3;
}

/* Section top glow line divider (afinanceiro style) */
.section-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    height: 4px;
    background: radial-gradient(63.67% 63.67% at 50% 50%, var(--color-blue-soft) 0%, transparent 100%);
    opacity: 0.14;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    padding: 160px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    background: radial-gradient(80% 25% at 50% 7.5%, #070271 0%, #000 100%);
    overflow: hidden;
}

/* Background glow beams */
.hero::before {
    content: '';
    position: absolute;
    top: -352px;
    left: 50%;
    transform: translateX(-50%);
    width: 1198px;
    height: 130%;
    background: radial-gradient(50% 50%, rgba(3, 2, 75, 0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -252px;
    left: 50%;
    transform: translateX(-50%);
    width: 865px;
    height: 929px;
    background: radial-gradient(50% 50%, rgba(3, 2, 75, 0.46) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1000px;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 760px;
}

.hero h1 {
    font-family: 'Inter', var(--font-body);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    max-width: 590px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Vertical blue glow beams (like afinanceiro) */
.glow-beam {
    position: absolute;
    background: radial-gradient(50% 50%, var(--color-blue) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.glow-beam-1 {
    width: 40px;
    height: 2072px;
    top: -352px;
    left: calc(50% - 20px);
    opacity: 0.27;
}

.glow-beam-2 {
    width: 35px;
    top: -352px;
    bottom: -920px;
    left: calc(50% + 200px);
    opacity: 0.28;
}

.glow-beam-3 {
    width: 35px;
    top: -352px;
    bottom: -920px;
    left: calc(50% - 300px);
    opacity: 0.42;
}

.glow-beam-4 {
    width: 50px;
    top: -352px;
    bottom: -920px;
    left: calc(30% - 25px);
    opacity: 0.2;
}

.glow-beam-5 {
    width: 20px;
    top: -352px;
    bottom: -920px;
    left: calc(70% - 10px);
    opacity: 0.35;
}

/* Hero noise/grain overlay */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    background: radial-gradient(73% 78% at 50% 0%, transparent 0%, #000 75.28%);
}

/* ── Stats Bar ── */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    position: relative;
    z-index: 5;
}

.stats-bar .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stats-bar .stat .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.stats-bar .stat .label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ── Clients / Trusted By ── */
.clients {
    padding: 0 80px 80px;
    position: relative;
    z-index: 2;
}

.clients-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-bottom: 80px;
}

.clients-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 56px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.clients-track img {
    height: 48px;
    width: auto;
    opacity: 0.35;
    transition: opacity var(--transition-medium);
    flex-shrink: 0;
}

.clients-track img:hover {
    opacity: 0.7;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

/* ── Services Section ── */
.services {
    padding: 100px 40px;
    position: relative;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    flex: 1 0 300px;
    min-width: 300px;
    position: relative;
    z-index: 2;
    /* Gradient border effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 1px;
}

.service-card-inner {
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.2) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-medium);
}

.service-card:hover .service-card-inner {
    box-shadow: 0 0 30px rgba(37, 146, 248, 0.12), 0 0 60px rgba(37, 146, 248, 0.06);
}

.service-card-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 793px;
    height: 300px;
    border-radius: 10px;
    background: radial-gradient(50% 50%, rgba(3, 2, 75, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    filter: drop-shadow(0 0 8px rgba(37, 146, 248, 0.4));
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-blue);
    fill: none;
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-white);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Card separator lines (afinanceiro style) */
.card-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

/* Checklist items inside cards */
.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.service-feature svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-blue);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Showreel Section ── */
.showreel {
    padding: 100px 40px;
    position: relative;
}

.showreel-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(3, 2, 75, 0.15);
    border: 1px solid var(--color-card-border);
}

.showreel-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Portfolio Grid ── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: 32px auto 0;
}

.portfolio-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform var(--transition-medium);
}

.portfolio-item:hover {
    transform: translateY(-4px);
}

.portfolio-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(3, 2, 75, 0.15);
    border: 1px solid var(--color-card-border);
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.portfolio-item:hover .portfolio-play {
    opacity: 1;
}

.portfolio-views {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.portfolio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
}

.portfolio-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.portfolio-category {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ── Reels / Short-Form Section ── */
.reels {
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind the phones */
.reels-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(3, 20, 87, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.reels-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

/* Phone frame — premium dark glass */
.reel-phone {
    width: 260px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border-radius: 36px;
    padding: 10px;
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.25) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 1px solid rgba(37, 146, 248, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(3, 20, 87, 0.15);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.reel-phone:nth-child(2) {
    transform: scale(1.05);
}

.reel-phone:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 146, 248, 0.15);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 32px 100px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(37, 146, 248, 0.06);
}

.reel-phone:nth-child(2):hover {
    transform: scale(1.05) translateY(-8px);
}

/* Notch bar */
.reel-phone-notch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 6px;
}

.reel-phone-notch::before {
    content: '';
    width: 60px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

/* Screen */
.reel-phone-screen {
    border-radius: 26px;
    overflow: hidden;
    background: #050510;
    aspect-ratio: 9 / 16;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.reel-phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Bottom bar indicator */
.reel-phone::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px auto 4px;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .reels {
        padding: 80px 18px;
    }

    .reels-showcase {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .reel-phone,
    .reel-phone:nth-child(2) {
        width: 240px;
        transform: none;
    }

    .reel-phone:nth-child(2):hover {
        transform: translateY(-8px);
    }
}

/* ── Retention Graph Section ── */
.retention {
    padding: 100px 40px;
    position: relative;
}

.retention-showcase {
    max-width: 850px;
    margin: 0 auto;
}

.retention-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 1px;
}

.retention-card-inner {
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.15) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.retention-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.retention-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-white);
}

.retention-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.retention-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.retention-graph {
    position: relative;
    padding-left: 40px;
    padding-bottom: 28px;
}

.retention-svg {
    width: 100%;
    height: 300px;
    display: block;
}

/* Animate the retention line drawing */
.retention-line {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 2s ease-out;
}

.retention-fill {
    opacity: 0;
    transition: opacity 1.5s ease-out 0.5s;
}

.reveal.visible .retention-line {
    stroke-dashoffset: 0;
}

.reveal.visible .retention-fill {
    opacity: 1;
}

.retention-y-labels {
    position: absolute;
    left: 0;
    top: 0;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}

.retention-y-labels span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    line-height: 1;
}

.retention-x-labels {
    display: flex;
    justify-content: space-between;
    padding-left: 40px;
    margin-top: 8px;
}

.retention-x-labels span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.retention-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.retention-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
}

.legend-line {
    display: inline-block;
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.legend-line-blue {
    background: var(--color-blue);
}

.legend-line-avg {
    background: rgba(255, 255, 255, 0.2);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.2) 4px, transparent 4px, transparent 8px);
    background-color: transparent;
}

.retention-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.retention-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.retention-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1;
}

.retention-stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .retention {
        padding: 80px 18px;
    }

    .retention-card-inner {
        padding: 20px;
    }

    .retention-svg {
        height: 200px;
    }

    .retention-y-labels {
        height: 200px;
    }

    .retention-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .retention-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .retention-stat-value {
        font-size: 1.2rem;
    }
}

/* ── Growth Chart Section ── */
.growth {
    padding: 80px 40px 100px;
    position: relative;
}

.growth-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.growth-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 1px;
}

.growth-card-inner {
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.12) 0%, rgba(0, 0, 0, 0.96) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.growth-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-chart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-white);
}

.growth-trend-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.06);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(74, 222, 128, 0.12);
}

.growth-trend-purple {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.12);
}

.growth-chart {
    position: relative;
}

.growth-svg {
    width: 100%;
    height: 180px;
    display: block;
}

.growth-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2.5s ease-out;
}

.growth-fill {
    opacity: 0;
    transition: opacity 1.5s ease-out 0.8s;
}

.reveal.visible .growth-line {
    stroke-dashoffset: 0;
}

.reveal.visible .growth-fill {
    opacity: 1;
}

.growth-marker {
    position: absolute;
    top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.growth-marker span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-blue);
    opacity: 0.7;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.growth-marker-purple span {
    color: #8aa5ff;
}

.growth-x-labels {
    display: flex;
    justify-content: space-between;
}

.growth-x-labels span {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .growth {
        padding: 80px 18px;
    }

    .growth-showcase {
        grid-template-columns: 1fr;
    }
}

/* Footnote */
.growth-footnote {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    max-width: 480px;
    margin: 24px auto 0;
    line-height: 1.6;
}

/* ── Roadmap Timeline ── */
.process {
    padding: 100px 40px;
    position: relative;
}

.roadmap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical connecting line */
.roadmap::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(37, 146, 248, 0.2) 10%, rgba(37, 146, 248, 0.2) 90%, transparent 100%);
}

.roadmap-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding-left: 0;
    margin-bottom: 48px;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

/* Numbered dot */
.roadmap-dot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-black);
    border: 1px solid rgba(37, 146, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 146, 248, 0.08);
    transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.roadmap-step:hover .roadmap-dot {
    border-color: rgba(37, 146, 248, 0.6);
    box-shadow: 0 0 30px rgba(37, 146, 248, 0.15);
}

.roadmap-dot span {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-blue);
    letter-spacing: 0.02em;
}

/* Card content */
.roadmap-content {
    flex: 1;
    padding-top: 4px;
}

.roadmap-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 1px;
}

.roadmap-card-inner {
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background var(--transition-medium);
}

.roadmap-step:hover .roadmap-card-inner {
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.15) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.roadmap-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(37, 146, 248, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap-card-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.roadmap-card-text p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .process {
        padding: 80px 18px;
    }

    .roadmap::before {
        left: 23px;
    }

    .roadmap-step {
        gap: 20px;
    }

    .roadmap-dot {
        width: 46px;
        height: 46px;
    }

    .roadmap-card {
        padding: 18px;
    }
}

/* ── About / Stats Section ── */
.about {
    padding: 100px 40px 200px;
    border-top-right-radius: 48px;
    border-bottom-left-radius: 48px;
    position: relative;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    font-size: 0.95rem;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1.25;
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.3) 0%, #000 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-stat {
    text-align: center;
}

.about-stat .number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.about-stat .label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* ── Featured Testimonial (Social Proof) ── */
.featured-testimonial {
    padding: 80px 40px;
    position: relative;
}

.featured-testimonial-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.featured-quote-icon {
    width: 40px;
    height: 40px;
    color: var(--color-blue);
    opacity: 0.3;
}

.featured-quote-icon svg {
    width: 100%;
    height: 100%;
}

.featured-quote-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
}

.featured-quote-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.featured-quote-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.featured-quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.featured-quote-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.featured-quote-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-white);
}

.featured-quote-role {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* ── Pricing Section ── */
.pricing {
    padding: 100px 40px;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    position: relative;
}

.pricing-card-inner {
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover .pricing-card-inner {
    border-color: rgba(37, 146, 248, 0.3);
    transform: translateY(-4px);
}

.pricing-tier {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 32px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-blue);
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
}

.pricing-features span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.pricing-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

/* Featured tier */
.pricing-card-featured .pricing-card-inner {
    border-color: rgba(37, 146, 248, 0.4);
    background: linear-gradient(180deg, rgba(3, 2, 75, 0.3) 0%, var(--color-card) 100%);
    box-shadow: 0 0 60px rgba(37, 146, 248, 0.08);
}

.pricing-card-featured:hover .pricing-card-inner {
    border-color: rgba(37, 146, 248, 0.6);
    box-shadow: 0 0 80px rgba(37, 146, 248, 0.12);
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-soft));
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    width: fit-content;
}

/* ── FAQ Section ── */
.faq {
    padding: 100px 40px;
    position: relative;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(37, 146, 248, 0.25);
}

.faq-item.active {
    border-color: rgba(37, 146, 248, 0.35);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-blue);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-secondary);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    stroke: var(--color-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ── Testimonials Section ── */
.testimonials {
    padding: 100px 40px;
    position: relative;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 840px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    padding: 1px;
}

.testimonial-card-inner {
    background: linear-gradient(160deg, rgba(3, 20, 87, 0.12) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card-inner::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 160px;
    line-height: 1;
    color: rgba(37, 146, 248, 0.04);
    pointer-events: none;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--color-blue);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    font-weight: 400;
    margin: auto 0;
}

.translated-note {
    display: block;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-white);
}

.testimonial-author-info .name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-white);
}

.testimonial-author-info .role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Gradient line separator */
.gradient-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}
/* ── Contact Section ── */
.contact {
    padding: 100px 40px;
    position: relative;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.contact-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 146, 248, 0.4) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(37, 146, 248, 0.5);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 146, 248, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Custom Select replacing native appearance */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select-trigger svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2;
    fill: none;
    transition: transform var(--transition-fast);
}

.custom-select.open .custom-select-trigger {
    border-color: rgba(37, 146, 248, 0.5);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 146, 248, 0.15);
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #05041a; /* matching deep blue-black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 10;
    overflow: hidden;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 16px;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.custom-option:hover, .custom-option.selected {
    background: rgba(37, 146, 248, 0.2);
    color: var(--color-white);
}

.submit-btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

/* Premium Custom Checkbox */
.checkbox-group {
    margin-top: 16px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 4px 0;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    height: 22px;
    width: 22px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    box-shadow: 0 0 15px rgba(37, 146, 248, 0.4);
}

.checkmark svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-checkbox input:checked ~ .checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.checkbox-text a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 4px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.checkbox-text a:hover {
    color: var(--color-blue);
    text-decoration-color: var(--color-blue);
}

/* ── CTA Section ── */
.cta-section {
    padding: 100px 40px;
    position: relative;
    border-top-right-radius: 48px;
    border-bottom-left-radius: 48px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    max-width: 640px;
}

.cta-content p {
    max-width: 440px;
}

/* Bottom glow under CTA */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -249px;
    left: 50%;
    transform: translateX(-50%);
    width: 793px;
    height: 499px;
    border-radius: 10px;
    background: radial-gradient(50% 50%, rgba(3, 2, 75, 0.8) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ── Footer ── */
.footer {
    padding: 60px 40px 30px;
    border-top: 1px solid var(--color-line);
    position: relative;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.85rem;
    max-width: 280px;
    color: var(--color-text-muted);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-blue);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
}

/* ── Preloader ── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: auto;
    height: 120px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(37, 146, 248, 0.6));
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ── Privacy Policy Page ── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 60px 80px;
}

.legal-content h3 {
    color: var(--color-white);
    font-size: 1.25rem;
}

/* Premium Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 48px);
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(8, 7, 30, 0.85) 0%, rgba(3, 2, 15, 0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 146, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-content {
    flex: 1;
}

.cookie-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.cookie-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text-muted);
}

.cookie-link {
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.cookie-link:hover {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-decline {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cookie-decline:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 16px;
        padding: 20px;
        gap: 20px;
    }
    
    .cookie-icon {
        display: none;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-actions .btn {
        flex: 1;
    }
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .about-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        padding: 0 18px;
    }

    .hero {
        padding: 120px 18px 40px;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .clients {
        padding: 30px 20px 60px;
    }

    .services {
        padding: 40px 18px;
    }

    .services-grid {
        flex-direction: column;
    }

    .service-card {
        min-width: unset;
        flex: none;
        width: 100%;
    }

    .showreel {
        padding: 40px 18px;
    }

    .process {
        padding: 80px 18px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 80px 18px;
        border-top-right-radius: 16px;
        border-bottom-left-radius: 16px;
    }

    .about-row {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .about-stat .number {
        font-size: 1.8rem;
    }

    .testimonials {
        padding: 80px 18px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .featured-testimonial {
        padding: 60px 18px;
    }

    .featured-quote-text {
        font-size: 1.15rem;
    }

    .pricing {
        padding: 80px 18px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .faq {
        padding: 80px 18px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 0.85rem;
    }

    .cta-section {
        padding: 80px 18px;
        border-top-right-radius: 16px;
        border-bottom-left-radius: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .footer {
        padding: 40px 18px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }
}

/* ── Utilities ── */
.text-center {
    text-align: center;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-blue);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 10000;
    font-size: 0.85rem;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    top: 0;
}