@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@200;300;400;500&family=Orbitron:wght@300;400;500&display=swap');

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

body { font-family: 'Exo 2', sans-serif; background: #fff; overflow-x: hidden; }
html, body { height: 100%; }

/* ── WIDGET ─────────────────────────────────────────── */
.planet-widget {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000008;
    color: white;
}

#stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.info-panel { position: absolute; top: 80px; left: 50px; z-index: 10; }

.info-panel h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: opacity 0.4s ease;
}

.info-panel p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    max-width: 250px;
    line-height: 1.6;
    font-weight: 200;
    letter-spacing: 0.4px;
    transition: opacity 0.4s ease;
}

.stats {
    position: absolute;
    top: 80px;
    right: 50px;
    display: flex;
    gap: 50px;
    z-index: 10;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: opacity 0.4s ease;
}

.stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.side-description {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 260px;
}

.side-description h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 14px;
}

.side-description p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    font-weight: 200;
    letter-spacing: 0.4px;
}

/* ── ARC NAV ─────────────────────────────────────────── */
.planet-nav-arc {
    position: absolute;
    width: 700px;
    height: 700px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
}

.planet-btn {
    position: absolute;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.32);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    padding: 5px 8px;
    pointer-events: all;
    transition: color 0.25s ease;
    transform-origin: center center;
}

.planet-btn:hover  { color: rgba(255,255,255,0.8); }
.planet-btn.active { color: #fff; font-weight: 500; letter-spacing: 2.5px; }

/* ── PLANET ANCHOR ───────────────────────────────────── */
.planet-anchor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 700px;
    display: flex;
    justify-content: center;
    background: transparent;
    mix-blend-mode: screen;
}

.planet-image {
    width: 700px;
    height: 700px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: -280px;
    box-shadow: none;
    mix-blend-mode: screen;
    display: block;
    transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
}

.planet-image.changing {
    transform: scale(0.88) translateY(20px);
    opacity: 0;
}

