/* ============================================
   CollabSignal Landing Page — Premium Pastel Dark Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
    /* Base background */
    --bg: #090614;

    /* Surface colors with glassmorphism */
    --surface: rgba(20, 16, 36, 0.4);
    --surface-hover: rgba(40, 32, 60, 0.6);
    --surface-border: rgba(255, 255, 255, 0.06);
    --surface-border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --text-primary: #FFFFFF;
    --text-secondary: #A5A1B8;
    --text-muted: #6B6680;

    /* Pastel Palette */
    --pastel-pink: #FFB5A7;
    --pastel-blue: #A2D2FF;
    --pastel-mint: #BDE0FE;
    --pastel-purple: #CDB4DB;
    --pastel-yellow: #FCF6BD;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    --gradient-secondary: linear-gradient(135deg, var(--pastel-pink), var(--pastel-yellow));
    --gradient-text: linear-gradient(135deg, #FFFFFF 0%, var(--pastel-blue) 50%, var(--pastel-purple) 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Glows */
    --glow-blue: rgba(162, 210, 255, 0.4);
    --glow-pink: rgba(255, 181, 167, 0.4);
    --glow-purple: rgba(205, 180, 219, 0.3);

    /* Fonts */
    --font-sans: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --nav-h: 80px;
    --max-w: 1200px;
    --section-py: clamp(80px, 12vw, 160px);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Orbs */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-blue);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--glow-purple);
    top: 20%;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: var(--glow-pink);
    bottom: -300px;
    left: 20%;
    animation-delay: -10s;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

.text-gradient {
    background: var(--gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-pastel-blue {
    color: var(--pastel-blue);
}

.text-pastel-pink {
    color: var(--pastel-pink);
}

.text-pastel-mint {
    color: var(--pastel-mint);
}

.text-pastel-purple {
    color: var(--pastel-purple);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--section-py) 0;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--pastel-blue);
    margin-bottom: 20px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(162, 210, 255, 0.1);
    border: 1px solid rgba(162, 210, 255, 0.2);
    border-radius: 100px;
}

.section-title {
    margin-bottom: 24px;
}

.section-subtitle {
    max-width: 680px;
    margin-bottom: 64px;
    font-size: 1.25rem;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg);
    border: none;
    box-shadow: 0 8px 32px var(--glow-blue);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 48px var(--glow-blue);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--pastel-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(205, 180, 219, 0.15);
}

.btn-sm {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(9, 6, 20, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.4s;
}

.nav.scrolled {
    background: rgba(9, 6, 20, 0.85);
    border-bottom-color: var(--surface-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.nav-logo img {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ---- Hero ---- */
.hero {
    padding-top: calc(var(--nav-h) + 100px);
    padding-bottom: var(--section-py);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.hero p {
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.35rem;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 32px 48px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Glass Cards ---- */
.card {
    background: var(--gradient-glass);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(162, 210, 255, 0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* ---- Problem Section ---- */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    align-items: center;
}

.problem-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem-item {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 24px 32px;
    transition: transform 0.3s;
}

.problem-col.old .problem-item {
    border-left: 4px solid rgba(255, 181, 167, 0.6);
    opacity: 0.7;
}

.problem-col.new .problem-item {
    border-left: 4px solid var(--pastel-mint);
    background: rgba(189, 224, 254, 0.03);
    box-shadow: 0 8px 32px rgba(189, 224, 254, 0.05);
}

.problem-item:hover {
    transform: scale(1.02);
}

.problem-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-purple);
    font-size: 2.5rem;
    opacity: 0.5;
}

.problem-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.problem-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ---- How It Works (Steps) ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps::after {
    content: '';
    position: absolute;
    top: 48px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pastel-purple), transparent);
    opacity: 0.3;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2rem;
    font-weight: 800;
    background: var(--bg);
    border: 2px solid var(--pastel-purple);
    color: var(--pastel-purple);
    box-shadow: 0 0 32px rgba(205, 180, 219, 0.2);
    position: relative;
}

.step h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.step p {
    font-size: 1.05rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Metrics ---- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.metric-card p {
    font-size: 0.95rem;
}

/* ---- Comparison Table ---- */
.comparison-wrapper {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 1px;
    overflow: hidden;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg);
    border-radius: 23px;
}

.comparison-table th,
.comparison-table td {
    padding: 24px;
    border-bottom: 1px solid var(--surface-border);
    font-size: 1.05rem;
}

.comparison-table th {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-col {
    background: rgba(162, 210, 255, 0.05);
    position: relative;
}

.comparison-table .highlight-col::after {
    content: '';
    position: absolute;
    inset: 0;
    border-left: 1px solid rgba(162, 210, 255, 0.1);
    border-right: 1px solid rgba(162, 210, 255, 0.1);
    pointer-events: none;
}

.comparison-table .check {
    color: var(--pastel-mint);
    font-weight: 700;
}

.comparison-table .cross {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.pricing-card {
    text-align: center;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: rgba(205, 180, 219, 0.5);
    background: linear-gradient(145deg, rgba(205, 180, 219, 0.05) 0%, rgba(20, 16, 36, 0.8) 100%);
    box-shadow: 0 0 60px rgba(205, 180, 219, 0.15);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.07);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.pricing-card.featured h3 {
    color: var(--pastel-purple);
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 24px 0 8px;
    letter-spacing: -0.04em;
}

.pricing-card .price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card .price-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-border);
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✦';
    color: var(--pastel-mint);
    font-size: 1.2rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ---- CTA ---- */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.cta-box {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 40px;
    padding: 80px 40px;
    position: relative;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(circle at 50% 0%, rgba(162, 210, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-form {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 520px;
    margin: 48px auto 0;
    position: relative;
    z-index: 2;
}

.cta-form input {
    flex: 1;
    padding: 18px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.cta-form input:focus {
    border-color: var(--pastel-blue);
    box-shadow: 0 0 20px rgba(162, 210, 255, 0.2);
}

.cta-form input::placeholder {
    color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 64px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--pastel-pink);
}

/* ---- Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Responsive */
@media (max-width: 1000px) {

    .grid-3,
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: scale(1.02);
    }

    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .grid-3,
    .metrics-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .steps::after {
        display: none;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .problem-arrow {
        transform: rotate(90deg);
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form button {
        width: 100%;
    }
}