/* ================================================
   WAR NODES - Main Stylesheet
   Design System & Core Styles
   ================================================ */

/* === Design Tokens === */
:root {
    /* Colors */
    --color-bg-primary: #0B0F17;
    --color-bg-secondary: #131821;
    --color-bg-tertiary: #1a1f2e;
    --color-bg-elevated: #1f2534;

    --color-accent-purple: #6C5CE7;
    --color-accent-cyan: #00D1FF;
    --color-accent-green: #2EE59D;

    --color-text-primary: #E6EEF8;
    --color-text-secondary: #A8B3CF;
    --color-text-tertiary: #6B7A99;

    --color-border: rgba(230, 238, 248, 0.1);
    --color-border-hover: rgba(230, 238, 248, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-cyan));
    --gradient-secondary: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-green));
    --gradient-accent: linear-gradient(135deg, #6C5CE7 0%, #00D1FF 50%, #2EE59D 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(0, 209, 255, 0.3);
    --shadow-glow-green: 0 0 20px rgba(46, 229, 157, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1060;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

p {
    margin-bottom: var(--spacing-md);
}

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

/* === Utility Classes === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

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

.highlight {
    color: var(--color-accent-cyan);
    font-weight: 600;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(11, 15, 23, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Desktop: center Home · Services · Dedicated · WarShield · Status between logo and actions */
@media (min-width: 769px) {
    .nav-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        column-gap: var(--spacing-md);
        justify-content: initial;
    }

    .nav-content > .logo {
        justify-self: start;
        grid-column: 1;
    }

    .nav-content > .nav-links {
        justify-self: center;
        grid-column: 2;
    }

    .nav-content > .nav-actions {
        justify-self: end;
        grid-column: 3;
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

    /* Hidden on desktop; does not consume a grid track */
    .nav-content > .mobile-menu-toggle {
        display: none;
    }

    /* Mega menu: center under Services (replaces per-page left:-120px offset) */
    .nav-dropdown .dropdown-menu.services-mega {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: var(--font-size-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-link {
    position: relative;
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 0.25rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 280px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu.dropdown-menu-right {
    left: auto;
    right: 0;
    transform: translateY(-10px);
}

.nav-dropdown:hover .dropdown-menu.dropdown-menu-right {
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.1);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: var(--font-size-2xl);
}

.dropdown-title {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.dropdown-desc {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Panels Dropdown */
.panels-dropdown {
    position: relative;
}

.panels-dropdown:hover .panels-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panels-menu a:hover {
    background: rgba(108, 92, 231, 0.15);
    transform: translateX(4px);
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

/* === Buttons === */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--color-accent-purple);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
}

.btn-block {
    width: 100%;
}

.btn-arrow,
.btn-icon {
    font-size: var(--font-size-lg);
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: rgba(46, 229, 157, 0.1);
    border: 1px solid rgba(46, 229, 157, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-accent-green);
    margin-bottom: var(--spacing-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-green);
    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(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: rgba(31, 37, 52, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

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

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-rack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rack-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 209, 255, 0.1));
    border: 2px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.rack-front {
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.rack-mid {
    z-index: 2;
    transform: translate(-50%, -50%) translateZ(-50px) scale(0.95);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite 0.3s;
}

.rack-back {
    z-index: 1;
    transform: translate(-50%, -50%) translateZ(-100px) scale(0.9);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite 0.6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

.pixel-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* === Sections === */
section {
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-2xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-purple);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.feature-desc {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* === Plans Preview === */
.plans-preview {
    position: relative;
    overflow: hidden;
}

.plans-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: var(--font-size-2xl);
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    background: var(--color-accent-purple);
    border-color: var(--color-accent-purple);
    box-shadow: var(--shadow-glow);
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

.plan-card {
    position: relative;
    min-width: 320px;
    flex-shrink: 0;
    padding: var(--spacing-2xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-accent-purple);
    box-shadow: var(--shadow-glow);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-xl);
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
}

.badge-premium {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-glow-green);
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.plan-name {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.plan-desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--spacing-xl);
}

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

.price-amount {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: var(--font-size-base);
    color: var(--color-text-tertiary);
    margin-left: var(--spacing-sm);
}

.price-text {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.plan-features li {
    padding: var(--spacing-sm) 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* === Quick Start === */
.quick-start {
    background: var(--color-bg-secondary);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.step-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.step-desc {
    color: var(--color-text-secondary);
}

.step-visual {
    margin-top: var(--spacing-lg);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-animation {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.1);
    border: 2px solid var(--color-accent-purple);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.6);
    }
}

.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent-cyan));
    position: relative;
}

.step-connector::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent-cyan);
    font-size: var(--font-size-xl);
}

/* === Testimonials === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    padding: var(--spacing-2xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

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

.testimonial-stars {
    color: #FFD700;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-role {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* === CTA Section === */
.cta-section {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.1), transparent);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.offer-badge {
    padding: 0.5rem 1rem;
    background: rgba(46, 229, 157, 0.1);
    border: 1px solid rgba(46, 229, 157, 0.2);
    color: var(--color-accent-green);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.offer-text {
    color: var(--color-text-secondary);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* === Footer === */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-copyright {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-operational {
    background: var(--color-accent-green);
    animation: pulse 2s ease-in-out infinite;
}

/* === Modal === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-2xl);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: red;
}

.modal-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xl);
}

/* Demo Panel */
.demo-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xl);
    min-height: 400px;
}

.demo-sidebar {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.demo-nav-item {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--spacing-sm);
}

.demo-nav-item:hover {
    background: rgba(108, 92, 231, 0.1);
}

.demo-nav-item.active {
    background: var(--gradient-primary);
    color: white;
}

.demo-main {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.demo-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: rgba(46, 229, 157, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-accent-green);
    font-size: var(--font-size-sm);
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.demo-stat {
    padding: var(--spacing-lg);
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    text-align: center;
}

.demo-stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-sm);
}

.demo-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-accent-cyan);
}

.demo-console {
    background: var(--color-bg-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
    min-height: 200px;
}

.console-line {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.console-line.typing {
    color: var(--color-accent-green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .hero-visual {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 100px;
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {

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

    /* Hide desktop nav-links but show nav-actions with buttons */
    .nav-links {
        display: none;
    }

    /* Show nav-actions (Get Started, Panels buttons) on mobile */
    .nav-actions {
        display: flex !important;
        gap: var(--spacing-sm);
    }

    /* Make buttons smaller on mobile */
    .nav-actions .btn-primary,
    .nav-actions .btn-secondary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Hide Panels dropdown on very small screens, show on tablets */
    .nav-actions .nav-dropdown {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu active styles */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 15, 23, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
        list-style: none;
        margin: 0;
    }

    .nav-links.active>li {
        width: 100%;
        list-style: none;
    }

    .nav-links.active .nav-link {
        padding: var(--spacing-md);
        font-size: var(--font-size-base);
        display: block;
        width: 100%;
        text-align: left;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.02);
    }

    .nav-links.active .nav-link:hover {
        background: rgba(108, 92, 231, 0.1);
    }

    /* Mobile dropdown styles */
    .nav-links.active .nav-dropdown {
        display: block;
        width: 100%;
    }

    .nav-links.active .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        margin-top: var(--spacing-sm);
        background: rgba(31, 37, 52, 0.6);
        display: none;
    }

    .nav-links.active .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    /* Rotate arrow when dropdown is open */
    .nav-links.active .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Make dropdown link look clickable */
    .nav-links.active .nav-dropdown>.nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

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

    .carousel-btn {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

    .demo-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-content {
        height: 70px;
    }

    .logo {
        font-size: var(--font-size-base);
    }

    .logo-icon {
        font-size: var(--font-size-xl);
    }

    /* Smaller buttons on very small screens */
    .nav-actions .btn-primary {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }
}

/* ========================================
   Globe Section - Mobile Responsive
   ======================================== */

/* Hide side panels on tablets and mobile */
@media (max-width: 1024px) {

    #left-panel,
    #right-panel {
        display: none !important;
    }

    #globe-canvas {
        height: 500px !important;
    }
}

@media (max-width: 768px) {
    #globe-canvas {
        height: 400px !important;
    }

    .globe-wrapper {
        border-radius: 16px !important;
        margin: 0 -0.5rem;
    }

    #globe-tooltip {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
    }

    /* Section padding adjustment */
    #locations {
        padding: 4rem 0 !important;
    }

    .section-header h2 {
        font-size: 1.75rem !important;
    }

    .section-header p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    #globe-canvas {
        height: 300px !important;
    }

    .globe-wrapper {
        border-radius: 12px !important;
    }

    #globe-tooltip {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        top: 10px !important;
    }

    #locations {
        padding: 3rem 0 !important;
    }
}

