/* ============================================
   POPOPX CHAT - Cyberpunk Dark Theme
   Clean, maintainable CSS
   ============================================ */

/* === VARIABLES === */
:root {
    --bg-black: #000000;
    --bg-dark: #0a0a1a;
    --bg-panel: #12122a;
    --bg-card: #1a1a3a;

    --text-white: #ffffff;
    --text-light: #e0e0f0;
    --text-gray: #b0b0c0;

    --neon-cyan: #00f0ff;
    --neon-pink: #ff00aa;
    --neon-green: #00ff88;
    --neon-yellow: #ffee00;

    --border: rgba(0, 240, 255, 0.2);
    --border-bright: rgba(0, 240, 255, 0.5);
    --clip-btn: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    --clip-card: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main { min-height: 100vh; }

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover { color: var(--neon-cyan); }

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.logo-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-badge {
    font-size: 0.6rem;
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 4px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher { position: relative; }

.lang-current {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--neon-cyan);
    padding: 6px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    clip-path: var(--clip-btn);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    min-width: 150px;
    z-index: 100;
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lang-option:hover,
.lang-option.active {
    background: rgba(0, 240, 255, 0.08);
    color: var(--neon-cyan);
}

.lang-flag { font-size: 1.1rem; }
.lang-name { font-size: 0.85rem; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 240, 255, 0.04) 0%, var(--bg-black) 70%);
    position: relative;
}

.hero-content {
    max-width: 860px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 6px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    clip-path: var(--clip-btn);
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta,
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-pink) 50%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glitch hover */
.glitch:hover { animation: glitch 0.3s infinite; }

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    clip-path: var(--clip-btn);
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-black);
}

.btn-primary:hover {
    background: var(--neon-green);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    color: var(--bg-black);
}

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

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1rem;
}

/* === SECTIONS === */
.section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.section-alt { background: var(--bg-panel); }

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

.section-tag {
    display: inline-block;
    color: var(--neon-pink);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title,
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-desc,
.section-header > p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === PAGE HEADER (inner pages) === */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* === FEATURES GRID & CARDS === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    clip-path: var(--clip-card);
}

.feature-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 10px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === LAYER HEADER (Features page) === */
.layer-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    clip-path: var(--clip-card);
}

.layer-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--neon-cyan);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    opacity: 0.7;
}

.layer-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.layer-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* === STATS BAR === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 20px;
    text-align: center;
    clip-path: var(--clip-card);
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 36px;
    text-align: center;
    clip-path: var(--clip-card);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.pricing-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.1);
}

.pricing-card.featured {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-pink);
    border: 1px solid rgba(255, 0, 170, 0.3);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pricing-price {
    margin: 20px 0;
}

.pricing-price .price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-white);
}

.pricing-price .period {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li::before {
    content: "\25B8\00a0";
    color: var(--neon-cyan);
}

.btn-pricing {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: var(--neon-cyan);
    color: var(--bg-black);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-pricing:hover {
    background: var(--neon-green);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
    color: var(--bg-black);
}

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 16px;
    clip-path: var(--clip-card);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-box {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px;
    max-width: 680px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 14px;
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* === BADGE === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-black);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-tagline {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* === ANIMATIONS === */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 16px 0;
        gap: 0;
    }

    .nav-links.active { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .mobile-menu-btn { display: block; }

    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2rem; letter-spacing: 2px; }
    .hero-subtitle { font-size: 1rem; }

    .hero-cta,
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section { padding: 60px 0; }

    .features-grid,
    .pricing-grid,
    .stats-bar {
        grid-template-columns: 1fr;
    }

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

    .layer-number { font-size: 2.5rem; }

    .section-title,
    .section-header h2 {
        font-size: 1.6rem;
    }

    .cta-box { padding: 32px 20px; }
}

@media (min-width: 769px) {
    .mobile-menu-btn { display: none; }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-cyan { color: var(--neon-cyan); }
.text-pink { color: var(--neon-pink); }
.text-green { color: var(--neon-green); }
