/* =========================================
   TRADEVIA - REFINED | MODERN | SLEEK
   Design System: Fluid / Glass / Gradient
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* -- COLORS -- */
    --bg-pure-black: #050505;
    --bg-deep: #0A0A0A;

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    /* Slate-400 */
    --text-muted: #64748B;
    /* Slate-500 */

    /* Brand Gradient: Blue -> Cyan */
    /* Brand Gradient: Blue -> Cyan (Strict Range) */
    --brand-blue: #6199fd;
    --brand-cyan: #00d3f2;
    --gradient-brand: linear-gradient(135deg, #6199fd 0%, #00d3f2 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 211, 242, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    /* Cyan Glow */
    --gradient-rich: linear-gradient(135deg, #0f172a 0%, #0c4a6e 100%);
    /* Deep Slate to Cyan Dark */
    /* Deep Indigo/Purple */

    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-bg: var(--glass-surface);
    /* Added fallback */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Animation */
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* -- TYPOGRAPHY -- */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* -- SPACING -- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 48px;
    --space-4xl: 64px;
    --space-5xl: 80px;

    /* -- UTILS -- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --max-width: 1280px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-pure-black);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* -- TYPOGRAPHY -- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.text-display {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(to bottom, #FFFFFF 20%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

.text-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
}

.text-h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-lg {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.text-sm {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

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

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

.text-accent-cyan {
    color: var(--brand-cyan);
}

.text-white {
    color: white;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 8px var(--brand-cyan);
}

/* -- ICONS -- */
.icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 211, 242, 0.1);
    border: 1px solid rgba(0, 211, 242, 0.2);
    color: var(--brand-cyan);
    box-shadow: 0 0 20px -5px rgba(0, 211, 242, 0.3);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.glass-panel:hover .icon-glow {
    background: var(--brand-blue);
    color: white;
    box-shadow: 0 0 30px rgba(0, 211, 242, 0.5);
    border-color: transparent;
    transform: scale(1.1);
}

/* -- LAYOUT -- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.section-title-group {
    margin-bottom: var(--space-2xl);
    max-width: 800px;
}

/* -- COMPONENTS -- */

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--brand-blue);
    background: linear-gradient(135deg, #6199fd 0%, #00d3f2 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(97, 153, 253, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 211, 242, 0.5);
    filter: brightness(1.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Cards (Glassmorphism) */
.glass-panel {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.4s ease;
}

.glass-panel:hover {
    border-color: var(--glass-highlight);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Pricing Highlight */
/* Pricing Highlight - Holographic */
/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 4px;
    display: flex;
    position: relative;
    cursor: pointer;
}

.toggle-option {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-option.active {
    color: white;
    background: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(97, 153, 253, 0.3);
}

/* Holographic Pricing Card */
.pricing-holo {
    transform: scale(1.02);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%) padding-box,
        linear-gradient(135deg, #6199fd 0%, #00d3f2 100%) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px -10px rgba(0, 211, 242, 0.15);
    z-index: 10;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-holo:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 100px -20px rgba(0, 211, 242, 0.3);
}

.pricing-holo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d3f2, transparent);
    opacity: 0.5;
}

/* Feature List Refined */
.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    border-top: 1px solid var(--glass-border);
    padding-top: 32px;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-feature-item svg {
    color: var(--brand-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 211, 242, 0.3));
}

/* Nexus CTA (Refined) */
.cta-nexus {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(5, 5, 5, 1) 100%);
    padding: 120px 24px;
    text-align: center;
    border: 1px solid rgba(97, 153, 253, 0.2);
    box-shadow: inset 0 0 100px rgba(0, 211, 242, 0.05);
}

.cta-nexus::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6199fd, transparent);
    box-shadow: 0 0 30px rgba(97, 153, 253, 0.8);
    opacity: 0.7;
}

.cta-nexus-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: var(--brand-cyan);
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        opacity: 0.1;
        transform: translateX(-50%) scale(1);
    }

    to {
        opacity: 0.2;
        transform: translateX(-50%) scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-content {
    padding: 32px;
}

.check-circle {
    width: 20px;
    height: 20px;
    background: #06D6A0;
    /* Emerald/Mint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: black;
}

/* Rich CTA Banner */
/* Portal CTA Banner */
.cta-portal {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%),
        linear-gradient(to bottom, #0A0A0A, #000000);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(6, 182, 212, 0.05);
}

.cta-portal::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--space-lg);
}

.bento-col-1 {
    grid-column: span 1;
}

.bento-col-2 {
    grid-column: span 2;
}

.bento-col-3 {
    grid-column: span 3;
}

.bento-col-4 {
    grid-column: span 4;
}

.bento-row-2 {
    grid-row: span 2;
}

/* Feature List */
.feature-check-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--max-width);
    height: 60px;
    border-radius: 100px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
}

/* -- ANIMATIONS -- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.5s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.05s;
}

.delay-200 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.15s;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Grid Helper */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* Background decoration */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-brand);
    opacity: 0.15;
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 1024px) {

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

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

    .bento-col-1,
    .bento-col-2,
    .bento-col-3,
    .bento-col-4 {
        grid-column: span 2;
    }

    .text-display {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-col-1,
    .bento-col-2,
    .bento-col-3,
    .bento-col-4 {
        grid-column: span 1;
    }

    .nav {
        top: 0;
        width: 100%;
        border-radius: 0;
    }

    .nav-links {
        display: none;
    }

    .text-display {
        font-size: 3rem;
    }
}

/* -- FORMS -- */
.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 2px rgba(0, 211, 242, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

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

/* -- ACCORDION (FAQ) -- */
details.glass-accordion {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

details.glass-accordion:hover {
    border-color: var(--glass-highlight);
}

details.glass-accordion[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-highlight);
}

summary.glass-summary {
    cursor: pointer;
    padding: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

summary.glass-summary::-webkit-details-marker {
    display: none;
}

.glass-content {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

details.glass-accordion[open] .glass-content {
    border-top-color: var(--glass-border);
    padding-top: 16px;
}

/* -- FOOTER (Legacy Port) -- */
.footer-grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: var(--space-2xl);
    align-items: start;
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-col-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
}

.footer-meta {
    display: flex;
    gap: 24px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* -- FEATURES PAGE -- */
.sub-nav {
    position: sticky;
    top: 20px;
    z-index: 40;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    pointer-events: none;
    /* Let clicks pass through around it */
}

.sub-nav-glass {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 6px;
    pointer-events: auto;
    /* Re-enable clicks */
    display: flex;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sub-nav-link {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.sub-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.sub-nav-link.active {
    color: black;
    background: white;
}

.feature-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 120px;
}

.feature-bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.feature-bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
    .feature-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .feature-bento-grid {
        grid-template-columns: 1fr;
    }

    .sub-nav {
        display: none;
        /* Hide on mobile, maybe replace with burger if needed, but simple for now */
    }
}