:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a26;
    --bg-input: #16161f;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #f0f0f5;
    --text-secondary: #8888a0;
    --text-dim: #555570;
    --purple: #a855f7;
    --cyan: #06b6d4;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(6,182,212,0.15) 100%);
    --shadow: 0 0 0 1px var(--border);
    --shadow-lg: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--surface);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--surface);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

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

/* ==================== HERO ==================== */
.hero {
    position: relative;
    padding: 180px 24px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--purple);
    top: -200px;
    left: -100px;
    animation: float-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--cyan);
    top: 100px;
    right: -150px;
    animation: float-2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    bottom: -100px;
    left: 30%;
    animation: float-3 18s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.05); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.1); }
    66% { transform: translate(30px, -40px) scale(0.9); }
}

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

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 32px;
    animation: fadeIn 0.8s ease-out;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title .line-1 {
    display: block;
    color: var(--text);
}

.hero-title .line-2 {
    display: block;
    color: var(--text);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title em {
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== HERO VISUAL ==================== */
.hero-visual {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.visual-wrapper {
    position: relative;
}

.visual-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.glass {
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
}

.card-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.toolbar-dots {
    display: flex;
    gap: 6px;
}

.toolbar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.toolbar-dots span:first-child { background: #ef4444; opacity: 0.7; }
.toolbar-dots span:nth-child(2) { background: #f59e0b; opacity: 0.7; }
.toolbar-dots span:last-child { background: #10b981; opacity: 0.7; }

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-body {
    padding: 24px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.prompt {
    color: var(--purple);
    font-weight: 500;
}

.cmd {
    color: var(--text);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--cyan);
    animation: blink 1s step-end infinite;
    border-radius: 2px;
}

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

.terminal-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.output-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.output-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.output-icon.ok {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.output-icon.loading {
    color: var(--cyan);
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-metrics {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: -20px;
    right: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 40px;
    left: -50px;
    animation-delay: 2s;
}

.card-3 {
    bottom: -10px;
    right: 20px;
    animation-delay: 4s;
}

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

/* ==================== SOCIAL PROOF ==================== */
.social-proof {
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.proof-stat {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ==================== FEATURES ==================== */
.features {
    padding: 120px 24px;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.35s;
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feature-chip svg {
    color: var(--green);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 120px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 32px;
    position: relative;
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex-shrink: 0;
}

.step-line {
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
    margin: 12px 0;
}

.step:last-child .step-line {
    display: none;
}

.step-content {
    padding-bottom: 48px;
}

.step-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== BETA ==================== */
.beta-section {
    padding: 120px 24px;
}

.beta-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.beta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.beta-content {
    position: relative;
    z-index: 1;
}

.beta-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 20px 0 12px;
}

.beta-card > p {
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.beta-form {
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* Beta input (inline context) — see main .input below */

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input .input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text);
}

.beta-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.beta-hint code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    padding: 3px 8px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 6px;
    color: var(--purple);
    font-size: 0.8rem;
}

.beta-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
}

.beta-status p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.beta-status a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 120px 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.35s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.pricing-card.popular {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, var(--bg-card) 40%);
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.1);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    background: var(--gradient);
    color: white;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.pricing-desc {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ==================== CTA ==================== */
.cta-section {
    padding: 120px 24px;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    position: relative;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-card p {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta-card .btn {
    position: relative;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 60px 24px 32px;
    border-top: 1px solid var(--border);
}

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

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 140px 24px 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 60px;
    }

    .floating-card {
        display: none;
    }

    .proof-inner {
        flex-direction: column;
        gap: 32px;
    }

    .proof-divider {
        width: 40px;
        height: 1px;
    }

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

    .step {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .beta-card {
        padding: 40px 24px;
    }

    .input-group {
        flex-direction: column;
    }
}

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

    .card-metrics {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: var(--surface);
    border-color: var(--border-hover);
}

.lang-btn.active {
    border-color: var(--purple);
    background: rgba(168, 85, 247, 0.1);
}

.lang-divider {
    color: var(--text-dim);
    font-size: 0.75rem;
    user-select: none;
}

.sidebar-lang {
    margin-bottom: 12px;
    justify-content: center;
}

.sidebar-lang .lang-btn {
    padding: 6px 10px;
    font-size: 1.05rem;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 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; }

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.input::placeholder {
    color: var(--text-dim);
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238888a0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-switch a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.form-switch a:hover {
    text-decoration: underline;
}

.form-row-inline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.form-link {
    color: var(--purple);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.field-message {
    margin-top: 6px;
    font-size: 0.8rem;
    min-height: 1.2em;
}

.field-error {
    color: var(--red);
}

.field-success {
    color: var(--green);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn .btn-spinner {
    display: inline-flex;
    align-items: center;
    animation: spin 1s linear infinite;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f0f0f5;
    backdrop-filter: blur(12px);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* ==================== FORM ERROR GLOBAL ==================== */
.form-error-global {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #fca5a5;
    line-height: 1.4;
}

/* ==================== PASSWORD STRENGTH ==================== */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-label {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ==================== VERIFY EMAIL MODAL ==================== */
.verify-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verify-hint {
    margin: 1rem 0;
    color: var(--text-secondary);
}