/* ========================================
   Universal Mobile Grid Fix
   Force single column on small screens
   ======================================== */
@media (max-width: 600px) {

    /* Force all grids to single column */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Hosting cards section */
    #hosting>.container>div {
        grid-template-columns: 1fr !important;
    }

    /* Features section cards */
    #features>.container>div {
        grid-template-columns: 1fr !important;
    }

    /* Trust badges section */
    section>.container>div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Reduce padding on mobile */
    section {
        padding: 3rem 0 !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    /* Card adjustments */
    [style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }

    [style*="padding: 2rem"] {
        padding: 1.25rem !important;
    }
}

/* ========================================
   Page-specific Mobile Fixes
   ======================================== */

/* All pages - ensure content not hidden behind navbar */
@media (max-width: 768px) {

    /* Hero/first sections need proper padding */
    section:first-of-type,
    .hero,
    [style*="min-height: 100vh"],
    [style*="min-height: 90vh"] {
        padding-top: 100px !important;
    }

    /* WarShield / DDoS page specific fixes */
    /* Hero grid to single column */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Reduce large headings */
    [style*="font-size: 4rem"],
    [style*="font-size: 3.5rem"],
    [style*="font-size: 3rem"] {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    [style*="font-size: 2.5rem"],
    [style*="font-size: 2.25rem"] {
        font-size: 1.75rem !important;
    }

    [style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }

    /* Hide large animated visuals on mobile */
    [style*="width: 450px"],
    [style*="width: 400px"] {
        width: 280px !important;
        height: 280px !important;
    }

    /* Shield glow effects - smaller on mobile */
    .shield-glow {
        width: 200px !important;
        height: 200px !important;
    }

    /* Stat numbers - smaller on mobile */
    .stat-number {
        font-size: 2rem !important;
    }

    /* Feature cards grid */
    .features-grid,
    [style*="repeat(3, 1fr)"],
    [style*="repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Button adjustments */
    [style*="padding: 1.1rem 2.5rem"] {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* Flex wrap buttons */
    [style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
    }

    /* WarShield "How It Works" section - steps vertical on mobile */
    [style*="display: flex"][style*="align-items: center"][style*="gap: 0"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Hide step connectors on mobile */
    .step-connector {
        display: none !important;
    }

    /* Make step items full width */
    [style*="flex: 0 0 200px"] {
        flex: 1 1 100% !important;
        max-width: 300px !important;
    }

    /* Stats grid - single or 2 columns */
    [style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Feature cards grid */
    [style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {

    /* Extra small screen fixes */
    section:first-of-type,
    .hero,
    [style*="min-height: 100vh"],
    [style*="min-height: 90vh"] {
        padding-top: 80px !important;
        min-height: auto !important;
        padding-bottom: 3rem !important;
    }

    /* Smaller headings on tiny screens */
    [style*="font-size: 4rem"],
    [style*="font-size: 3.5rem"],
    [style*="font-size: 3rem"] {
        font-size: 1.6rem !important;
    }

    [style*="font-size: 2.5rem"],
    [style*="font-size: 2.25rem"],
    [style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }

    /* Animated visual hide or shrink */
    [style*="width: 450px"],
    [style*="width: 400px"],
    [style*="width: 350px"] {
        width: 200px !important;
        height: 200px !important;
    }

    /* Energy waves hide on mobile */
    .energy-wave {
        display: none !important;
    }

    /* Full width buttons */
    a[style*="display: inline-flex"] {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Hide hero visual on small phones to prevent overlap */
    .hero-visual {
        display: none !important;
    }

    /* Center hero content */
    .hero-content {
        padding-left: 0 !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .hero-ctas {
        justify-content: center !important;
    }
}

/* ================================================
   PERFORMANCE OPTIMIZED CARD HOVER EFFECTS
   Uses CSS-only transforms for GPU acceleration
   ================================================ */

/* Base card styles - use will-change sparingly */
.hover-card {
    transition: transform 0.25s ease-out, border-color 0.25s ease-out, box-shadow 0.25s ease-out;
    will-change: transform;
}

.hover-card:hover {
    transform: translateY(-6px);
}

/* Purple cards */
.hover-card-purple {
    border: 1px solid rgba(108, 92, 231, 0.25);
}
.hover-card-purple:hover {
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
}

/* Cyan cards */
.hover-card-cyan {
    border: 1px solid rgba(0, 209, 255, 0.25);
}
.hover-card-cyan:hover {
    border-color: rgba(0, 209, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 209, 255, 0.15);
}

/* Green cards */
.hover-card-green {
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.hover-card-green:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

/* Yellow cards */
.hover-card-yellow {
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.hover-card-yellow:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.15);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hover-card,
    .hover-card-purple,
    .hover-card-cyan,
    .hover-card-green,
    .hover-card-yellow,
    .about-feature-card {
        transition: none !important;
    }
    .hover-card:hover,
    .about-feature-card:hover {
        transform: none !important;
    }
}

/* About Feature Cards - Smooth Hover */
.about-feature-card {
    will-change: transform;
}

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

/* Purple card hover */
.about-feature-card:first-child:hover {
    border-color: rgba(108, 92, 231, 0.45);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.12);
}

/* Cyan card hover */
.about-feature-card:nth-child(2):hover {
    border-color: rgba(0, 209, 255, 0.45);
    box-shadow: 0 20px 40px rgba(0, 209, 255, 0.12);
}

/* Green card hover */
.about-feature-card:nth-child(3):hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.12);
}
/* =========================================
   PREMIUM HOSTING CARDS VIP UI
   Applied globally across sub-pages
   ========================================= */
.pricing-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
}

@media (max-width: 900px) {
    .pricing-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .pricing-grid-premium {
        grid-template-columns: 1fr;
    }
}

.pricing-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pricing-card-premium:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card-premium.popular {
    border-color: rgba(108, 92, 231, 1);
    background: rgba(108, 92, 231, 0.03);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.1);
}

.pricing-card-premium.premium {
    border-color: rgba(0, 209, 255, 0.8);
    background: rgba(0, 209, 255, 0.03);
    box-shadow: 0 0 40px rgba(0, 209, 255, 0.1);
}

.pricing-card-premium.enterprise {
    border-color: rgba(46, 229, 157, 0.8);
    background: rgba(46, 229, 157, 0.03);
    box-shadow: 0 0 40px rgba(46, 229, 157, 0.1);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #6c5ce7;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 40px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.popular-badge.premium-badge { background: #00d1ff; }
.popular-badge.ent-badge { background: #2ee59d; }

.card-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.card-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    min-height: 22px;
}

.card-price {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-price .currency {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}
/* --- PRICING CARD PREMIUM (Global for VPS/MC/Web) --- */
.pricing-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.pricing-card-premium:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card-premium.popular {
    border-color: rgba(108, 92, 231, 1);
    background: rgba(108, 92, 231, 0.03);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.1);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #6c5ce7;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 8px 40px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.card-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
}

.card-price {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-price .currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6c5ce7;
}

@media (max-width: 640px) {
    .pricing-card-premium { padding: 1.8rem 1.4rem; } 
    .card-title { font-size: 1.3rem; }
}


.card-price .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.card-price .period {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
}

.card-features {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item .fi {
    width: 20px; height: 20px;
    color: #6c5ce7;
    flex-shrink: 0;
}

.feature-item .feat-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item .feat-text strong {
    color: #fff;
    font-weight: 600;
}

.btn-card-premium {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-card-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-card-premium.primary {
    background: linear-gradient(135deg, #6c5ce7, #00d1ff);
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.btn-card-premium.primary:hover {
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4);
    transform: translateY(-3px);
}

.btn-card-premium.primary.amd-btn {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}
.btn-card-premium.primary.amd-btn:hover {
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
    transform: translateY(-3px);
}

/* ========================================
   PREMIUM MOBILE IMPROVEMENTS - Home Page
   ======================================== */

/* Better container padding on mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    section {
        padding: 3.5rem 0;
    }
    .nav-content {
        height: 65px;
    }

    .premium-h2 {
        font-size: 1.75rem !important;
    }
    .premium-p {
        font-size: 0.95rem !important;
    }
    .feat-grid-primary {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    .feat-strip {
        grid-template-columns: 1fr !important;
    }
    .pricing-grid-premium {
        grid-template-columns: 1fr !important;
    }
    .review-card {
        width: 300px !important;
        min-width: 280px !important;
        max-width: 300px !important;
    }
    .review-card__surface {
        padding: 1.05rem 1.15rem !important;
    }
    .compare-row {
        grid-template-columns: 1fr !important;
    }
    .compare-feature {
        background: rgba(255,255,255,0.03) !important;
        font-weight: 700 !important;
    }
    .cta-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .cta-btn-primary,
    .cta-btn-secondary {
        text-align: center !important;
        justify-content: center !important;
    }
    .cta-trust {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .status-bar {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
        padding: 1rem !important;
    }
    .fab-container {
        bottom: 20px !important;
        right: 16px !important;
    }
    .fab-discord {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Tablet improvements */
@media (max-width: 768px) {
    .hero-layout {
        gap: 2rem !important;
    }
    .feat-grid-primary {
        grid-template-columns: 1fr !important;
    }
    .pricing-grid-premium {
        grid-template-columns: 1fr 1fr !important;
    }
    .hero-visual-main {
        transform: none !important;
    }
    .loc-split-layout {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .loc-list-side {
        flex: none !important;
        width: 100% !important;
    }
    .globe-container-premium {
        right: 0 !important;
        max-width: 100% !important;
        height: 350px !important;
    }
}

/* Scroll padding for anchor links */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Touch-friendly tap targets */
@media (hover: none) {
    .btn-primary-premium,
    .btn-outline-premium,
    .btn-card-premium,
    .cta-btn-primary,
    .cta-btn-secondary {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .feat-card-v2:hover,
    .pricing-card-premium:hover,
    .review-card:hover,
    body.home-page #features .grid.gap-8 > div:hover,
    body.home-page #plans .grid.gap-8 > div:hover {
        transform: none !important;
    }
}

/* ============================================================
   Home page (index) — typography rhythm, spacing, card system
   Requires body.home-page on index.html only
   ============================================================ */
body.home-page {
    text-rendering: optimizeLegibility;
}

/* Section vertical rhythm */
body.home-page section.relative.overflow-hidden.pt-36 {
    padding-top: clamp(6.5rem, 11vw, 9.5rem) !important;
    padding-bottom: clamp(3.75rem, 7vw, 6rem) !important;
}

body.home-page section.py-24 {
    padding-top: clamp(3.25rem, 5.5vw, 5rem) !important;
    padding-bottom: clamp(3.25rem, 5.5vw, 5rem) !important;
}

body.home-page .comp-section {
    padding-top: clamp(3.25rem, 5.5vw, 5rem) !important;
    padding-bottom: clamp(3.25rem, 5.5vw, 5rem) !important;
}

body.home-page .cta-premium {
    padding-top: clamp(3.5rem, 6vw, 5rem) !important;
    padding-bottom: clamp(4rem, 7vw, 5.5rem) !important;
}

/* Heading scale */
body.home-page h1.text-6xl {
    font-size: clamp(2.125rem, 4.8vw, 3.5rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
}

body.home-page h2.text-4xl {
    font-size: clamp(1.625rem, 2.85vw, 2.125rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.03em !important;
}

/* Hero lead — readable measure */
body.home-page section.relative p.text-xl.text-slate-400.max-w-lg {
    max-width: 38rem !important;
    font-size: clamp(1rem, 1.9vw, 1.125rem) !important;
    line-height: 1.65 !important;
    color: rgba(203, 213, 225, 0.92) !important;
}

/* Hero CTAs */
body.home-page section.relative a.bg-primary {
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.875rem 1.75rem !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 14px 44px -12px rgba(25, 120, 229, 0.5) !important;
}

body.home-page section.relative a.bg-surface-dark.border.border-border-dark {
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 1.75rem !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    color: #e2e8f0 !important;
}

body.home-page section.relative a.bg-surface-dark.border.border-border-dark:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
    background-color: rgba(22, 30, 39, 0.98) !important;
}

/* Quick stats — one shadow language, calmer hover (no blue ring) */
body.home-page .\-mt-12 .grid.gap-6 > div.rounded-2xl {
    border-radius: 1rem !important;
    border-color: rgba(35, 54, 72, 1) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 48px -28px rgba(0, 0, 0, 0.55) !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

body.home-page .\-mt-12 .grid.gap-6 > div.rounded-2xl:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 56px -26px rgba(0, 0, 0, 0.6) !important;
}

/* Feature cards — unified radius, subtler motion */
body.home-page #features .grid.gap-8 > div.group {
    border-radius: 1rem !important;
    padding: 2rem !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 22px 56px -30px rgba(0, 0, 0, 0.58) !important;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease !important;
}

body.home-page #features .grid.gap-8 > div.group:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(25, 120, 229, 0.32) !important;
    box-shadow:
        0 0 0 1px rgba(25, 120, 229, 0.18),
        0 28px 64px -28px rgba(25, 120, 229, 0.14) !important;
}

body.home-page #features .group .w-14.h-14.rounded-2xl {
    transition: transform 0.22s ease !important;
}

body.home-page #features .group:hover .w-14.h-14.rounded-2xl {
    transform: scale(1.04) !important;
}

/* Plan cards — consistent elevation */
body.home-page #plans .grid.gap-8 > div.rounded-3xl {
    border-radius: 1.25rem !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 26px 64px -30px rgba(0, 0, 0, 0.58) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

body.home-page #plans .grid.gap-8 > div.rounded-3xl:hover {
    transform: translateY(-4px) !important;
}

/* Comparison table frame */
body.home-page .comp-wrapper {
    border-radius: 1.25rem !important;
    box-shadow:
        0 28px 80px -24px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

/* Globe / network intro line length */
body.home-page section .max-w-2xl.text-slate-400 {
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem !important;
    line-height: 1.65 !important;
}
