/* CDN Landing Page Styles - Extends Apple Dark Theme */

/* Hero */
.cdn-hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: #000;
    position: relative;
    overflow: hidden;
}

.cdn-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

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

.cdn-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #007aff;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.cdn-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cdn-hero-content .lead {
    font-size: 1.2rem;
    color: #86868b;
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Globe illustration — spinning orbits */
.cdn-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.cdn-globe-illustration {
    position: relative;
    width: 400px;
    height: 400px;
}

/* Orbiting rings */
.globe-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 122, 255, 0.18);
}

.orbit-outer {
    width: 380px;
    height: 380px;
    margin-top: -190px;
    margin-left: -190px;
    animation: orbit-spin 25s linear infinite;
}

.orbit-inner {
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
    border-color: rgba(88, 86, 214, 0.18);
    animation: orbit-spin 18s linear infinite reverse;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nodes on the orbits */
.orbit-node {
    position: absolute;
    top: -22px;
    left: 50%;
    margin-left: -22px;
    width: 44px;
    height: 44px;
    background: rgba(0, 122, 255, 0.12);
    border: 1px solid rgba(0, 122, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #3a9bff;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(0, 122, 255, 0.15);
}

/* Counter-rotate nodes so text stays upright */
.orbit-outer .orbit-node {
    animation: counter-spin 25s linear infinite;
}

.orbit-inner .orbit-node {
    animation: counter-spin 18s linear infinite reverse;
    background: rgba(88, 86, 214, 0.12);
    border-color: rgba(88, 86, 214, 0.35);
    color: #8e8ce6;
    box-shadow: 0 0 12px rgba(88, 86, 214, 0.15);
}

@keyframes counter-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Position opposite node at bottom of orbit */
.orbit-node.node-opposite {
    top: auto;
    bottom: -22px;
}

/* Center globe */
.globe-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(0, 122, 255, 0.06);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #007aff;
    opacity: 0.5;
}

/* Pricing Tiers */
.cdn-pricing-section {
    background: #000;
}

.cdn-tier-card {
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cdn-tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.2);
}

.cdn-tier-card.featured {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.05);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #007aff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.tier-icon {
    font-size: 2rem;
    color: #007aff;
    margin-bottom: 1rem;
}

.tier-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.tier-range {
    font-size: 0.9rem;
    color: #86868b;
    margin-bottom: 1.5rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
}

.tier-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #86868b;
}

.tier-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.tier-price .unit {
    font-size: 0.9rem;
    color: #86868b;
    font-weight: 400;
}

/* Calculator tier info */
.pricing-tiers-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-info-label {
    font-size: 0.9rem;
    color: #a1a1a6;
    margin-bottom: 0.75rem;
}

.tier-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tier-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.tier-info-range {
    color: #86868b;
}

.tier-info-price {
    color: #fff;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Menlo', monospace;
}

/* SSAI included badge on tier cards */
.tier-ssai-badge {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #34c759;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.tier-ssai-badge i {
    font-size: 0.75rem;
}

/* SSAI note in calculator */
.cdn-ssai-note {
    font-size: 0.9rem;
    color: #a1a1a6;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cdn-ssai-note i {
    color: #007aff;
    margin-right: 0.4rem;
}

/* Multi-provider calculator comparison */
.cdn-provider-comparison {
    margin-bottom: 0.5rem;
}

.cdn-provider-comparison .cost-item {
    margin-bottom: 1rem;
}

.cdn-provider-name {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    color: #d1d1d6;
    font-weight: 500;
}

.cdn-rate-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #a1a1a6;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Mono', 'Menlo', monospace;
}

.cdn-rate-badge.amtecco-rate {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    font-size: 0.8rem;
}

.cdn-provider-cost {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff375f;
    letter-spacing: -0.5px;
}

.cdn-provider-amtecco .cdn-provider-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.cdn-provider-amtecco .cdn-provider-cost {
    color: #0071e3;
    font-size: 1.3rem;
}

.cdn-provider-amtecco {
    background: rgba(0, 122, 255, 0.04);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 1rem 0;
    margin-top: 0.5rem;
}

.cdn-provider-comparison .apple-bar-container {
    margin-bottom: 0.75rem;
}

/* Protocol cards */
.cdn-protocol-card {
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cdn-protocol-card:hover {
    transform: translateY(-4px);
}

.protocol-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.protocol-hls .protocol-icon { background: rgba(0, 122, 255, 0.12); color: #007aff; }
.protocol-dash .protocol-icon { background: rgba(52, 199, 89, 0.12); color: #34c759; }
.protocol-cmaf .protocol-icon { background: rgba(175, 82, 222, 0.12); color: #af52de; }
.protocol-ssai .protocol-icon { background: rgba(255, 149, 0, 0.12); color: #ff9500; }

.protocol-hls:hover { border-color: rgba(0, 122, 255, 0.3); }
.protocol-dash:hover { border-color: rgba(52, 199, 89, 0.3); }
.protocol-cmaf:hover { border-color: rgba(175, 82, 222, 0.3); }
.protocol-ssai:hover { border-color: rgba(255, 149, 0, 0.3); }

.cdn-protocol-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cdn-protocol-card p {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0;
    line-height: 1.5;
}

/* Comparison table amtecco column highlight */
.amtecco-column {
    background: rgba(0, 122, 255, 0.05) !important;
}

.amtecco-value {
    color: #34c759;
    font-weight: 500;
}

/* FAST section */
.cdn-fast-section {
    background: #000;
}

.cdn-fast-card {
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cdn-fast-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 149, 0, 0.2);
}

.fast-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.cdn-fast-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cdn-fast-card p {
    color: #86868b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.cdn-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cdn-faq-item {
    background: rgba(30, 30, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.cdn-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cdn-faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cdn-faq-question i {
    color: #86868b;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.cdn-faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.cdn-faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #86868b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
    .cdn-hero-content h1 {
        font-size: 2.5rem;
    }

    .cdn-hero-visual {
        min-height: 320px;
        margin-top: 2rem;
    }

    .cdn-globe-illustration {
        width: 300px;
        height: 300px;
    }

    .orbit-outer {
        width: 280px;
        height: 280px;
        margin-top: -140px;
        margin-left: -140px;
    }

    .orbit-inner {
        width: 190px;
        height: 190px;
        margin-top: -95px;
        margin-left: -95px;
    }
}

@media (max-width: 767px) {
    .cdn-hero-section {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .cdn-hero-content h1 {
        font-size: 2rem;
    }

    .cdn-hero-visual {
        display: none;
    }

    .tier-price .amount {
        font-size: 2rem;
    }
}
