:root {
    /* Colors */
    --bg-dark: #0b0d14;
    --bg-panel: #12141c;
    --bg-card: rgba(20, 20, 22, 0.4);
    --bg-card-hover: rgba(30, 30, 35, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.2);
    
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    --text-invert: #050505;
    
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-solid: #3B82F6; 
    --accent-secondary: #1E3A8A;
    
    /* Theme specific derivations */
    --nav-bg: rgba(10, 10, 12, 0.15);
    --nav-bg-scrolled: rgba(10, 10, 12, 0.45);
    --nav-border: rgba(255,255,255,0.06);
    --nav-border-scrolled: rgba(255,255,255,0.15);
    --nav-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Background Effects */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: drift 20s ease-in-out infinite alternate;
}

.top-blob {
    top: -20%;
    left: 40%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.05); }
}

#cursor-halo {
    position: fixed;
    top: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
body:hover #cursor-halo {
    opacity: 1;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.text-center { text-align: center; }
.mt-xl { margin-top: var(--space-xl); }

.highlight-code {
    font-family: var(--font-mono);
    color: #3B82F6;
    font-weight: 500;
}

/* Layout */
.section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-large { padding: 0.875rem 1.5rem; font-size: 1rem; }

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #e2e2e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
}

/* 1. Nav (Floating, Frosted) */
.nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 900px;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nav-border);
    z-index: 100;
    transition: background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: var(--nav-bg-scrolled);
    border-color: var(--nav-border-scrolled);
    box-shadow: var(--nav-shadow), inset 0 0 0 1px var(--border-light);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

/* 2. Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 6rem; /* Account for nav */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.hero-content {
    text-align: left;
    margin-bottom: 0;
}

.hero-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 2.5rem 0; /* Left align */
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Hero Proxy Architecture Animation */
.hero-proxy-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin-left: auto;
}

.proxy-svg-flow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: visible;
}

.flow-node {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #0d0d0f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
}

.flow-app {
    transform: translate(0, -50%); /* Left aligned on it's center point */
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    width: 220px;
}

.flow-badge {
    position: absolute; top: -10px; left: 1rem;
    background: #0d0d0f; border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.65rem; text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
    letter-spacing: 0.05em; color: var(--text-muted);
}

.flow-code {
    font-size: 0.8rem; color: #fff; line-height: 1.5;
}

.flow-vault {
    width: 60px; height: 60px;
    border-radius: 16px;
    border-color: rgba(59,130,246,0.5);
    background: rgba(10,10,12, 0.9);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(59,130,246,0.2), inset 0 0 15px rgba(59,130,246,0.1);
}

.vault-pulse {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 16px;
    border: 2px solid #3B82F6;
    opacity: 0;
    animation: vault-ping 3s infinite;
}

.flow-target {
    transform: translate(0, -50%); /* Left expand */
    padding: 0.75rem 1rem;
    width: 160px;
    background: rgba(20,20,25, 0.8);
    backdrop-filter: blur(8px);
}

.target-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: #fff; font-weight: 500;
    margin-bottom: 0.5rem; opacity: 0.9;
}

