/* cbdc.studio - Corporate Gradient SaaS + Holographic 3D Product */
/* Palette: #0f0b1e, #f8f9fa, #1a0a3e, #0ea5e9, #8b5cf6, #3b82f6, #ffffff, #1e293b, #e2e8f0, #c5a03f, #8b6914 */

:root {
    --bg-dark: #0f0b1e;
    --bg-light: #f8f9fa;
    --grad-start: #1a0a3e;
    --grad-end: #0ea5e9;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --card: #ffffff;
    --text-dark: #1e293b;
    --text-light: #e2e8f0;
    --coin-gold: #c5a03f;
    --coin-gold-dark: #8b6914;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================== Glass Nav ==================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(15, 11, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.glass-nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(226, 232, 240, 0.9);
}

/* ==================== Gradient Text ==================== */
.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Hero ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(at 20% 30%, rgba(139, 92, 246, 0.25), transparent 50%),
        radial-gradient(at 80% 60%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(at 50% 80%, rgba(14, 165, 233, 0.1), transparent 40%),
        linear-gradient(135deg, var(--grad-start), var(--bg-dark));
    padding: 2rem;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(139, 92, 246, 0.18);
    top: 8%;
    left: 8%;
    animation: orbPulse1 8s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(59, 130, 246, 0.14);
    bottom: 15%;
    right: 12%;
    animation: orbPulse2 10s ease-in-out infinite;
}

.orb-hero-extra {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.1);
    top: 50%;
    left: 60%;
    animation: orbPulse3 12s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.12);
    top: 15%;
    right: 15%;
    animation: orbPulse1 9s ease-in-out infinite;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.1);
    bottom: 20%;
    left: 10%;
    animation: orbPulse2 11s ease-in-out infinite;
}

@keyframes orbPulse1 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
    50% { transform: scale(1.15) translate(20px, -15px); opacity: 0.7; }
}

@keyframes orbPulse2 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
    50% { transform: scale(1.1) translate(-15px, 20px); opacity: 0.6; }
}

@keyframes orbPulse3 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
    50% { transform: scale(1.2) translate(10px, 10px); opacity: 0.5; }
}

/* Hero Title */
.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    text-align: center;
    line-height: 1.15;
    margin-bottom: 3rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

/* Hero fade-in */
.fade-in-hero {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 3D Coin ==================== */
.coin-3d {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #c5a03f, #8b6914 70%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(139, 92, 246, 0.12),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(800px) rotateY(15deg) rotateX(-5deg);
    margin-bottom: 2.5rem;
    transition: transform 0.15s ease-out;
    position: relative;
    overflow: hidden;
}

.coin-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.08), transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: coinShine 6s linear infinite;
    pointer-events: none;
}

@keyframes coinShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.coin-inner {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.coin-sm {
    width: 90px;
    height: 90px;
}

.coin-inner-sm {
    font-size: 1.3rem;
}

/* Pill Button */
.pill-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.35);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pill-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: pillShimmer 3s ease-in-out infinite;
}

@keyframes pillShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.pill-btn:hover {
    box-shadow: 0 16px 45px rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

/* ==================== Section Divider ==================== */
.section-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==================== Feature Sections ==================== */
.feature-section {
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}

.feature-dark {
    background:
        radial-gradient(at 30% 50%, rgba(139, 92, 246, 0.06), transparent 50%),
        var(--bg-dark);
}

.feature-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.dot-grid {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.feature-row {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.row-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Badges */
.feature-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.badge-blue {
    background: linear-gradient(135deg, var(--blue), var(--grad-end));
}

.badge-new {
    background: linear-gradient(135deg, #10b981, var(--blue));
}

/* Feature Titles */
.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.ft-dark {
    color: var(--text-dark);
}

/* Feature Body */
.feature-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.65);
}

.fb-dark {
    color: rgba(30, 41, 59, 0.65);
}

/* ==================== Floating Cards ==================== */
.floating-card {
    background: var(--card);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
    width: 290px;
    transform: perspective(800px) rotateY(-5deg) rotateX(3deg);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.floating-card:hover {
    box-shadow: 0 35px 70px rgba(139, 92, 246, 0.22);
    transform: perspective(800px) rotateY(-3deg) rotateX(1deg) translateY(-6px);
}

.fc-tilt {
    transform: perspective(800px) rotateY(5deg) rotateX(-3deg);
}

.fc-tilt:hover {
    box-shadow: 0 35px 70px rgba(139, 92, 246, 0.22);
    transform: perspective(800px) rotateY(3deg) rotateX(-1deg) translateY(-6px);
}

/* Card internals */
.card-header {
    height: 12px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    border-radius: 6px;
    margin-bottom: 1.2rem;
}

.card-row {
    height: 8px;
    background: #ececec;
    border-radius: 4px;
    margin-bottom: 0.65rem;
}

.card-row-short {
    width: 60%;
}

.card-metric {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--text-dark);
    line-height: 1;
}

.metric-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(30, 41, 59, 0.45);
}

.card-label {
    font-size: 0.8rem;
    color: rgba(30, 41, 59, 0.45);
    margin: 0.5rem 0 1.2rem;
}

.card-bar {
    height: 6px;
    background: #ececec;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.animated {
    width: 75%;
}

/* Code card */
.card-code {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.code-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-dark);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.code-line.typed {
    opacity: 1;
    transform: translateX(0);
}

.code-key {
    color: var(--purple);
}

/* ==================== Platform Section ==================== */
.platform-section {
    padding: 7rem 2rem;
    background:
        radial-gradient(at 50% 30%, rgba(139, 92, 246, 0.12), transparent 50%),
        radial-gradient(at 20% 70%, rgba(59, 130, 246, 0.06), transparent 40%),
        var(--bg-dark);
    text-align: center;
}

.platform-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

.platform-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.18);
    transform: perspective(800px) rotateX(5deg);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card.flat {
    transform: perspective(800px) rotateX(0deg);
}

