:root {
    --bg-primary: #0D0D0F;
    --bg-secondary: #16161A;
    --bg-tertiary: #1E1E24;
    --bg-hover: #25252D;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #F5F5F7;
    --text-secondary: #8E8EA0;
    --text-muted: #5C5C6D;
    --accent-purple: #7C5CFF;
    --accent-purple-hover: #8F73FF;
    --accent-cyan: #00D4AA;
    --accent-blue: #5B8DEF;
    --accent-yellow: #F5C542;
    --accent-green: #4CD964;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 150ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile Notice */
.mobile-notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 16px;
}
.mobile-notice svg {
    color: var(--text-muted);
    margin-bottom: 8px;
}
.mobile-notice h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}
.mobile-notice p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}
.nav.scrolled {
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border-subtle);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}
.logo svg {
    flex-shrink: 0;
}

/* Hero */
.hero {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 56px;
}
.hero-bg {
    position: absolute;
    top: -200px;
    right: -400px;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-top {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}
.hero-content {
    flex: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 100px;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.2);
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 24px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}
.btn-primary {
    background: var(--accent-purple);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-purple-hover);
    transform: scale(1.03);
}
.btn-large {
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
}

/* Hero Visual - Mockup */
.hero-visual {
    flex: 0 0 380px;
    position: relative;
    z-index: 1;
}
.demo-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #28CA41; }
.mockup-title {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.mockup-body {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
}
.mockup-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.mockup-msg.user {
    flex-direction: row-reverse;
}
.mockup-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    flex-shrink: 0;
}
.mockup-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.5;
}
.mockup-msg.ai .mockup-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 4px;
}
.mockup-msg.user .mockup-bubble {
    background: var(--accent-purple);
    color: white;
    border-bottom-right-radius: 4px;
}
.generating-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple);
}
.generating-dots {
    display: flex;
    gap: 4px;
}
.generating-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: dotBounce 1.4s ease-in-out infinite;
}
.generating-dots span:nth-child(2) { animation-delay: 0.2s; }
.generating-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.mockup-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-subtle);
}
.mockup-input-bar {
    flex: 1;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}
.mockup-send {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent-purple);
}

/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}
.hero-features .feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-base);
}
.hero-features .feature-card:hover {
    border-color: rgba(124, 92, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.hero-features .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.hero-features .feature-icon svg {
    width: 18px;
    height: 18px;
}
.icon-purple {
    background: rgba(124, 92, 255, 0.1);
    color: var(--accent-purple);
}
.icon-cyan {
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-cyan);
}
.icon-yellow {
    background: rgba(245, 197, 66, 0.1);
    color: var(--accent-yellow);
}
.icon-green {
    background: rgba(76, 217, 100, 0.1);
    color: var(--accent-green);
}
.hero-features .feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.hero-features .feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Password Gate */
.password-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 400ms ease, visibility 400ms ease;
}
.password-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.password-gate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    padding: 40px 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.password-gate-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}
.password-gate-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.password-gate-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.password-gate-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}
.password-gate-input:focus {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}
.password-gate-input::placeholder {
    color: var(--text-muted);
}
.password-gate-btn {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent-purple);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.password-gate-btn:hover {
    background: var(--accent-purple-hover);
    transform: translateY(-1px);
}
.password-gate-error {
    font-size: 13px;
    color: var(--accent-red);
    margin-top: 12px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.password-gate-error.show {
    opacity: 1;
}
.password-gate-inner.shake {
    animation: gateShake 300ms ease;
}
@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-top {
        gap: 32px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-visual {
        flex: 0 0 320px;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-top {
        flex-direction: column;
        gap: 24px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
}
