/* ============================================================
   SpinMac CN — Pricing Page Styles
   Design: blue-corporate editorial (matches index.html)
   Nav / footer styles handled by components.js — not here.
   ============================================================ */

:root {
    --tc-blue:       #0052D9;
    --tc-blue-dark:  #003399;
    --tc-blue-pale:  #7eb3ff;
    --tc-dark:       #1A1C1F;
    --tc-dark-panel: #24272C;
    --tc-gray-bg:    #F4F5F7;
    --tc-text-main:  #111111;
    --tc-text-muted: #7A828A;
    --tc-border:     #E8EBEF;

    --font-family: 'Inter', "PingFang SC", "Microsoft YaHei",
                   -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width:   1400px;
    --nav-height:  64px;
    --transition:  all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-family);
    color: var(--tc-text-main);
    background-color: #fff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ---- Layout ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot::after { animation: none; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--font-family);
    transition: var(--transition);
}
.btn-primary             { background-color: var(--tc-blue); color: #fff; }
.btn-primary:hover       { background-color: var(--tc-blue-dark); box-shadow: 0 8px 20px rgba(0,82,217,0.2); }
.btn-outline             { border-color: var(--tc-text-main); color: var(--tc-text-main); background: transparent; }
.btn-outline:hover       { background: var(--tc-text-main); color: #fff; }
.btn-outline-light       { border: 1px solid rgba(255,255,255,0.45); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--tc-blue); }

/* ---- Section label + title ---- */
.section-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tc-blue);
    margin-bottom: 16px;
}
.section-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--tc-text-main);
}
.section-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--tc-text-muted);
    line-height: 1.8;
    max-width: 560px;
}

/* ---- Arrow text link ---- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 300;
    color: var(--tc-text-main);
}
.link-arrow::after {
    content: '→';
    margin-left: 8px;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
}
.link-arrow:hover            { color: var(--tc-blue); }
.link-arrow:hover::after     { transform: translateX(5px); }
.link-arrow.light            { color: #fff; }
.link-arrow.light:hover      { color: rgba(255,255,255,0.7); }

/* ============================================================
   1. HERO — dark photo backdrop, left-aligned copy
   ============================================================ */
.hero {
    padding-top:    calc(var(--nav-height) + 110px);
    padding-bottom: 230px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-image: url('../../resources/image/pricing-hero-datacenter.jpg');
    background-size: cover;
    background-position: 62% center;
    background-color: #080c18;
}

/* Dark gradient — heavy on left for legibility */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(6, 10, 28, 0.97) 0%,
        rgba(6, 10, 28, 0.93) 30%,
        rgba(6, 10, 28, 0.70) 52%,
        rgba(6, 10, 28, 0.28) 72%,
        rgba(6, 10, 28, 0.06) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Blue brand accent glow — lower-left */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 65% at 4% 100%,
        rgba(0, 82, 217, 0.25) 0%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.50);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.pulse-dot {
    position: relative;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tc-blue);
    box-shadow: 0 0 10px rgba(0,82,217,0.9);
    flex-shrink: 0;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--tc-blue-pale);
    animation: pulse-expand 2.4s ease-out infinite;
}
@keyframes pulse-expand {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(2.8); opacity: 0; }
    100% { transform: scale(2.8); opacity: 0; }
}

.hero h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 24px;
    line-height: 1.15;
}
.hero h1 em {
    font-style: normal;
    color: var(--tc-blue-pale);
}

.hero-sub {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.72;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.85;
}

/* Starting-price display */
.hero-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.price-from-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.price-big {
    font-size: 60px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--tc-blue-pale);
}
.price-per {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
}

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

/* Bottom trust strip */
.hero-trust {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    z-index: 3;
}
.hero-trust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.40);
}
.trust-item svg { color: var(--tc-blue-pale); flex-shrink: 0; }
.trust-sep {
    width: 1px; height: 14px;
    background: rgba(255,255,255,0.10);
}

/* ============================================================
   2. PERIOD PRICING CARDS
   ============================================================ */
.price-section { background: #fff; padding: 120px 0 100px; }

.price-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 24px;
}
.nodes-same-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--tc-border);
    background: var(--tc-gray-bg);
    font-size: 13px;
    font-weight: 300;
    color: var(--tc-text-muted);
    white-space: nowrap;
}
.nodes-same-pill svg { color: var(--tc-blue); flex-shrink: 0; }
.nodes-same-pill strong { color: var(--tc-blue); font-weight: 600; }