.pc-sidebar {
    width: 60px;
    background: var(--bg-dark);
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    padding-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.pc-sidebar.alive {
    opacity: 1;
}

.pc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transition: background 0.4s ease;
}

.pc-sidebar.alive .pc-dot {
    background: rgba(139, 92, 246, 0.6);
}

.pc-main {
    flex: 1;
    padding: 1.8rem;
}

.pc-header {
    height: 10px;
    background: #ececec;
    border-radius: 5px;
    margin-bottom: 1.8rem;
    width: 40%;
    opacity: 0;
    transition: opacity 0.6s ease 0.6s;
}

.pc-header.alive {
    opacity: 1;
}

.pc-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 130px;
}

.pc-bar {
    flex: 1;
    height: 0%;
    background: linear-gradient(to top, var(--purple), var(--blue));
    border-radius: 4px 4px 0 0;
    opacity: 0.85;
    transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-bar:nth-child(1) { transition-delay: 0.9s; }
.pc-bar:nth-child(2) { transition-delay: 1.0s; }
.pc-bar:nth-child(3) { transition-delay: 1.1s; }
.pc-bar:nth-child(4) { transition-delay: 1.2s; }
.pc-bar:nth-child(5) { transition-delay: 1.3s; }
.pc-bar:nth-child(6) { transition-delay: 1.4s; }

/* ==================== Close Section ==================== */
.close-section {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(at 40% 40%, rgba(139, 92, 246, 0.2), transparent 50%),
        radial-gradient(at 70% 70%, rgba(59, 130, 246, 0.15), transparent 50%),
        linear-gradient(135deg, var(--grad-start), var(--grad-end) 80%, var(--bg-dark));
    padding: 2rem;
}

.close-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.close-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.35);
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

/* ==================== Animations ==================== */

/* Fade In (vertical) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from Left */
.slide-from-left {
    transform: translateY(30px) translateX(-40px);
}

.slide-from-left.visible {
    transform: translateY(0) translateX(0);
}

/* Slide from Right */
.slide-from-right {
    transform: translateY(30px) translateX(40px);
}

.slide-from-right.visible {
    transform: translateY(0) translateX(0);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .feature-row,
    .row-reverse {
        flex-direction: column;
        gap: 2.5rem;
    }

    .floating-card {
        transform: none;
    }

    .floating-card:hover {
        transform: translateY(-4px);
    }

    .fc-tilt {
        transform: none;
    }

    .fc-tilt:hover {
        transform: translateY(-4px);
    }

    .nav-links {
        display: none;
    }

    .platform-card {
        transform: none;
    }

    .platform-card.flat {
        transform: none;
    }

    .slide-from-left {
        transform: translateY(30px) translateX(0);
    }

    .slide-from-right {
        transform: translateY(30px) translateX(0);
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .glass-nav {
        padding: 0 1.2rem;
    }

    .feature-section {
        padding: 5rem 1.5rem;
    }

    .coin-3d {
        width: 150px;
        height: 150px;
    }

    .coin-inner {
        font-size: 2rem;
    }
}