.flow-target.t-1 .injected-key { color: #4ade80; border-color: rgba(74, 222, 128, 0.2); background: rgba(74, 222, 128, 0.05); }
.flow-target.t-2 .injected-key { color: #38bdf8; border-color: rgba(56, 189, 248, 0.2); background: rgba(56, 189, 248, 0.05); }
.flow-target.t-3 .injected-key { color: #fb923c; border-color: rgba(251, 146, 60, 0.2); background: rgba(251, 146, 60, 0.05); }

.injected-key {
    font-family: var(--font-mono); font-size: 0.7rem; 
    padding: 2px 6px; border-radius: 4px;
    border: 1px solid;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Link packets natively to SVG Paths */
#packet-in {
    offset-path: path('M 0 200 C 100 200, 150 200, 250 200');
    animation: proxy-move-in 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#packet-out-1 {
    offset-path: path('M 250 200 C 300 200, 320 80, 400 80');
    animation: proxy-move-out 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1.5s;
    opacity: 0;
}
#packet-out-2 {
    offset-path: path('M 250 200 C 300 200, 350 200, 400 200');
    animation: proxy-move-out 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1.6s;
    opacity: 0;
}
#packet-out-3 {
    offset-path: path('M 250 200 C 300 200, 320 320, 400 320');
    animation: proxy-move-out 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1.7s;
    opacity: 0;
}

@keyframes proxy-move-in {
    0% { offset-distance: 0%; opacity: 0; }
    5% { opacity: 1; }
    50% { offset-distance: 100%; opacity: 0; }
    100% { offset-distance: 100%; opacity: 0; }
}

@keyframes proxy-move-out {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    85% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

@keyframes vault-ping {
    40% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.4; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* 3. Logo Ticker */
.logo-ticker {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(90deg, rgba(5,5,5,1) 0%, rgba(20,20,22,0.5) 50%, rgba(5,5,5,1) 100%);
    overflow: hidden;
}

.ticker-container {
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
    /* Soft fade edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.ticker-logos {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
}

.ticker-logo-img {
    height: 36px;
    opacity: 0.85;
    transition: var(--transition-smooth);
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.05));
    object-fit: contain;
}

.ticker-logo-img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
    /* Translates by 50% because we duplicated the ticker-logos */
}

/* Component: Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 40px -10px var(--accent-glow);
}

.glass-card:hover::before {
    opacity: 1;
}

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

/* Grids */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

/* 4. The Problem */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .problem-grid { grid-template-columns: 1fr; }
}

.problem-text { text-align: left; }
.problem-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.problem-description strong { color: #ef4444; font-weight: 600; }

.divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2.5rem 0;
    width: 60px;
}

.closing-statement {
    font-size: 1.25rem;
    color: #e4e4e7;
}

.closing-statement em {
    color: #fff;
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: #3B82F6;
    text-underline-offset: 4px;
}

/* Problem Visual Animation */
.code-leak-box {
    position: relative;
    perspective: 1000px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.mock-editor {
    background: #0d0d0f;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    width: 90%;
    margin-bottom: -30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.editor-header {
    background: #1a1a20;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.editor-header .dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.editor-header .dots i {
    width: 10px; height: 10px; border-radius: 50%; background: #4b4b50;
}
.editor-header .dots i:nth-child(1) { background: #ff5f56; }
.editor-header .dots i:nth-child(2) { background: #ffbd2e; }
.editor-header .dots i:nth-child(3) { background: #27c93f; }

.editor-header .filename {
    font-size: 0.8rem; font-family: var(--font-mono); color: var(--text-muted);
}

.editor-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e4e4e7;
    line-height: 1.6;
}
.editor-body .comment { color: #5c6370; font-style: italic; }

.exposed-key {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 0 4px;
    border-radius: 3px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: pulse-danger 2s infinite;
}

.hacker-beam {
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 15px 2px #ef4444;
    opacity: 0;
    transform: translateY(-50px);
    animation: scan-beam 3s infinite;
}

.consequence-box {
    background: rgba(20, 0, 0, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    width: 80%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    backdrop-filter: blur(8px);
    transform: translateX(-20px);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.15);
    animation: float-danger 4s infinite ease-in-out;
}

.bill-info {
    display: flex; flex-direction: column;
}

.bill-label {
    font-size: 0.75rem; color: #fca5a5; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; font-weight: 600;
}

.bill-amount {
    font-size: 2.25rem; font-weight: 700; color: #ef4444; font-family: var(--font-mono); line-height: 1;
}

@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.4); }
}

@keyframes scan-beam {
    0% { transform: translateY(-50px); opacity: 0; }
    10% { opacity: 1; }
    40% { transform: translateY(50px); opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes float-danger {
    0%, 100% { transform: translateX(-20px) translateY(0); }
    50% { transform: translateX(-20px) translateY(-10px); }
}

/* Enhanced Card Visuals */
.enhanced-card {
    display: flex;
    flex-direction: column;
}
.enhanced-card h3 { margin-top: 1rem; }

.card-visual-wrapper {
    height: 180px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card 1: Store Everything */
.cv-store {
    position: relative;
    width: 100%;
    height: 100%;
}
.cv-micro-vault {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.5);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #3B82F6;
    z-index: 2;
}
.cv-micro-vault svg {
    width: 28px; height: 28px;
}

.cv-env {
    position: absolute;
    top: 50%; left: 50%;
    margin-top: -15px; margin-left: -45px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(40,40,45,0.8);
    color: #a1a1aa;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
}

.cv-env.dev { animation: absorb-1 3s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.cv-env.stg { animation: absorb-2 3s infinite cubic-bezier(0.4, 0, 0.2, 1); animation-delay: 1s; }
.cv-env.prd { animation: absorb-3 3s infinite cubic-bezier(0.4, 0, 0.2, 1); animation-delay: 2s; }

@keyframes absorb-1 {
    0%, 10% { opacity: 0; transform: translate(-60px, -40px) scale(0.8); }
    30% { opacity: 1; transform: translate(-60px, -40px) scale(1); }
    70%, 100% { opacity: 0; transform: translate(0, 0) scale(0.2); }
}
@keyframes absorb-2 {
    0%, 10% { opacity: 0; transform: translate(-50px, 40px) scale(0.8); }
    30% { opacity: 1; transform: translate(-50px, 40px) scale(1); }
    70%, 100% { opacity: 0; transform: translate(0, 0) scale(0.2); }
}
@keyframes absorb-3 {
    0%, 10% { opacity: 0; transform: translate(70px, -10px) scale(0.8); }
    30% { opacity: 1; transform: translate(70px, -10px) scale(1); }
    70%, 100% { opacity: 0; transform: translate(0, 0) scale(0.2); }
}

/* Card 2: Secure App */
.cv-secure {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.25rem;
    position: relative;
    width: 100%;
}
.key-box {
    font-family: var(--font-mono); font-size: 0.8rem;
    padding: 6px 12px; border-radius: 4px;
    border: 1px solid;
}
.key-box.raw {
    color: #ef4444; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3);
    animation: raw-fade 2s infinite;
}
.key-box.safe {
    color: #4ade80; background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3);
    animation: safe-fade 2s infinite;
}
.shield-filter {
    opacity: 0.8;
}
.shield-filter svg {
    width: 28px; height: 28px;
}

@keyframes raw-fade {
    0%, 40% { opacity: 1; transform: translateY(0); filter: blur(0px); }
    50%, 100% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
}
@keyframes safe-fade {
    0%, 45% { opacity: 0; transform: translateY(-10px); }
    55%, 100% { opacity: 1; transform: translateY(0); }
}

/* Card 3: Visibility Logs */
.cv-logs {
    width: 85%;
    display: flex; flex-direction: column; gap: 6px;
}
.cv-log-line {
    font-family: var(--font-mono); font-size: 0.7rem;
    background: rgba(20,20,25, 0.8);
    padding: 8px 10px;
    border-radius: 4px;
    display: flex; gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    animation: log-pop 4s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
.cv-log-line .time { color: var(--text-muted); }
.cv-log-line .tag { font-weight: 700; width: 38px; }
.cv-log-line .tag.vercel { color: #fff; }
.cv-log-line .tag.system { color: #38bdf8; }
.cv-log-line .tag.admin { color: #3B82F6; }
.cv-log-line .msg { color: #e4e4e7; }

.cv-log-line.l1 { animation-delay: 0s; }
.cv-log-line.l2 { animation-delay: 1.3s; }
.cv-log-line.l3 { animation-delay: 2.6s; }

@keyframes log-pop {
    0%, 2% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    95%, 100% { opacity: 0; }
}

/* 6. Transform Section (Before/After Toggle) */
.transform-section {
    position: relative;
    padding-top: var(--space-xxl);
}

.toggle-container {
    display: flex; justify-content: center; margin: 3rem 0;
}

.ba-toggle {
    display: inline-flex; position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    padding: 4px;
}

.toggle-bg {
    position: absolute; top: 4px; left: 4px; height: calc(100% - 8px);
    width: 150px; background: #fff; border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.toggle-btn {
    background: transparent; border: none; font-family: var(--font-sans);
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    padding: 0.5rem 1.5rem; width: 150px; text-align: center;
    position: relative; z-index: 2; transition: color 0.3s; color: var(--text-muted);
}
.toggle-btn.active { color: #000; }

.transform-content {
    display: grid;
    grid-template-columns: 1fr; grid-template-rows: 1fr;
}
.t-state {
    grid-row: 1; grid-column: 1;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}
.t-state.active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
}

.scenario-grid {
    display: flex; flex-wrap: wrap;
    gap: var(--space-md);
}

.scenario-card {
    flex: 1 1 280px;
    background: rgba(20,20,22, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1.5rem;
}
.scenario-card h4 { font-size: 0.9rem; margin-bottom: 1rem; color: #fff; opacity: 0.9; }

.mock-ui {
    background: #0d0d0f; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; padding: 1rem; min-height: 120px;
    font-family: var(--font-mono); font-size: 0.75rem; color: #a1a1aa;
    display: flex; flex-direction: column; gap: 0.5rem;
}

/* Mock specifics */
.slack-msg { padding: 6px 10px; border-radius: 8px; max-width: 90%; }
.slack-msg.user { background: rgba(255,255,255,0.1); align-self: flex-start; border-bottom-left-radius: 2px; }
.slack-msg.other { background: rgba(59,130,246,0.15); align-self: flex-end; border-bottom-right-radius: 2px; color: #fca5a5; }
.slack-msg.safe-msg { color: #e4e4e7; }

.notes-bg { background: #fffcf0; color: #4b5563; font-family: var(--font-sans); }
.notes-bg h5 { color: #1f2937; margin-bottom: 0.25rem; font-size: 0.8rem; }
.dash-bg { background: rgba(20, 20, 25, 0.9); border-color: rgba(59,130,246,0.4); }
.dash-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 4px 0; display:flex; justify-content:space-between;}
.dash-item .badge { background: rgba(74, 222, 128, 0.1); color: #4ade80; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; }

.term-bg { background: #000; }
.term-head { padding-bottom: 6px; border-bottom: 1px solid #333; margin-bottom: 6px; display: flex; gap: 4px;}
.term-head i { width: 8px; height: 8px; background: #555; border-radius: 50%; }
.danger { color: #ef4444; }
.safe { color: #4ade80; }

.diff-add { color: #4ade80; background: rgba(74, 222, 128, 0.1); display: block; }
.diff-del { color: #ef4444; background: rgba(239, 68, 68, 0.1); display: block; }
.diff-clean-text { color: #4ade80; }

.scatter-file { padding: 4px 8px; background: rgba(255,255,255,0.05); border: 1px dashed rgba(239, 68, 68, 0.4); border-radius: 4px; text-align: center; }
.scatter-text { text-align: center; margin-top: auto; color: #ef4444; font-size: 0.65rem;}
.vault-log { text-align: center; color: #4ade80; font-size: 0.7rem; margin-top: auto;}

/* Technical flow inside AFTER state */
.technical-flow {
    background: rgba(20, 20, 22, 0.5); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 2rem; margin-top: var(--space-xl);
}
.technical-flow.bad-flow { border-color: rgba(239, 68, 68, 0.3); }
.bad-flow h4.danger { color: #fca5a5; }
.f-step.danger-box { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.danger-text { color: #fca5a5; margin-top: 1rem;}

.flow-steps-diagram {
    display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.f-step { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); padding: 8px 16px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: #e4e4e7;}
.f-arrow { color: var(--text-muted); }
.flow-subtext { color: var(--text-muted); font-size: 0.9rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }

/* 7. Setup Section */
.setup-section {
    padding-top: var(--space-xxl);
}

.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .setup-grid { grid-template-columns: 1fr; }
}

.setup-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.s-step-v {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(20,20,22, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    align-items: flex-start;
}

.s-step-v .s-num {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); color: #fff;
    border-radius: 50%; font-weight: 700; font-size: 0.9rem;
}

.s-step-v.active { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.05); }
.s-step-v.active .s-num { background: #3B82F6; color: #000; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); }

.s-info h4 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.s-info code { display: block; background: #000; padding: 0.5rem 1rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid #222; }
.s-info code .cmd { color: #38bdf8; }

/* Terminal Anim Box */
.setup-visual-box {
    perspective: 1000px;
}
.term-anim-box {
    background: #0d0d0f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.term-header {
    background: #1a1a1f;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2a2a2f;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d-r { background: #ff5f56; }
.d-y { background: #ffbd2e; }
.d-g { background: #27c93f; }
.term-title { margin-left: auto; margin-right: auto; color: #888; font-family: var(--font-mono); font-size: 0.8rem; }

.term-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tl {
    opacity: 0;
    animation: term-appear 10s infinite step-end;
}
.tl .prompt { color: #3B82F6; margin-right: 8px; }
.tl.dim { color: #6b7280; }
.tl.success { color: #4ade80; }
.tl.success-glow { color: #3B82F6; text-shadow: 0 0 10px rgba(59,130,246,0.4); display: flex; align-items: center; gap: 8px; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }

@keyframes term-appear {
    0% { opacity: 0; }
    5%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

/* Sequence delays relative to the step length */
.tl.line-1 { animation-delay: 0s; }
.tl.line-2 { animation-delay: 1.5s; }
.tl.line-3 { animation-delay: 2s; }
.tl.line-4 { animation-delay: 3.5s; }
.tl.line-5 { animation-delay: 4.5s; }
.tl.line-6 { animation-delay: 6s; }
.tl.line-7 { animation-delay: 7s; }
.tl.line-8 { animation-delay: 8.5s; }
.tl.line-9 { animation-delay: 9s; }

/* 8. Four Ways In Section */
.ways-in-section {
    padding-top: var(--space-xl);
}
.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: 3rem;
}
@media (max-width: 768px) {
    .ways-grid { grid-template-columns: 1fr; }
}

.way-card {
    background: rgba(20,20,22, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.way-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59,130,246,0.3);
}
.way-visual {
    height: 140px;
    background: #0d0d0f;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* CLI Visual */
.mini-term {
    font-family: var(--font-mono); font-size: 0.75rem; color: #fff;
    padding: 1.5rem; width: 100%; height: 100%; box-sizing: border-box;
}

/* Dash Visual */
.mini-dash {
    display: flex; width: 80%; height: 70%; background: #1a1a1f;
    border: 1px solid #2a2a2f; border-radius: 6px; overflow: hidden;
}
.dash-sidebar { width: 30%; background: #111; border-right: 1px solid #222; }
.dash-main { flex: 1; padding: 15px; display: flex; flex-direction: column; gap: 8px;}
.dash-header { height: 10px; width: 40px; background: #333; border-radius: 4px; }
.dash-tr { height: 12px; width: 100%; background: #222; border-radius: 4px; }

/* MCP Visual */
.mcp-flow { display: flex; align-items: center; gap: 10px; }
.mcp-node { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.7rem; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.5); color: #3B82F6; position: relative; }
.llm-cycler > * { position: absolute; width: 20px; height: 20px; top: 9px; left: 9px; opacity: 0; animation: cycle-llm 6s infinite; }
.llm-cycler > *:nth-child(1) { animation-delay: 0s; }
.llm-cycler > *:nth-child(2) { animation-delay: 2s; }
.llm-cycler > *:nth-child(3) { animation-delay: 4s; }

@keyframes cycle-llm {
    0%, 20% { opacity: 1; transform: scale(1); }
    33%, 100% { opacity: 0; transform: scale(0.8); }
}
.mcp-line { width: 80px; height: 2px; background: rgba(255,255,255,0.1); position: relative; }
.mcp-packet { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 10px #4ade80; animation: mcp-move 2s infinite ease-in-out; }

@keyframes mcp-move {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* IDE Visual */
.ide-visual { display: flex; gap: 15px; }
.ide-visual img { width: 32px; height: 32px; animation: float 4s infinite ease-in-out; }
.ide-visual img:nth-child(2) { animation-delay: 1s; }
.ide-visual img:nth-child(3) { animation-delay: 2s; }
.ide-visual img:nth-child(4) { animation-delay: 3s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 8. IDE Extension Spotlight */
.spotlight-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xxl);
    border-top: 1px solid var(--border-light);
}

.spotlight-bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(30,50,150,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.spotlight-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.ide-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ide-logo {
    width: 64px;
    height: 64px;
    background: rgba(20,20,25,0.5);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: var(--transition-smooth);
}

.ide-logo svg {
    width: 100%;
    height: 100%;
}

.ide-logo.bg-dark { background: #000; padding: 12px; }
.ide-logo.bg-light { background: #fff; padding: 12px; }

.ide-logo:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: rgba(255,255,255,0.3);
    background: rgba(40,40,45,0.8);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.spotlight-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Spotlight visuals */
.spotlight-visual {
    height: 140px; background: #0d0d0f; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}

/* Card 1: Ring Anim */
.ide-ring-anim { position: relative; width: 100px; height: 100px; }
.center-lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.5rem; }
.orbit-path { position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,0.1); border-radius: 50%; opacity: 0.5; }
.orbit-icon {
    position: absolute; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: bold; color: #fff; top: 50%; left: 50%; transform-origin: -38px -38px; margin-top:-12px; margin-left:-12px;
}
.orbit-icon.pos-1 { background: #111; animation: orb1 6s linear infinite; }
.orbit-icon.pos-2 { background: #111; animation: orb2 6s linear infinite; }
.orbit-icon.pos-3 { background: #111; animation: orb3 6s linear infinite; }
.orbit-icon.pos-4 { background: #111; animation: orb4 6s linear infinite; }

@keyframes orb1 { 0% { transform: rotate(0deg) translateX(38px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(38px) rotate(-360deg); } }
@keyframes orb2 { 0% { transform: rotate(90deg) translateX(38px) rotate(-90deg); } 100% { transform: rotate(450deg) translateX(38px) rotate(-450deg); } }
@keyframes orb3 { 0% { transform: rotate(180deg) translateX(38px) rotate(-180deg); } 100% { transform: rotate(540deg) translateX(38px) rotate(-540deg); } }
@keyframes orb4 { 0% { transform: rotate(270deg) translateX(38px) rotate(-270deg); } 100% { transform: rotate(630deg) translateX(38px) rotate(-630deg); } }

/* Card 2: Ext Search Anim */
.extension-search-anim { width: 95%; }
.search-bar { background: #1a1a1f; border: 1px solid #2a2a2f; padding: 8px 12px; border-radius: 6px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.search-text { font-family: var(--font-mono); font-size: 0.7rem; color: #fff; }
.search-result { background: #111; border: 1px solid rgba(59,130,246,0.3); padding: 10px; border-radius: 6px; display: flex; align-items: center; gap: 10px; }
.res-icon { background: rgba(59,130,246,0.2); padding: 4px; border-radius: 4px; font-size: 0.8rem; }
.res-text { flex: 1; font-size: 0.8rem; font-weight: bold; }
.res-btn { background: #3B82F6; color: #000; font-size: 0.7rem; font-weight: bold; padding: 4px 8px; border-radius: 4px; animation: btn-click 4s infinite;}

@keyframes btn-click {
    0%, 70% { background: #3B82F6; opacity: 1; }
    75%, 100% { background: #fff; color: #000; opacity: 0.5; }
}

/* Card 3: Sidebar */
.sidebar-anim { width: 95%; background: #111; border: 1px solid #222; border-radius: 6px; padding: 10px; }
.sb-header { font-size: 0.6rem; color: #666; margin-bottom: 8px; font-weight: bold; letter-spacing: 1px; }
.sb-env { font-size: 0.7rem; color: #4ade80; margin-bottom: 12px; }
.sb-item { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.65rem; }
.sb-item span:first-child { color: #3B82F6; }
.sb-val { background: #1a1a1f; padding: 4px 6px; border-radius: 4px; border: 1px solid #2a2a2f; }
.sb-val.revealed { color: #fff; animation: reveal 4s infinite; }

@keyframes reveal {
    0%, 40% { filter: blur(4px); opacity: 0.5; }
    50%, 90% { filter: blur(0); opacity: 1; }
    100% { filter: blur(4px); opacity: 0.5; }
}

/* Card 4: Sync Anim */
.sync-anim { display: flex; align-items: center; justify-content: center; width: 100%; gap: 15px; }
.sync-node { width: 40px; height: 40px; background: #1a1a1f; border: 1px solid #2a2a2f; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.sync-stream { width: 80px; height: 20px; position: relative; }
.stream-line { position: absolute; inset: 0; top: 9px; height: 2px; background: rgba(255,255,255,0.1); }
.sync-particle { position: absolute; top: 6px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #3B82F6; box-shadow: 0 0 10px #3B82F6; opacity: 0; }
.sync-particle.p1 { animation: stream 2s infinite linear; }
.sync-particle.p2 { animation: stream 2s infinite linear 0.6s; }
.sync-particle.p3 { animation: stream 2s infinite linear 1.2s; }

@keyframes stream {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(0.8); }
    100% { left: 100%; opacity: 0; }
}

.dynamic-ide {
    color: #3B82F6;
    position: relative;
    white-space: nowrap;
}

.dynamic-ide::after {
    content: '|';
    position: absolute;
    right: -12px;
    top: -2px;
    font-weight: 300;
    color: #fff;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 9. Three Types of Credentials */
.cred-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.cred-type {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.cred-type h3 {
    margin: 0;
    min-width: 200px;
}

.cred-type p {
    margin: 0;
    flex: 1;
}

.cred-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.cred-icon.alt-1 { color: #f472b6; }
.cred-icon.alt-2 { color: #3B82F6; }

/* Alternating layout offset */
@media (min-width: 768px) {
    .offset-1 { transform: translateX(-5%); }
    .offset-1:hover { transform: translateX(-5%) translateY(-5px); }
    
    .offset-2 { transform: translateX(0); }
    .offset-2:hover { transform: translateX(0) translateY(-5px); }
    
    .offset-3 { transform: translateX(5%); }
    .offset-3:hover { transform: translateX(5%) translateY(-5px); }
}

/* 10. Security */
.apple-sec-card {
    background: #0a0a0c;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    min-height: 500px;
}

.sec-tabs-col {
    width: 35%;
    padding: 3rem 2rem;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
    background: rgba(10,10,12,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sec-tab {
    background: none;
    border: none;
    text-align: left;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.sec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.sec-tab:hover .sec-pill {
    background: rgba(255,255,255,0.08);
}

.sec-tab.active .sec-pill {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-main);
}

.sec-icon svg {
    opacity: 0.7;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
    width: 16px;
    height: 16px;
}

.sec-tab.active .sec-icon svg {
    opacity: 1;
    transform: rotate(45deg);
    stroke: var(--accent-glow);
}

.sec-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.25rem;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.sec-tab.active .sec-details {
    max-height: 150px;
    opacity: 1;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.sec-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.sec-visual-col {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-vis {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sec-vis.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Vis Animations */
/* Vis Animations */
.vis-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. AES Animation */
.aes-vis {
    flex-direction: column;
    gap: 2rem;
}
.lock-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glow-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(59,130,246,0.5);
    animation: radar-pulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.glow-ring.delay { animation-delay: 1.5s; }
.master-lock {
    position: relative;
    z-index: 2;
    stroke: #3B82F6;
    filter: drop-shadow(0 0 15px rgba(59,130,246,0.8));
    animation: lock-bob 4s ease-in-out infinite;
}
.encryption-stream {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.enc-line {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(59,130,246,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    animation: slide-fade-up 3s ease forwards;
}
.enc-line.delay-1 { animation-delay: 1.5s; }
.enc-line.delay-2 { animation-delay: 3s; }



/* 2. Device Auth Animation */
.hologram-laptop {
    position: relative;
    transform: scale(1.1);
}
.laptop-screen {
    width: 260px;
    height: 160px;
    border: 3px solid #333;
    border-radius: 8px 8px 0 0;
    background: #050505;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.laptop-base {
    width: 300px;
    height: 10px;
    background: #444;
    border-radius: 2px 2px 8px 8px;
    margin-left: -20px;
    position: relative;
}
.scan-beam {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(74, 222, 128, 0.2));
    border-bottom: 2px solid rgba(74, 222, 128, 0.8);
    animation: scan-sweep 3s ease-in-out infinite;
    z-index: 2;
}
.auth-success {
    position: absolute;
    opacity: 0;
    transform: scale(0.5);
    animation: auth-pop 3s ease-in-out infinite;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-success svg {
    filter: drop-shadow(0 0 15px rgba(74, 222, 128, 0.8));
    position: relative;
    z-index: 2;
}
.auth-success .ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.3);
    animation: ripple-out 3s ease-in-out infinite;
}
.code-lines {
    position: absolute;
    top: 1rem; left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.3;
}
.code-lines i {
    width: 40px; height: 3px; background: #333; border-radius: 2px;
}
.code-lines i:nth-child(2) { width: 60px; }
.code-lines i:nth-child(3) { width: 30px; }

/* 3. Audit Animation */
.audit-terminal {
    width: 320px;
    background: #050505;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.term-header {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.term-header span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ff5f56;
}
.term-header span:nth-child(2) { background: #ffbd2e; }
.term-header span:nth-child(3) { background: #27c93f; }
.term-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #666;
}
.term-body {
    height: 140px;
    padding: 12px;
    overflow: hidden;
    position: relative;
}
.log-scroll {
    animation: term-scroll 6s linear infinite;
}
.log-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 8px;
    white-space: nowrap;
}
.log-line .time { color: #888; margin-right: 8px; }
.log-line .action { color: #3B82F6; font-weight: 600; margin-right: 8px; }
.log-line .action.rotate { color: #0ea5e9; }
.log-line .ip { color: #666; font-size: 0.7rem; margin-left: 8px; }

/* 4. Rotate Animation */
.gyroscope {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}
.gyroscope .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}
.gyroscope .outer {
    width: 150px; height: 150px;
    animation: rotate-3d-1 8s linear infinite;
}
.gyroscope .middle {
    width: 110px; height: 110px;
    border-width: 1px;
    animation: rotate-3d-2 6s linear infinite reverse;
}
.gyroscope .inner {
    width: 70px; height: 70px;
    border: 1px solid rgba(14,165,233,0.8);
    animation: rotate-3d-1 4s linear infinite;
}
.core-key {
    position: absolute;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.8));
    animation: lock-bob 3s ease-in-out infinite;
}
.sync-arrows {
    position: absolute;
    animation: spin-slow 10s linear infinite reverse;
}

/* Keyframes */
@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}
@keyframes radar-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
@keyframes lock-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes slide-fade-up {
    0% { transform: translateY(10px); opacity: 0; }
    20% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}
@keyframes scan-sweep {
    0% { top: -50%; opacity: 0; }
    20% { opacity: 1; }
    80% { top: 100%; opacity: 1; }
    100% { top: 150%; opacity: 0; }
}
@keyframes auth-pop {
    0%, 60% { opacity: 0; transform: scale(0.5); }
    65% { opacity: 1; transform: scale(1.1); }
    70% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}
@keyframes ripple-out {
    0%, 65% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}
@keyframes term-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-104px); }
}
@keyframes rotate-3d-1 {
    0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); }
}
@keyframes rotate-3d-2 {
    0% { transform: rotateX(40deg) rotateY(40deg) rotateZ(0deg); }
    100% { transform: rotateX(40deg) rotateY(40deg) rotateZ(360deg); }
}

@media (max-width: 768px) {
    .apple-sec-card {
        flex-direction: column;
    }
    .sec-tabs-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 2rem 1.5rem;
    }
    .sec-visual-col {
        min-height: 300px;
    }
}

/* 11. Pricing */
.pricing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.25rem;
}

.scribble-underline {
    margin-bottom: 1rem;
    overflow: visible;
}
.scribble-underline path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw-scribble 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes draw-scribble {
    to { stroke-dashoffset: 0; }
}

.pricing-cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 4rem;
    perspective: 1200px;
    height: 480px;
}

.price-card {
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-card {
    width: 280px;
    height: 350px;
    background: #050505;
    z-index: 1;
    filter: brightness(0.6) blur(1px);
}

.left-card {
    transform: translateX(-180px) scale(0.9) rotateY(15deg);
}

.right-card {
    transform: translateX(180px) scale(0.9) rotateY(-15deg);
}

.center-card {
    width: 340px;
    height: 480px;
    z-index: 5;
    border-color: rgba(59,130,246, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 80px rgba(59, 130, 246, 0.15);
    background: rgba(15,15,20,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateZ(20px);
}

.absolute-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
    pointer-events: none;
}

.competitor-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.competitor-price .dollar { font-size: 1.75rem; vertical-align: super; opacity: 0.7; font-weight: 500; }
.competitor-price .period { font-size: 1.1rem; color: #666; font-weight: 400; }

.cross-out {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 3px;
    background: #ef4444;
    transform: rotate(-12deg);
    border-radius: 2px;
}

.main-price {
    color: var(--text-main);
}

.card-name {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.price-features li {
    color: #888;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-features li {
    color: var(--text-main);
    font-weight: 500;
}

@media (max-width: 900px) {
    .pricing-cards-container {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        perspective: none;
    }
    .price-card {
        position: relative;
        transform: none !important;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .side-card {
        height: auto;
        filter: none;
    }
}

/* 12. Final CTA */
.final-cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 60%);
    z-index: -1;
}

.final-title {
    margin-bottom: 3rem;
}

.terminal-command {
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.25rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.term-dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.term-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4b4b50;
}

.term-dots i:nth-child(1) { background: #ff5f56; }
.term-dots i:nth-child(2) { background: #ffbd2e; }
.term-dots i:nth-child(3) { background: #27c93f; }

.terminal-command code {
    font-family: var(--font-mono);
    color: #fff;
    flex: 1;
    text-align: left;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.copy-btn:hover {
    color: #fff;
}

/* 13. Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: var(--space-xl) 0 2rem;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 2rem; }
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-col a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Scroll Animations */
.slide-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