.price-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.price-card {
    border: 1.5px solid var(--tc-border);
    position: relative;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,82,217,0.08), 0 4px 12px rgba(0,0,0,0.04);
    border-color: rgba(0,82,217,0.25);
}
.price-card.featured {
    border-color: var(--tc-blue);
    background: var(--tc-dark);
    box-shadow: 0 8px 32px rgba(0,82,217,0.15);
}
.price-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0,82,217,0.22);
}

.pc-badge {
    position: absolute;
    top: -1px; right: 20px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pc-badge-popular { background: var(--tc-blue); color: #fff; }
.pc-badge-value   {
    background: var(--tc-gray-bg);
    color: var(--tc-blue);
    border: 1px solid rgba(0,82,217,0.18);
}

.pc-inner { padding: 36px 28px 32px; }

.pc-period {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.price-card:not(.featured) .pc-period { color: var(--tc-text-muted); }
.price-card.featured .pc-period       { color: rgba(255,255,255,0.38); }

.pc-price {
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 8px;
}
.price-card:not(.featured) .pc-price { color: var(--tc-text-main); }
.price-card.featured .pc-price       { color: var(--tc-blue-pale); }

.pc-per-day {
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 28px;
}
.price-card:not(.featured) .pc-per-day { color: var(--tc-text-muted); }
.price-card.featured .pc-per-day       { color: rgba(255,255,255,0.28); }

.pc-divider {
    height: 1px;
    margin-bottom: 24px;
}
.price-card:not(.featured) .pc-divider { background: var(--tc-border); }
.price-card.featured .pc-divider       { background: rgba(255,255,255,0.08); }

.pc-features { display: flex; flex-direction: column; gap: 12px; }
.pc-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 300;
}
.price-card:not(.featured) .pc-feature { color: var(--tc-text-muted); }
.price-card.featured .pc-feature       { color: rgba(255,255,255,0.50); }

.pc-check {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.price-card:not(.featured) .pc-check {
    background: rgba(0,82,217,0.08);
    color: var(--tc-blue);
}
.price-card.featured .pc-check {
    background: rgba(0,82,217,0.20);
    color: var(--tc-blue-pale);
}

/* Full-width CTA bar beneath cards */
.price-cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 48px;
    background: var(--tc-dark);
    border-top: 2px solid var(--tc-blue);
}
.price-cta-from {
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.28);
    margin-bottom: 8px;
}
.price-cta-amount {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--tc-blue-pale);
    line-height: 1;
    margin-bottom: 8px;
}
.price-cta-note {
    font-size: 13px;
    color: rgba(255,255,255,0.28);
    font-weight: 300;
}
.price-cta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
.pricing-note-muted {
    font-size: 12px;
    color: rgba(255,255,255,0.22);
    font-weight: 300;
}

/* ============================================================
   3. ADD-ON PRICING TABLE
   ============================================================ */
.addon-section { background: var(--tc-gray-bg); padding: 100px 0; }

.addon-head {
    margin-bottom: 60px;
}
.addon-table-wrap {
    overflow-x: auto;
}
.addon-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--tc-text-main);
}
.addon-table th {
    padding: 20px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tc-text-muted);
    text-align: left;
    background: var(--tc-gray-bg);
    border-bottom: 1px solid var(--tc-border);
}
.addon-table td {
    padding: 28px;
    font-size: 16px;
    font-weight: 300;
    text-align: left;
    background: #fff;
    border-bottom: 1px solid var(--tc-border);
    vertical-align: middle;
}
.addon-table tr:last-child td { border-bottom: none; }
.addon-table td.price-cell {
    color: var(--tc-blue);
    font-size: 20px;
    white-space: nowrap;
}
.addon-name { font-weight: 400; font-size: 16px; margin-bottom: 4px; }
.addon-desc {
    font-size: 13px;
    color: var(--tc-text-muted);
    font-weight: 300;
}

/* ============================================================
   4. HARDWARE SPECS
   ============================================================ */
.specs-section { background: #fff; padding: 120px 0; }

.specs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.specs-img-side {
    display: flex;
    align-items: center;
    justify-content: center;
}
.specs-img-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
}
.specs-img-bg {
    position: absolute;
    inset: -20px -10px -40px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 80%, rgba(0,82,217,0.08) 0%, transparent 68%);
    filter: blur(24px);
    pointer-events: none;
}
.specs-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,0.10));
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 48px;
    border: 1px solid var(--tc-border);
    overflow: hidden;
}
.spec-cell {
    background: var(--tc-gray-bg);
    padding: 24px 20px;
    border-right: 1px solid var(--tc-border);
    border-bottom: 1px solid var(--tc-border);
}
.spec-cell:nth-child(even)         { border-right: none; }
.spec-cell:nth-last-child(-n+2)    { border-bottom: none; }

