/* ═══════════════════════════════════════════════════════════════════════
   CASACONDO HOST STARTER HUB — Step-by-Step Roadmap
   Aesthetic: Dark Luxury / Tech (Matches AI Concierge Theme)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables (from styles.css) ──────────────────────────────────── */
:root {
    --black: #0a0a0a;
    --black-light: #111111;
    --dark: #141414;
    --dark-mid: #1a1a1a;
    --dark-card: #161616;
    --dark-elevated: #1e1e1e;
    --cyan: #00f0ff;
    --cyan-light: #5cffff;
    --cyan-dim: #008899;
    --cyan-glow: rgba(0, 240, 255, 0.12);
    --cyan-glow-strong: rgba(0, 240, 255, 0.25);
    --silver: #c0c0c0;
    --silver-dim: #888888;
    --white: #f5f5f0;

    --text: #b0b0b0;
    --text-bright: #e8e8e3;
    --text-dim: #6a6a6a;

    --border: rgba(0, 240, 255, 0.1);
    --border-cyan: rgba(0, 240, 255, 0.25);
    --border-silver: rgba(192, 192, 192, 0.1);
    --glass: rgba(20, 20, 20, 0.7);
    --glass-strong: rgba(20, 20, 20, 0.9);

    --shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    --shadow-cyan: 0 0 40px rgba(0, 240, 255, 0.08);
    --shadow-hover: 0 8px 40px rgba(0, 240, 255, 0.15);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s var(--ease);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-color: var(--dark-mid) var(--black);
}

body.hub-page {
    font-family: var(--font);
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 80% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 100%, rgba(192, 192, 192, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-mid);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img,
svg {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text-bright);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-dim);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--r-full);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    color: var(--black);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45);
}

.btn-download {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-bright);
    font-size: 0.9rem;
    padding: 10px 20px;
    width: 100%;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-download.btn-dark {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    color: var(--black);
    border: none;
}

.btn-download.btn-dark:hover {
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* ── Navbar ────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
}

.logo-text span {
    color: var(--cyan);
    font-weight: 400;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.nav-link:hover {
    color: var(--cyan);
}

/* ── Hero Section ──────────────────────────────────────────────────── */
.hub-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 16px;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text);
    max-width: 650px;
}

/* ── Roadmap Section ───────────────────────────────────────────────── */
.roadmap-main {
    padding-bottom: 100px;
}

.roadmap-container {
    position: relative;
    padding-left: 20px;
}

/* ── Roadmap Steps ─────────────────────────────────────────────────── */
.roadmap-step {
    display: flex;
    margin-bottom: 80px;
    position: relative;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    margin-right: 40px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-elevated);
    border: 1px solid var(--border-cyan);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-display);
    box-shadow: 0 0 0 8px var(--black);
    flex-shrink: 0;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 240, 255, 0.3);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.step-line {
    width: 1px;
    background: linear-gradient(180deg, var(--border-cyan), transparent);
    flex-grow: 1;
    margin-top: 16px;
    margin-bottom: -96px;
}

/* Content Area inside step */
.step-content {
    flex-grow: 1;
    padding-top: 6px;
}

.step-header {
    margin-bottom: 32px;
    max-width: 650px;
}

.step-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--white);
}

.step-header p {
    font-size: 1.1rem;
    color: var(--text);
}

/* ── Download Cards Grid ───────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.download-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--r-xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.download-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--border-cyan);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.card-info {
    flex-grow: 1;
    margin-bottom: 24px;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Brand Colors for Icons ────────────────────────────────────────── */
.brand-spid {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.brand-suap {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.brand-ministero {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.brand-sinfonia {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.brand-casacondo {
    color: var(--cyan);
    background: var(--cyan-glow);
    border-color: var(--border-cyan);
}

/* Highlighted specific important cards */
.highlight-card {
    border-color: var(--border-cyan);
    background: rgba(0, 240, 255, 0.03);
}

.highlight-card .highlight {
    background: var(--cyan);
    color: var(--black);
    border-color: var(--cyan);
}

.highlight-card .brand-spid {
    background: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

/* ── Lead Capture Section ──────────────────────────────────────────── */
.lead-capture-section {
    padding: 100px 0;
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.lead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1040px;
    position: relative;
    z-index: 2;
}

.lead-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--white);
}

.lead-content p {
    font-size: 1.15rem;
    color: var(--text);
    max-width: 450px;
}

.lead-form {
    flex-grow: 1;
    max-width: 460px;
}

.email-input {
    width: 100%;
    padding: 20px 24px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-bright);
    outline: none;
    transition: var(--transition);
    margin-bottom: 16px;
}

.email-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.email-input::placeholder {
    color: var(--text-dim);
}

.lead-form .btn-primary {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: var(--r-lg);
}

.form-feedback {
    display: none;
    color: #22c55e;
    font-weight: 500;
    margin-top: 16px;
    font-size: 0.95rem;
}

/* ── B2B Upsell Banner ─────────────────────────────────────────────── */
.upsell-section {
    padding: 100px 24px;
}

.upsell-inner {
    background: linear-gradient(135deg, var(--dark-elevated), var(--dark-card));
    border: 1px solid var(--border-cyan);
    border-radius: 32px;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    box-shadow: var(--shadow-cyan);
    position: relative;
    overflow: hidden;
}

.upsell-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--cyan-glow) 0%, transparent 70%);
    pointer-events: none;
}

.upsell-text {
    position: relative;
    z-index: 2;
}

.upsell-text h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 16px;
}

.upsell-text p {
    color: var(--text);
    font-size: 1.2rem;
    max-width: 500px;
}

.btn-upsell {
    background: var(--white);
    color: var(--black);
    padding: 20px 40px;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.btn-upsell:hover {
    background: var(--cyan);
    transform: scale(1.05);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.hub-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--black-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-disclaimer p {
    color: var(--text-dim);
    font-size: 0.8rem;
    max-width: 500px;
    text-align: right;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 992px) {

    .lead-inner,
    .upsell-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .lead-form {
        max-width: 100%;
    }

    .upsell-inner {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .roadmap-container {
        padding-left: 0;
    }

    .step-indicator {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-disclaimer p {
        text-align: center;
    }

    .upsell-inner {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .upsell-text h2 {
        font-size: 2.2rem;
    }
}