/* GETIPV6.NET Styles */
/* Optimized for performance and SEO */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light Theme (default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-text: #1e40af;
    --success: #059669;
    --success-light: #d1fae5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.9);
    --hero-bg: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Dark Theme - Manual Override */
[data-theme="dark"] {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #141416;
    --bg-card-hover: #1c1c1f;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    --border-color: #27272a;
    --border-light: #1c1c1f;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: #1e3a5f;
    --accent-text: #93c5fd;
    --success: #10b981;
    --success-light: #064e3b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(10, 10, 11, 0.9);
    --hero-bg: linear-gradient(180deg, #111113 0%, #0a0a0b 100%);
}

/* Dark Theme - System Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0a0a0b;
        --bg-secondary: #111113;
        --bg-tertiary: #18181b;
        --bg-card: #141416;
        --bg-card-hover: #1c1c1f;
        --text-primary: #fafafa;
        --text-secondary: #a1a1aa;
        --text-tertiary: #71717a;
        --text-muted: #52525b;
        --border-color: #27272a;
        --border-light: #1c1c1f;
        --accent: #3b82f6;
        --accent-hover: #60a5fa;
        --accent-light: #1e3a5f;
        --accent-text: #93c5fd;
        --success: #10b981;
        --success-light: #064e3b;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
        --header-bg: rgba(10, 10, 11, 0.9);
        --hero-bg: linear-gradient(180deg, #111113 0%, #0a0a0b 100%);
    }
}

/* Light Theme - Manual Override */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-text: #1e40af;
    --success: #059669;
    --success-light: #d1fae5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.9);
    --hero-bg: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

html {
    scroll-behavior: smooth;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    display: none;
}

/* Header */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 48px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}

.logo {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: white;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover,
.nav-cta:focus {
    background: var(--accent-hover);
    color: white !important;
}

.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5865f2;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-discord svg {
    width: 20px;
    height: 20px;
}

.nav-discord:hover,
.nav-discord:focus {
    opacity: 0.75;
}

.mobile-discord {
    color: #5865f2 !important;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-discord {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-bottom: 8px;
}

.footer-discord a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5865f2;
    font-weight: 600;
    text-decoration: none;
}

.footer-discord a svg {
    width: 18px;
    height: 18px;
}

.footer-discord a:hover {
    text-decoration: underline;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.theme-toggle:focus-visible {
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

.header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-theme-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: background 0.2s;
}

/* Hero Section */
.hero {
    background: var(--hero-bg);
    padding: 160px 48px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

[data-theme="dark"] .network-canvas {
    opacity: 0.4;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .network-canvas {
        opacity: 0.4;
    }
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.hero-text p span {
    display: inline;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

[data-theme="dark"] .hero-text p span {
    background: rgba(10, 10, 11, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-text p span {
        background: rgba(10, 10, 11, 0.12);
    }
}

.hero-offer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.offer-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-offer .bundle-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-offer .price-tag {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.hero-offer .note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* LIR Services grid (hero) */
.hero-services {
    max-width: 1080px;
}

.services-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0 auto 32px;
    max-width: 720px;
    line-height: 1.6;
}

.services-note sup {
    color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    min-height: 156px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 10px;
}

.service-avail {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

[data-theme="dark"] .service-avail {
    color: #6ee7b7;
    background: #064e3b;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .service-avail {
        color: #6ee7b7;
        background: #064e3b;
    }
}

.service-avail::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-2px);
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.service-footer {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.service-apply {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.service-apply:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.service-price {
    text-align: right;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
}

.service-price .unit {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-tertiary);
}

.service-price sup {
    color: var(--accent);
}

.service-price .alt {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-primary:focus-visible {
    background: var(--accent-hover);
    transform: translateY(-1px);
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.offer-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: 20px;
    line-height: 1.5;
}

/* About Section */
.about {
    padding: 100px 48px;
    background: var(--bg-primary);
    transition: background 0.3s;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-align: center;
}

.about-content {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content strong {
    color: var(--text-primary);
}

/* Pricing Section */
.pricing {
    padding: 100px 48px;
    background: var(--bg-secondary);
    transition: background 0.3s;
}

.section-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 56px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tabs {
    display: inline-flex;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 48px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tab-btn:not(.active):hover,
.tab-btn:focus {
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover,
.pricing-card:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
}

.featured-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 12px;
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-card .card-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.pricing-card .price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card .price .currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-card .price .amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1;
}

.pricing-card .price .period {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-left: 4px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 5px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pricing-card ul li svg {
    width: 16px;
    height: 16px;
    fill: var(--success);
    flex-shrink: 0;
}

.btn-cart {
    width: 100%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

[data-theme="dark"] .btn-cart:not(.pricing-card.featured .btn-cart) {
    background: #27272a;
    border-color: #3f3f46;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-cart:not(.pricing-card.featured .btn-cart) {
        background: #27272a;
        border-color: #3f3f46;
    }
}

.btn-cart:hover,
.btn-cart:focus {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pricing-card.featured .btn-cart {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pricing-card.featured .btn-cart:hover,
.pricing-card.featured .btn-cart:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Benefits Section */
.benefits {
    padding: 100px 48px;
    background: var(--bg-secondary);
    transition: background 0.3s;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
}

.benefit-card:hover,
.benefit-card:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.benefit-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefit-card p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* FAQ Section */
.faq {
    padding: 100px 48px;
    background: var(--bg-secondary);
    transition: background 0.3s;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover,
.faq-item:focus-within {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-question:hover,
.faq-question:focus {
    color: var(--accent);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Reviews Section */
.reviews {
    padding: 100px 48px;
    background: var(--bg-primary);
    transition: background 0.3s;
}

.reviews-summary {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviews-stars {
    display: flex;
    gap: 4px;
}

.reviews-stars svg {
    width: 24px;
    height: 24px;
    fill: #fbbf24;
}

.reviews-score {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.reviews-count {
    font-size: 14px;
    color: var(--text-tertiary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.review-card:hover {
    border-color: var(--accent);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
}

.review-meta {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-stars svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Section */
.process {
    padding: 100px 48px;
    background: var(--bg-primary);
    transition: background 0.3s;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.process-step:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 18px;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.process-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 100px 48px;
    background: var(--bg-secondary);
    text-align: center;
    transition: background 0.3s;
}

.cta-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px 48px;
    box-shadow: var(--shadow-lg);
    transition: background 0.3s, border-color 0.3s;
}

.cta h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 48px;
    transition: background 0.3s, border-color 0.3s;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ripe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    padding: 5px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ripe-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ripe-badge:hover {
    opacity: 0.85;
}

[data-theme="dark"] .ripe-badge {
    color: #6ee7b7;
    background: #064e3b;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ripe-badge {
        color: #6ee7b7;
        background: #064e3b;
    }
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-contact {
    margin-top: 8px;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
}

.footer-contact a:hover,
.footer-contact a:focus {
    text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 100px 32px 32px;
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 14px 20px;
    }

    .nav-menu {
        display: none;
    }

    .header-actions {
        display: flex;
    }

    .mobile-theme-toggle {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-offer {
        padding: 28px 24px;
    }

    .hero-offer .price-tag {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about, .pricing, .benefits, .faq, .process, .cta {
        padding: 64px 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-grid::before {
        display: none;
    }

    .cta-container {
        padding: 40px 24px;
    }

    .cta h2 {
        font-size: 24px;
    }

    .footer {
        padding: 32px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }
}

/* Print styles */
@media print {
    .header, .network-canvas, .theme-toggle, .hamburger, .mobile-menu {
        display: none !important;
    }

    .hero {
        padding-top: 20px;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== Guides ===== */
.guides-page { max-width: 820px; margin: 0 auto; padding: 120px 24px 80px; }
.guide-breadcrumb { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }
.guide-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--accent); }
.guides-page h1 { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: var(--text-primary); margin-bottom: 12px; }
.guide-lead { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }
.guide-article h2 { font-size: 24px; font-weight: 700; color: var(--text-primary); margin: 40px 0 14px; letter-spacing: -0.3px; }
.guide-article h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 28px 0 10px; }
.guide-article p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.guide-article ul, .guide-article ol { margin: 0 0 18px 22px; color: var(--text-secondary); line-height: 1.8; }
.guide-article li { margin-bottom: 6px; }
.guide-article strong { color: var(--text-primary); }
.guide-article a { color: var(--accent); }
.guide-article code { background: var(--bg-tertiary); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.guide-note { background: var(--bg-secondary); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 18px 0; font-size: 15px; color: var(--text-secondary); }
.guide-note strong { color: var(--text-primary); }
.guide-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.guide-table th, .guide-table td { border: 1px solid var(--border-color); padding: 10px 12px; text-align: left; color: var(--text-secondary); }
.guide-table th { background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; }
.guide-cta { margin-top: 44px; padding: 24px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.guide-cta p { margin: 0; color: var(--text-secondary); font-weight: 600; }
.guide-cta .btn-primary, .guide-cta .btn-primary:hover { color: #fff; }
.guide-cta .btn-primary svg { stroke: #fff; }
.guide-back { display: inline-block; margin-top: 40px; color: var(--accent); text-decoration: none; font-weight: 600; }
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.guide-card-link { display: block; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.guide-card-link:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-card-link h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.guide-card-link p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.guide-tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-text); background: var(--accent-light); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 768px) {
    .guides-page { padding: 100px 18px 60px; }
    .guides-page h1 { font-size: 30px; }
    .guides-grid { grid-template-columns: 1fr; }
    .guide-table { display: block; overflow-x: auto; }
}
/* Homepage Guides section */
.guides-section { padding: 100px 48px; background: var(--bg-primary); transition: background 0.3s; }
.home-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto 36px; }
.home-guides-grid .guide-card-link h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.guides-more { text-align: center; }
@media (max-width: 768px) { .guides-section { padding: 64px 20px; } .home-guides-grid { grid-template-columns: 1fr; } }
/* One-time setup fee tag + tooltip */
.onetime-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 999px;
    cursor: help;
    white-space: nowrap;
}
.onetime-star {
    position: relative;
    cursor: help;
}
.onetime-tag::after,
.onetime-star::after {
    content: "One-time setup fee";
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: var(--shadow-md);
    z-index: 20;
}
.onetime-tag:hover::after,
.onetime-tag:focus::after,
.onetime-tag:focus-visible::after,
.onetime-tag.tooltip-open::after,
.onetime-star:hover::after,
.onetime-star:focus::after,
.onetime-star:focus-visible::after,
.onetime-star.tooltip-open::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* price asterisk sits at the card's right edge — right-anchor its tooltip so it stays in the viewport */
.onetime-star::after {
    left: auto;
    right: -6px;
    transform: translateY(4px);
}
.onetime-star:hover::after,
.onetime-star:focus::after,
.onetime-star:focus-visible::after,
.onetime-star.tooltip-open::after {
    transform: translateY(0);
}
/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 18px 20px;
    z-index: 9000;
    transform: translateY(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}
.cookie-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 14px;
}
.cookie-text a {
    color: var(--accent);
}
.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cookie-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-decline:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}
.cookie-accept {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.cookie-accept:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
@media (max-width: 768px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 96px; max-width: none; }
}
/* ASN qualification marker (hexagon) with its own tooltip */
.qualify-hex {
    position: relative;
    cursor: help;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-left: 3px;
}
.qualify-hex::after {
    content: "To qualify for an ASN you must have at least two upstream providers";
    position: absolute;
    bottom: calc(100% + 8px);
    left: -6px;
    width: 220px;
    white-space: normal;
    text-align: left;
    line-height: 1.45;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 11px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: var(--shadow-md);
    z-index: 20;
}
.qualify-hex:hover::after,
.qualify-hex:focus::after,
.qualify-hex:focus-visible::after,
.qualify-hex.tooltip-open::after {
    opacity: 1;
    transform: translateY(0);
}
/* Product legend / footnotes */
.services-legend {
    max-width: 1080px;
    margin: 22px auto 0;
    text-align: left;
}
.services-legend p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 2px 0;
}
.legend-mark {
    display: inline-block;
    min-width: 14px;
    color: var(--accent);
    font-weight: 700;
    margin-right: 4px;
}