/* KanTan VPN - Main Styles */

/* CSS Variables */
:root {
    --primary-color: #e11d48;
    --primary-hover: #be123c;
    --secondary-color: #1e293b;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-elevated: #242424;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-start: #7c3aed;
    --gradient-end: #db2777;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Language Switcher */
#global-lang-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial;
}

#global-lang-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
}

#global-lang-btn:hover {
    background: rgba(20, 20, 20, 0.7);
}

#global-lang-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

#global-lang-menu {
    position: absolute;
    top: 44px;
    right: 0;
    min-width: 160px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(22, 22, 22, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    display: none;
}

#global-lang-switch.open #global-lang-menu {
    display: block;
}

#global-lang-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff !important;
    text-align: left;
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s ease;
}

#global-lang-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

#global-lang-menu button[aria-current='true'] {
    background: rgba(255, 255, 255, 0.12);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo img {
    height: 36px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn-consult {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-consult:hover {
    color: var(--text-primary);
}

.btn-login {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(225, 29, 72, 0.2), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(120, 119, 198, 0.15), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-device {
    width: 320px;
    height: 200px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.device-screen {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    height: 100%;
    padding: 20px;
}

.vpn-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.ip-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ip-label {
    font-size: 12px;
    color: var(--text-muted);
}

.ip-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Section Styles */
section {
    padding: 100px 24px;
}

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

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

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

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

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Media Section */
.media {
    background: var(--bg-dark);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 22px;
    align-items: center;
    justify-items: start;
}

.media-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

.media-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    flex: 0 0 auto;
}

.kt-media-dazn .media-logo-wrap {
    background: #fff !important;
    padding: 6px;
}

.media-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Devices Section */
.devices {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.device-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.device-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.device-tab:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.device-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.device-icon {
    width: 24px;
    height: 24px;
}

.device-icon svg {
    width: 100%;
    height: 100%;
}

.device-content {
    max-width: 800px;
    margin: 0 auto;
}

.device-panel {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
}

.device-panel.active {
    display: block;
}

.device-info h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.device-info p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(225, 29, 72, 0.1) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.pricing-price {
    margin-bottom: 24px;
}

.pricing-price .currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: top;
    color: var(--text-secondary);
}

.pricing-price .amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

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

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

/* Consult Button */
#global-consult-wrap,
#pricing-consult-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    margin: 18px auto 0;
}

#pricing-consult-wrap {
    display: none;
}

#global-consult-btn,
#pricing-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

#global-consult-btn:hover,
#pricing-consult-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

#global-consult-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

/* Referral Section */
.referral {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 80px 24px;
}

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

.referral h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.referral p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 32px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
    
    .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 18px;
        justify-items: center;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .media-item {
        gap: 8px;
        justify-content: center;
        flex-direction: column;
    }
    
    .media-logo-wrap {
        width: 56px;
        height: 56px;
    }
    
    .media-name {
        display: none;
    }
    
    .device-tabs {
        justify-content: center !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .device-panel {
        padding: 32px 24px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    #global-consult-btn {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
    
    #global-lang-switch {
        top: 80px !important;
        right: 16px !important;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .device-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .device-icon {
        width: 20px;
        height: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.pricing-card,
.media-item {
    animation: fadeIn 0.6s ease forwards;
}
