/* ============================================
   CS Headshot — Main Stylesheet
   Dark theme, Clerk-style, green-yellow accents
   ============================================ */

:root {
    --bg-deep: #050a05;
    --bg-primary: #0a120a;
    --bg-card: #0f1a0f;
    --bg-card-hover: #142014;
    --bg-surface: rgba(20, 40, 20, 0.5);
    --border: rgba(74, 222, 128, 0.1);
    --border-hover: rgba(74, 222, 128, 0.25);
    --text-primary: #f0fdf4;
    --text-secondary: #86efac;
    --text-muted: rgba(134, 239, 172, 0.5);
    --text-dim: rgba(240, 253, 244, 0.4);
    --accent-1: #4ade80;
    --accent-2: #a3e635;
    --accent-3: #facc15;
    --glow-1: rgba(74, 222, 128, 0.15);
    --gradient-main: linear-gradient(135deg, #4ade80, #a3e635, #facc15);
    --gradient-subtle: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(163, 230, 53, 0.05));
    --grid-color: rgba(74, 222, 128, 0.03);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ═══ NOISE ═══ */
body::before {
    content: '';
    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;
}

/* ═══ AMBIENT GLOW ═══ */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}
.g1 { top: -200px; left: -100px; width: 600px; height: 600px; background: var(--accent-1); opacity: 0.07; }
.g2 { top: 40%; right: -200px; width: 500px; height: 500px; background: var(--accent-2); opacity: 0.06; }
.g3 { bottom: -100px; left: 30%; width: 400px; height: 400px; background: var(--accent-3); opacity: 0.04; }

/* ═══ GRID ═══ */
.grid-pattern {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ═══ NAV ═══ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 10, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: var(--bg-deep);
}

.nav-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-logo-text span { color: var(--accent-1); }

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

.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.2s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.lang-switch:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.btn-ghost {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(74, 222, 128, 0.06);
}

.btn-primary {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-1);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 20px var(--glow-1);
}

/* ═══ FLASH MESSAGES ═══ */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: flashIn 0.3s ease-out, flashOut 0.3s ease-in 3.7s forwards;
    max-width: 90%;
}

.flash-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--accent-1);
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

/* ═══ HERO ═══ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 8px var(--accent-1);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 800px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 24px auto 0;
    line-height: 1.6;
    font-weight: 300;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn-hero {
    padding: 14px 32px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: var(--gradient-main);
    border: none;
    color: var(--bg-deep);
    box-shadow: 0 0 30px var(--glow-1);
}

.btn-hero-primary:hover {
    box-shadow: 0 0 50px rgba(74, 222, 128, 0.35);
    transform: translateY(-2px);
}

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

.btn-hero-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(74, 222, 128, 0.05);
}

/* ═══ SERVER STATUS ═══ */
.server-status {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 56px;
    padding: 16px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

.status-item .value {
    color: var(--accent-1);
    font-weight: 500;
}

.status-online { color: var(--accent-1) !important; }
.status-offline { color: #ef4444 !important; }

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

/* ═══ SECTIONS ═══ */
section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-1);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-dim);
    margin-top: 16px;
    line-height: 1.6;
    font-weight: 300;
}

/* ═══ PRODUCT CARDS ═══ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.product-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--glow-1);
}

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

.product-card.featured {
    border-color: rgba(74, 222, 128, 0.2);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.05) 0%, var(--bg-card) 100%);
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 20px;
}

.badge-vip {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-admin {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.badge-unban {
    background: rgba(163, 230, 53, 0.12);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.2);
}

.badge-other {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-1);
    border: 1px solid var(--border);
}

.product-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.product-price-currency {
    font-size: 16px;
    color: var(--text-muted);
}

.product-price-period {
    font-size: 14px;
    color: var(--text-dim);
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(74, 222, 128, 0.08);
    color: var(--accent-1);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-buy:hover {
    background: rgba(74, 222, 128, 0.18);
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 0 20px var(--glow-1);
}

.product-card.featured .btn-buy {
    background: var(--gradient-main);
    color: var(--bg-deep);
    border: none;
}

.product-card.featured .btn-buy:hover {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.3);
}

/* ═══ STEPS ═══ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.step-card {
    padding: 36px 28px;
    background: var(--bg-card);
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover { background: var(--bg-card-hover); }

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent-1);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.step-icon { font-size: 28px; margin-bottom: 16px; }
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ═══ FORMS ═══ */
.form-card {
    max-width: 440px;
    margin: 120px auto 60px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.form-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--gradient-main);
    color: var(--bg-deep);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.form-submit:hover {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.25);
    transform: translateY(-1px);
}

.form-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-dim);
}

.form-link a {
    color: var(--accent-1);
    font-weight: 500;
}

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

/* ═══ FOOTER ═══ */
footer {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left { font-size: 13px; color: var(--text-dim); }

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.2s;
}

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

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .products-grid { grid-template-columns: 1fr; max-width: 420px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    nav { padding: 0 20px; }
    .hero { padding: 100px 20px 60px; }
    section { padding: 60px 20px; }
    .server-status { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
    .status-divider { display: none; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .btn-hero { justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; }
    .form-card { margin: 100px 16px 40px; padding: 28px; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
}
