:root {
    color-scheme: dark;
    --bg-base: #06080d;
    --bg-surface: rgba(20, 24, 38, 0.4);
    --bg-surface-hover: rgba(30, 36, 56, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.3);
    
    --accent-blue: #0ea5e9;
    --accent-blue-glow: rgba(14, 165, 233, 0.5);
    --accent-purple: #8b5cf6;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --container: 1140px;
    --font: 'Outfit', system-ui, -apple-system, sans-serif;
    
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text-main);
    background-color: var(--bg-base);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

.aura {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    animation: float-aura 20s ease-in-out infinite alternate;
}

.aura-1 {
    top: -10%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(14,165,233,0) 70%);
}

.aura-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(139,92,246,0) 70%);
    animation-delay: -5s;
}

.aura-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, rgba(236,72,153,0) 70%);
    animation-delay: -10s;
}

@keyframes float-aura {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

/* Glass & UI Effects */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.glass-panel-dark {
    background: rgba(5, 8, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255,255,255,0.2);
}

.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

/* Typography Elements */
.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 24px;
    font-weight: 700;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 16px;
    text-wrap: balance;
}

.hero-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 480px;
    font-weight: 300;
    text-wrap: pretty;
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(6, 8, 13, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.site-nav {
    display: none;
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
        gap: 32px;
    }
    .site-nav a {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        transition: color 0.2s ease;
    }
    .site-nav a:hover {
        color: var(--text-main);
    }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition-property: transform, background-color, box-shadow, border-color, color;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.button:active {
    transform: scale(0.96);
}

.button-glow {
    background: var(--text-main);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.button-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.button-glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.button-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-cta {
    padding: 8px 16px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

.pulse-dot {
    width: 6px; height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 40px 0;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.point-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.point-chip svg {
    color: var(--accent-blue);
}

/* Hero Visuals - The WOW Factor */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.mock-mac {
    position: absolute;
    top: 50%; left: 45%;
    width: 600px;
    transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.hero-visual:hover .mock-mac {
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg);
}

.mock-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot.close { background: #ff5f56; }
.dot.minimize { background: #ffbd2e; }
.dot.maximize { background: #27c93f; }

.mock-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    height: 380px;
}

.mock-sidebar {
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.mock-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.mock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mock-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.mock-icon {
    width: 16px; height: 16px;
    border-radius: 4px;
    background: var(--accent-blue);
}
.mock-icon.star { background: #fbbf24; }
.mock-icon.key { background: #10b981; }
.mock-icon.card { background: #8b5cf6; }

.mock-panel {
    padding: 24px;
}

.glass-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.mock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flex-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    gap: 16px;
}

.row-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: white;
}
.row-icon.apple { background: #333; }
.row-icon.github { background: #18181b; }
.row-icon.bank { background: #2563eb; }

.row-details {
    flex: 1;
}
.row-details strong { display: block; font-size: 14px; margin-bottom: 2px; }
.row-details span { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.row-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.row-badge.passkey { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.row-badge.password { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }
.row-badge.card-badge { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }

/* Floating Phone */
.mock-phone {
    position: absolute;
    right: 5%; bottom: -15%;
    width: 260px;
    height: 520px;
    padding: 12px;
    z-index: 10;
    transform: rotateY(-15deg) rotateX(10deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotateY(-15deg) rotateX(10deg); }
    50% { transform: translateY(-20px) rotateY(-12deg) rotateX(12deg); }
    100% { transform: translateY(0px) rotateY(-15deg) rotateX(10deg); }
}

.mock-phone-notch {
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 30px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

.mock-phone-screen {
    width: 100%; height: 100%;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 28px;
    padding: 60px 20px 20px;
    position: relative;
    overflow: hidden;
}

.phone-header h2 { font-size: 24px; margin-top: 12px; }

.phone-stack {
    margin-top: 30px;
    display: flex; flex-direction: column; gap: 12px;
}

.phone-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 16px;
    display: flex; align-items: center; gap: 12px;
}

.card-circle {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.card-line {
    flex: 1; height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}
.card-line.strong { background: rgba(255, 255, 255, 0.2); width: 60%; flex: none; }

.phone-glow {
    position: absolute;
    bottom: -20px; right: -20px;
    width: 150px; height: 150px;
    background: rgba(14, 165, 233, 0.4);
    filter: blur(50px);
    z-index: -1;
    border-radius: 50%;
}

/* Features */
.features-section { padding: 120px 0; }

.section-heading.center {
    display: flex; flex-direction: column; align-items: center; text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.interactive-card {
    padding: 32px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.feature-icon svg { width: 26px; height: 26px; }
.secure-bg { color: #38bdf8; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2); }
.sync-bg { color: #818cf8; background: rgba(129, 140, 248, 0.1); border: 1px solid rgba(129, 140, 248, 0.2); }
.import-bg { color: #c084fc; background: rgba(192, 132, 252, 0.1); border: 1px solid rgba(192, 132, 252, 0.2); }
.web-bg { color: #e879f9; background: rgba(232, 121, 249, 0.1); border: 1px solid rgba(232, 121, 249, 0.2); }

.feature-card h3 {
    font-size: 20px; margin-bottom: 12px; font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px; line-height: 1.5; margin: 0;
    text-wrap: pretty;
}

/* Call to Action */
.cta-panel {
    position: relative;
    padding: 64px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    overflow: hidden;
    margin: 80px 0;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(139,92,246,0) 70%);
    z-index: 0;
}

.cta-content, .platform-row { position: relative; z-index: 10; }

.platform-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px;
}
.glass-badge {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    padding: 32px 0;
}

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

.footer-brand {
    display: flex; align-items: center; gap: 8px; font-weight: 600;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.stagger-fade-in {
    opacity: 0; transform: translateY(20px);
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .mock-mac { position: relative; top: auto; left: auto; transform: none; width: 100%; margin: 80px auto 0; }
    .hero-visual { height: auto; }
    .hero-visual:hover .mock-mac { transform: none; }
    .mock-phone { position: relative; width: 220px; height: 440px; right: auto; margin: -200px auto 0; transform: none; animation: float-mobile 6s ease-in-out infinite; }
    @keyframes float-mobile {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0px); }
    }
}
@media (max-width: 768px) {
    .cta-panel { padding: 40px 24px; }
    .hero { padding-top: 120px; }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.5rem 2.2rem 0.5rem 2.2rem;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition-property: background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

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

.lang-switcher::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-main);
    pointer-events: none;
    opacity: 0.7;
}
