/* ============================================
   cbdc.studio - Frutiger Aero Fintech Aesthetic
   Palette:
     #e8f4fd  Sky Blue (background)
     #ffffff  Glass White (surfaces)
     #4fc3f7  Bright Cyan (gradient top)
     #2196f3  Material Blue (gradient bottom)
     #0d47a1  Trust Deep (headings)
     #263238  Ink Blue (body text)
     #00c853  Accent Green
     #ffd600  Coin Gold
     #c0c0c0  Metallic silver (rim)
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: #263238;
    background: #e8f4fd;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Subtle sky-gradient layer over the base sky-blue */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #e8f4fd 0%, #ffffff 50%, #e8f4fd 100%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #0d47a1;
    letter-spacing: -0.01em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 6px rgba(33, 150, 243, 0.12);
}

/* --- Background Orbs --- */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.35), transparent 70%);
    filter: blur(40px);
    opacity: 0.55;
    will-change: transform;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: -80px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: 15%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    left: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.28), transparent 70%);
    animation: orbFloat4 18s ease-in-out infinite;
}

.orb-5 {
    width: 220px;
    height: 220px;
    bottom: 30%;
    left: 20%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.18), transparent 70%);
    animation: orbFloat5 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 60px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, -50px); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 40px); }
}

@keyframes orbFloat5 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 20px); }
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 3D Coin --- */
.coin-wrapper {
    position: relative;
    margin-bottom: 3rem;
    perspective: 800px;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-shadow {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(33, 150, 243, 0.35), rgba(33, 150, 243, 0) 70%);
    filter: blur(10px);
    animation: shadowPulse 6s ease-in-out infinite;
    z-index: 0;
}

.coin-outer {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background:
        linear-gradient(145deg, #c0c0c0 0%, #ffffff 45%, #e0e0e0 55%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 60px rgba(33, 150, 243, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.10),
        inset 0 2px 4px rgba(255, 255, 255, 0.85),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12);
    animation: coinRotate 6s ease-in-out infinite;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

.coin-inner {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 3px 8px rgba(255, 255, 255, 0.45),
        inset 0 -4px 10px rgba(13, 71, 161, 0.35);
    position: relative;
    overflow: hidden;
}

.coin-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.12) 35%,
        rgba(255, 255, 255, 0) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.coin-inner::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.coin-emblem {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffd600;
    text-shadow:
        0 2px 4px rgba(13, 71, 161, 0.5),
        0 -1px 0 rgba(255, 255, 255, 0.35);
    letter-spacing: 4px;
    position: relative;
    z-index: 2;
}

.coin-sub {
    font-family: 'Rubik', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 6px;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

@keyframes coinRotate {
    0%, 100% { transform: perspective(800px) rotateY(-15deg); }
    50% { transform: perspective(800px) rotateY(15deg); }
}

@keyframes shadowPulse {
    0%, 100% { width: 180px; opacity: 1; }
    50% { width: 150px; opacity: 0.65; }
}

/* --- Hero Text --- */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.hero-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #263238;
    opacity: 0.8;
    font-weight: 400;
}

/* --- Capabilities Section --- */
#capabilities {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.capability-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    padding: 2rem;
    box-shadow:
        0 4px 16px rgba(33, 150, 243, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.capability-card:hover {
    box-shadow:
        0 8px 32px rgba(33, 150, 243, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
}

.card-icon {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    filter: drop-shadow(0 4px 10px rgba(33, 150, 243, 0.30));
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.card-description {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    color: #263238;
    line-height: 1.6;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* --- Process Timeline Section --- */
#process {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    width: 160px;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #ffffff;
    box-shadow:
        0 4px 16px rgba(33, 150, 243, 0.30),
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        inset 0 -2px 4px rgba(13, 71, 161, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.step-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: 24px 24px 0 0;
}

.step-pill:hover {
    box-shadow:
        0 8px 24px rgba(33, 150, 243, 0.40),
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.step-number {
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffd600;
    text-shadow: 0 1px 2px rgba(13, 71, 161, 0.4);
    position: relative;
    z-index: 1;
}

.step-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.step-description {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    color: #263238;
    opacity: 0.75;
    margin-top: 1rem;
    line-height: 1.5;
    max-width: 150px;
}

.timeline-connector {
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7, #2196f3);
    border-radius: 2px;
    margin-top: 22px;
    align-self: flex-start;
    position: relative;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.25);
}

.timeline-connector::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid #2196f3;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(33, 150, 243, 0.3));
}

/* --- Footer / Contact --- */
#contact {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.footer-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow:
        0 4px 24px rgba(33, 150, 243, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.footer-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: 24px 24px 0 0;
}

.footer-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #0d47a1;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'Nunito Sans', sans-serif;
    color: #263238;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-button {
    display: inline-block;
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    padding: 14px 32px;
    border-radius: 28px;
    text-decoration: none;
    box-shadow:
        0 4px 16px rgba(33, 150, 243, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(13, 71, 161, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-button:hover {
    box-shadow:
        0 8px 28px rgba(33, 150, 243, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.copyright {
    font-family: 'Rubik', sans-serif;
    font-size: 0.8rem;
    color: #263238;
    opacity: 0.5;
}

/* Decorative success-green dot in copyright area */
.copyright::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #00c853, #00a046);
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.6);
    margin-right: 8px;
    vertical-align: middle;
}

/* --- Scroll Reveal Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-connector {
        width: 4px;
        height: 30px;
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
        background: linear-gradient(180deg, #4fc3f7, #2196f3);
    }

    .timeline-connector::after {
        right: 50%;
        bottom: -8px;
        top: auto;
        transform: translateX(50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 10px solid #2196f3;
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .coin-wrapper {
        width: 180px;
        height: 180px;
    }

    .coin-outer {
        width: 160px;
        height: 160px;
    }

    .coin-inner {
        width: 136px;
        height: 136px;
    }

    .coin-emblem {
        font-size: 1.8rem;
    }

    #capabilities,
    #process,
    #contact {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
