/* =============================================
   TitanX VPN — Frontend Stylesheet
   ============================================= */

:root {
    --primary: #4DA3FF;
    --primary-dark: #2B7FE0;
    --accent: #00D98E;
    --accent-glow: rgba(0, 217, 142, 0.3);
    --bg-dark: #0A0E1A;
    --bg-card: #111827;
    --bg-card-hover: #1A2332;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(77, 163, 255, 0.15);
    --gradient-hero: linear-gradient(135deg, #0A0E1A 0%, #111827 50%, #0F172A 100%);
    --gradient-card: linear-gradient(145deg, #111827 0%, #0F172A 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

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

/* =============================================
   Navbar
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
}

.navbar-brand:hover { color: var(--text-primary); }

.navbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-menu a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-menu a:hover { color: var(--text-primary); }

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(77, 163, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(77, 163, 255, 0.4);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #00B876);
    color: #000;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
    color: #000;
}

.btn-outline-light {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 20px;
    font-size: 13px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(77, 163, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 142, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 217, 142, 0.1);
    border: 1px solid rgba(0, 217, 142, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i { font-size: 10px; }

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

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

.hero-stat .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat .number .accent { color: var(--accent); }

.hero-stat .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   Section Common
   ============================================= */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* =============================================
   Features
   ============================================= */
.features { background: var(--bg-dark); }

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

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 163, 255, 0.3);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-icon.blue { background: rgba(77, 163, 255, 0.12); color: var(--primary); }
.feature-icon.green { background: rgba(0, 217, 142, 0.12); color: var(--accent); }
.feature-icon.purple { background: rgba(167, 139, 250, 0.12); color: #A78BFA; }
.feature-icon.orange { background: rgba(251, 146, 60, 0.12); color: #FB923C; }
.feature-icon.pink { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.feature-icon.cyan { background: rgba(34, 211, 238, 0.12); color: #22D3EE; }

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================
   Servers
   ============================================= */
.servers {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0F172A 100%);
}

.server-locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.server-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.server-card img {
    width: 32px;
    height: 24px;
    border-radius: 3px;
    object-fit: cover;
}

.server-card .info h4 {
    font-size: 14px;
    font-weight: 600;
}

.server-card .info span {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
}

/* =============================================
   Pricing
   ============================================= */
.pricing {
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(77, 163, 255, 0.15);
}

.pricing-card.featured::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

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

.pricing-card .price {
    font-size: 48px;
    font-weight: 800;
    margin: 16px 0;
    line-height: 1;
}

.pricing-card .price small {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .period {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--accent);
    font-size: 14px;
    width: 20px;
}

.pricing-card .btn { width: 100%; }

/* =============================================
   Download
   ============================================= */
.download {
    background: linear-gradient(180deg, #0F172A 0%, var(--bg-dark) 100%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

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

.download-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.download-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* =============================================
   FAQ
   ============================================= */
.faq { background: var(--bg-dark); }

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--gradient-card);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* =============================================
   CTA
   ============================================= */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.08), rgba(0, 217, 142, 0.05));
    text-align: center;
}

.cta h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Page (Privacy, Terms)
   ============================================= */
.page-content {
    padding: 140px 0 80px;
    min-height: 60vh;
}

.page-content .container {
    max-width: 800px;
}

.page-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.page-content .content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.page-content .content h2, .page-content .content h3 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content .content p { margin-bottom: 16px; }

.page-content .content ul, .page-content .content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: #070B14;
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand span {
    font-weight: 700;
    font-size: 18px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

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

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

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
}

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

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

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-stats { gap: 32px; }
}

@media (max-width: 768px) {
    .navbar-toggle { display: flex; }
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }
    .navbar-menu.active { right: 0; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
}