/* ── CONTENT BELOW ───────────────────────────────────── */
.content-below {
    background: #0a0a14;
    padding: 100px 0 120px;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ── SECTION HEADER ─────────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 70px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-eyebrow {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.section-title em {
    font-style: normal;
    color: rgba(255,255,255,0.25);
}

.section-header-right {
    max-width: 320px;
    text-align: right;
}

.section-header-right p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
    font-weight: 200;
    letter-spacing: 0.3px;
}

/* ── PRICING CARDS ───────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: end;
}

.plan-card:nth-child(1) { padding-top: 28px; }
.plan-card:nth-child(2) { padding-top: 36px; }
.plan-card:nth-child(3) { padding-top: 44px; }
.plan-card:nth-child(4) { padding-top: 52px; }
.plan-card:nth-child(5) { padding-top: 62px; }

.plan-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.plan-card.featured {
    background: linear-gradient(160deg, #1a1a3e 0%, #0d0d20 100%);
    border-color: rgba(120,100,255,0.25);
    box-shadow: 0 8px 40px rgba(80,60,200,0.2);
}

.plan-card.featured:hover {
    border-color: rgba(140,120,255,0.5);
    box-shadow: 0 24px 70px rgba(80,60,200,0.35);
}

.plan-badge {
    display: inline-block;
    background: rgba(120,100,255,0.15);
    color: rgba(180,160,255,0.8);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(120,100,255,0.25);
    align-self: flex-start;
}

.plan-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 18px;
}

.plan-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.6rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 300;
    vertical-align: super;
    margin-right: 2px;
    color: rgba(255,255,255,0.5);
}

.plan-period {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 1px;
    margin-bottom: 28px;
}

.plan-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.plan-feature {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 200;
    letter-spacing: 0.3px;
}

.plan-feature::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.plan-card.featured .plan-feature { color: rgba(255,255,255,0.6); }
.plan-card.featured .plan-feature::before { background: rgba(160,140,255,0.6); }

/* ── CTA UNICO SOTTO LE CARD ────────────────────────── */
.cards-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.cards-cta-btn {
    display: inline-block;
    padding: 15px 52px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cards-cta-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.cards-cta-note {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.2);
    font-weight: 200;
    letter-spacing: 0.5px;
}

/* ── MARQUEE FEATURES ────────────────────────────────── */
.features-section {
    margin-top: 100px;
    padding-top: 70px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.features-header {
    margin-bottom: 52px;
}

.features-eyebrow {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 14px;
}

.features-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.features-title em {
    font-style: normal;
    color: rgba(255,255,255,0.22);
}

/* Righe marquee */
.marquee-row {
    overflow: hidden;
    margin-bottom: 12px;
    /* Fade sui bordi */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-row:last-child { margin-bottom: 0; }

.marquee-track {
    display: flex;
    width: max-content;
}

/* LTR = scorre verso sinistra */
.marquee-track[data-dir="ltr"] {
    animation: marquee-ltr 40s linear infinite;
}

/* RTL = scorre verso destra */
.marquee-track[data-dir="rtl"] {
    animation: marquee-rtl 44s linear infinite;
}

@keyframes marquee-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-inner {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}

/* Feature pill */
.feat-pill {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

.feat-pill:hover {
    transform: translateY(-3px);
}

.feat-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
}

.feat-lbl {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.62rem;
    font-weight: 200;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.3);
}

/* Color variants */
.feat-pill.accent-purple { border-color: rgba(120,100,255,0.2); background: rgba(120,100,255,0.06); }
.feat-pill.accent-purple .feat-val { color: rgba(180,160,255,0.9); }

.feat-pill.accent-blue { border-color: rgba(60,140,255,0.2); background: rgba(60,140,255,0.06); }
.feat-pill.accent-blue .feat-val { color: rgba(100,180,255,0.9); }

.feat-pill.accent-teal { border-color: rgba(40,200,180,0.18); background: rgba(40,200,180,0.05); }
.feat-pill.accent-teal .feat-val { color: rgba(60,210,190,0.9); }

.feat-pill.accent-amber { border-color: rgba(220,170,60,0.2); background: rgba(220,170,60,0.05); }
.feat-pill.accent-amber .feat-val { color: rgba(240,190,80,0.9); }

.feat-pill.accent-red { border-color: rgba(220,80,80,0.18); background: rgba(220,80,80,0.05); }
.feat-pill.accent-red .feat-val { color: rgba(255,120,100,0.9); }

/* ── COST CALCULATOR ────────────────────────────────── */
.calculator {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.calc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.calc-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.calc-eyebrow {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 10px;
}

.calc-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.42);
    font-weight: 200;
    letter-spacing: 0.3px;
    margin-top: 8px;
    line-height: 1.6;
}

.calc-result {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.calc-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
    transition: color 0.3s ease;
}

.calc-price span {
    font-size: 1.1rem;
    vertical-align: super;
    color: rgba(255,255,255,0.4);
    margin-right: 2px;
}

.calc-price-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Toggle giorno/mese */
.calc-period-toggle {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.calc-period-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.3);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.calc-period-btn.active {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

.calc-period-btn:hover:not(.active) { color: rgba(255,255,255,0.55); }

/* Slider */
.calc-slider-wrap {
    position: relative;
    margin-bottom: 18px;
}

.calc-track-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
    overflow: hidden;
}

.calc-track-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.15s ease, background 0.3s ease, box-shadow 0.3s ease;
}

input[type=range].calc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    position: relative;
    z-index: 2;
    cursor: pointer;
    outline: none;
}

input[type=range].calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 12px rgba(255,255,255,0.3), 0 0 30px rgba(255,255,255,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

input[type=range].calc-range:hover::-webkit-slider-thumb {
    box-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 50px rgba(255,255,255,0.2);
    transform: scale(1.15);
}

input[type=range].calc-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
    cursor: pointer;
}

.calc-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.calc-marker {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1.5px;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    text-align: center;
}

.calc-marker.active { color: rgba(255,255,255,0.7); }

.calc-marker::before {
    content: '';
    display: block;
    width: 1px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    margin: 0 auto 5px;
    transition: background 0.3s ease, height 0.3s ease;
}

.calc-marker.active::before {
    background: rgba(255,255,255,0.5);
    height: 12px;
}

.calc-gb-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2px;
    text-align: center;
    margin-top: 24px;
    transition: color 0.3s ease;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .section-header-right { text-align: left; }
}

@media (max-width: 900px) {
    .planet-image, .planet-anchor, .planet-nav-arc { width: 520px; height: 520px; }
    .planet-image { margin-bottom: -210px; }
    .info-panel h1 { font-size: 1.7rem; }
    .stat-value { font-size: 1.5rem; }
    .stats { gap: 28px; right: 24px; top: 60px; }
    .info-panel { left: 24px; top: 60px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2rem; }
    .calc-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .calc-result { align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
    .planet-image, .planet-anchor, .planet-nav-arc { width: 360px; height: 360px; }
    .planet-image { margin-bottom: -145px; }
    .cards { grid-template-columns: 1fr; }
    .content-inner { padding: 0 20px; }
}