.spec-key {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tc-text-muted);
    margin-bottom: 8px;
}
.spec-val {
    font-size: 22px;
    font-weight: 300;
    color: var(--tc-text-main);
    margin-bottom: 4px;
}
.spec-hint {
    font-size: 11px;
    color: var(--tc-text-muted);
    font-weight: 300;
}

/* ============================================================
   5. GLOBAL NODES
   ============================================================ */
.nodes-section {
    background: var(--tc-dark);
    color: #fff;
    padding: 120px 0;
}
.nodes-head { text-align: center; margin-bottom: 64px; }
.nodes-head .section-label { color: rgba(255,255,255,0.35); }
.nodes-head .section-title { color: #fff; }
.nodes-head .section-desc  { color: rgba(255,255,255,0.38); margin: 0 auto; max-width: 520px; }

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.node-card {
    background: var(--tc-dark-panel);
    padding: 36px 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.node-card:hover { transform: translateY(-4px); background: #2D3136; }

.node-flag  { font-size: 2.4rem; line-height: 1; margin-bottom: 16px; }
.node-name  { font-size: 14px; font-weight: 400; color: #fff; margin-bottom: 6px; }
.node-city  { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.node-price-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid rgba(0,82,217,0.38);
    background: rgba(0,82,217,0.10);
    font-size: 11px;
    font-weight: 400;
    color: var(--tc-blue-pale);
    letter-spacing: 1px;
}

.nodes-same-note {
    margin-top: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.28);
}
.nodes-same-note svg { color: var(--tc-blue-pale); }

/* ============================================================
   6. FEATURE ADVANTAGES
   ============================================================ */
.features-section { background: #fff; padding: 120px 0; }
.features-head { text-align: center; margin-bottom: 64px; }
.features-head .section-desc { margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feat-card {
    padding: 40px 32px;
    border: 1px solid var(--tc-border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,82,217,0.20);
    box-shadow: 0 16px 40px rgba(0,82,217,0.06);
}
.feat-icon {
    width: 48px; height: 48px;
    background: rgba(0,82,217,0.06);
    border: 1px solid rgba(0,82,217,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-blue);
    margin-bottom: 24px;
}
.feat-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--tc-text-main);
    margin-bottom: 12px;
}
.feat-desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--tc-text-muted);
    font-weight: 300;
}

/* ============================================================
   7. FINAL CTA
   ============================================================ */
.final-section { background: var(--tc-gray-bg); padding: 120px 0; text-align: center; }
.final-inner { max-width: 700px; margin: 0 auto; }

.final-h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--tc-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}
.final-desc {
    font-size: 16px;
    line-height: 1.85;
    color: var(--tc-text-muted);
    font-weight: 300;
    margin-bottom: 48px;
}
.final-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.payment-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-row-label {
    font-size: 12px;
    color: var(--tc-text-muted);
    font-weight: 300;
}
.payment-row-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.payment-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--tc-text-muted);
    padding: 3px 8px;
    border: 1px solid var(--tc-border);
}
.payment-badge:hover { color: var(--tc-blue); border-color: rgba(0,82,217,0.25); }

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .price-section-head { flex-direction: column; align-items: flex-start; }
    .price-cards { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .specs-layout { grid-template-columns: 1fr; gap: 40px; }
    .nodes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .container, .wrap { padding: 0 20px; }
    .hero { background-position: 70% center; }
    .hero h1 { font-size: 42px; letter-spacing: 2px; }
    .hero-sub { font-size: 16px; }
    .hero-trust-inner { padding: 0 20px; gap: 12px; }
    .trust-sep { display: none; }
    .price-cards { grid-template-columns: 1fr; }
    .price-cta-row { flex-direction: column; text-align: center; }
    .price-cta-right { align-items: center; }
    .addon-table th,
    .addon-table td { padding: 16px; }
    .addon-table td.price-cell { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .nodes-grid { grid-template-columns: repeat(2, 1fr); }
    .final-h2 { font-size: 36px; }
    .hero { padding-bottom: 180px; }
    .price-big { font-size: 44px; }
    .price-cta-amount { font-size: 36px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 34px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .nodes-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-grid { grid-template-columns: 1fr; }
    .spec-cell:nth-child(even)      { border-right: none; }
    .spec-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--tc-border); }
    .spec-cell:last-child           { border-bottom: none; }
}
