/*
 * Copyright (c) 2026 Sanka Darshana / Sakviti (Pvt) Ltd.
 * Licensed under the Business Source License 1.1 (BSL 1.1).
 * See project license terms for full details.
 */
/* ============================================================
   SAKVITI LANDING PAGE — STYLES
   Color palette:
     --navy     : #0a1628  (deep dark background)
     --blue     : #1a3a6b  (section midtone)
     --blue-mid : #1e4d8c  (card / panel blue)
     --gold     : #f5c842  (primary accent)
     --gold-lt  : #fad96b  (light gold)
     --white    : #ffffff
     --text-lt  : #e8edf5  (body text on dark)
     --text-muted: #a8bad8 (secondary text)
   ============================================================ */

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

:root {
    --navy: #0a1628;
    --blue: #1a3a6b;
    --blue-mid: #1e4d8c;
    --blue-bright: #2563b0;
    --gold: #f5c842;
    --gold-lt: #fad96b;
    --gold-dim: #c9a318;
    --white: #ffffff;
    --text-lt: #e8edf5;
    --text-muted: #a8bad8;
    --border: rgba(245, 200, 66, 0.18);
    --card-bg: rgba(26, 58, 107, 0.55);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --transition: 0.35s ease;
    --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--text-lt);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-lt);
}

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

ul {
    list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.05rem;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.gold {
    color: var(--gold);
}

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

/* ── Layout helpers ───────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section--alt {
    background: var(--blue);
}

/* ── Scroll-fade animations ───────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-up.delay-1 {
    transition-delay: 0.1s;
}

.fade-up.delay-2 {
    transition-delay: 0.22s;
}

.fade-up.delay-3 {
    transition-delay: 0.34s;
}

.fade-up.delay-4 {
    transition-delay: 0.46s;
}

.fade-up.delay-5 {
    transition-delay: 0.58s;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition),
        border-color var(--transition), transform 0.15s ease,
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-lt);
    border-color: var(--gold-lt);
    color: var(--navy);
    box-shadow: 0 6px 24px rgba(245, 200, 66, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-ghost:hover {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 6px 24px rgba(245, 200, 66, 0.3);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

a.btn,
a.btn:visited {
    text-decoration: none;
}

a.btn-primary,
a.btn-primary:visited {
    background: var(--gold);
    background-color: var(--gold);
    color: var(--navy);
    -webkit-text-fill-color: var(--navy);
    border-color: var(--gold);
    box-shadow: inset 0 0 0 999px var(--gold);
}

a.btn-primary:hover {
    box-shadow: inset 0 0 0 999px var(--gold-lt), 0 6px 24px rgba(245, 200, 66, 0.35);
}

a.btn-outline,
a.btn-outline:visited {
    background: transparent;
    background-color: transparent;
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
    width: 56px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 22, 40, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition),
        box-shadow var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.04em;
    text-decoration: none;
}

.navbar__logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
}

.navbar__logo-text span {
    color: var(--gold);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-lt);
    opacity: 0.85;
    transition: color var(--transition), opacity var(--transition);
}

.navbar__links a:hover {
    color: var(--gold);
    opacity: 1;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-lt);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(14px);
    z-index: 999;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1rem;
    color: var(--text-lt);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 8rem 1.5rem 5rem;
}

#dag-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 40%,
            rgba(10, 22, 40, 0.35) 0%,
            rgba(10, 22, 40, 0.75) 60%,
            rgba(10, 22, 40, 0.95) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.hero__logo {
    width: clamp(120px, 15vw, 220px);
    height: auto;
    display: block;
    margin: 0 auto 1.35rem;
    filter: drop-shadow(0 20px 44px rgba(245, 200, 66, 0.24));
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 200, 66, 0.12);
    border: 1px solid rgba(245, 200, 66, 0.35);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero__title-accent {
    background: linear-gradient(90deg, var(--gold), var(--gold-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce-down 2.5s ease-in-out infinite;
}

.hero__scroll-hint svg {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

/* ── About Section ────────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.about__goals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.about__goal {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-lt);
}

.about__goal-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.about__goal-icon svg {
    width: 12px;
    height: 12px;
    color: var(--navy);
}

.about__visual {
    position: relative;
}

.about__card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.about__card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about__mini-card {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.about__mini-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.about__mini-card h4 {
    font-size: 0.88rem;
    color: var(--gold);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.about__mini-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Features Section ─────────────────────────────────────── */
#features {
    background: var(--blue);
}

.features__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.features__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(7, 18, 36, 0.9);
    border: 1px solid rgba(126, 184, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt));
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: rgba(245, 200, 66, 0.4);
    transform: translateY(-6px);
    background: rgba(8, 22, 45, 0.96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.48);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245, 200, 66, 0.1);
    border: 1px solid rgba(245, 200, 66, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--gold);
    transition: transform var(--transition);
}

.feature-card__icon svg {
    flex-shrink: 0;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.15);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.feature-card p {
    color: #c3d0e8;
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ── Use Cases Section ────────────────────────────────────── */
.usecases__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.usecases__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.usecases__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.usecase-tile {
    background: rgba(10, 22, 40, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: default;
    transition: border-color var(--transition), transform var(--transition),
        box-shadow var(--transition), background var(--transition);
}

.usecase-tile:hover {
    border-color: rgba(245, 200, 66, 0.45);
    transform: translateY(-6px);
    background: rgba(26, 58, 107, 0.5);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.usecase-tile__icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.usecase-tile__icon svg {
    flex-shrink: 0;
}

.usecase-tile h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.usecase-tile p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Layer Architecture Section ────────────────────────────── */
.layers__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.layers__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.layers__stack {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.layers__stack::before {
    content: '';
    position: absolute;
    left: calc(1.5rem + 21px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            rgba(245, 200, 66, 0.55) 0%,
            rgba(245, 200, 66, 0.15) 80%,
            transparent 100%);
    pointer-events: none;
    z-index: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.9s ease 0.4s;
}

.layers__stack.section-visible::before {
    transform: scaleY(1);
}

.layer-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: rgba(10, 22, 40, 0.75);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.875rem;
    position: relative;
    z-index: 1;
    transition: border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
}

.layer-card:last-child {
    margin-bottom: 0;
}

.layer-card:hover {
    border-color: rgba(245, 200, 66, 0.4);
    transform: translateX(6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.layer-card__badge {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 200, 66, 0.12);
    border: 1px solid rgba(245, 200, 66, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.layer-card__body h3 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.layer-card__body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Roadmap Section ──────────────────────────────────────── */
.roadmap__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.roadmap__header {
    margin-bottom: 2rem;
}

.roadmap__header p {
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-top: 2px;
}

.timeline-dot--done {
    background: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.4);
}

.timeline-dot--active {
    background: var(--navy);
    border: 2px solid var(--gold);
    animation: ring-pulse 2s ease-in-out infinite;
}

.timeline-dot--future {
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes ring-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(245, 200, 66, 0);
    }
}

.timeline-dot svg {
    width: 14px;
    height: 14px;
}

.timeline-dot--done svg {
    color: var(--navy);
}

.timeline-dot--active svg,
.timeline-dot--future svg {
    color: var(--text-muted);
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.timeline-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.tl-done {
    background: rgba(245, 200, 66, 0.15);
    color: var(--gold);
}

.tl-active {
    background: rgba(37, 99, 176, 0.35);
    color: #9ccaff;
}

.tl-future {
    background: rgba(10, 22, 40, 0.45);
    color: #c3d0e8;
}

/* Community panel */
.community-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.community-panel h3 {
    margin-bottom: 0.5rem;
}

.community-panel>p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(10, 22, 40, 0.5);
    color: var(--text-lt);
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition),
        transform 0.15s ease;
    text-decoration: none;
}

.community-link:hover {
    border-color: rgba(245, 200, 66, 0.4);
    background: rgba(26, 58, 107, 0.5);
    color: var(--gold);
    transform: translateX(4px);
}

.community-link__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(245, 200, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.community-link__arrow {
    margin-left: auto;
    opacity: 0.5;
    font-size: 1rem;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-mid) 50%, var(--blue) 100%);
    background-size: 200% 200%;
    border-top: 1px solid rgba(245, 200, 66, 0.2);
    border-bottom: 1px solid rgba(245, 200, 66, 0.2);
    text-align: center;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%,
            rgba(245, 200, 66, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-banner h2 {
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-banner__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: #060e1b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 1.5rem 2rem;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer__brand .navbar__logo {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.footer__tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.55;
}

.footer__cols {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer__col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer__col a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer__col a:hover {
    color: var(--text-lt);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer__copy {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a {
    font-size: 0.83rem;
    color: var(--text-muted);
}

.footer__legal a:hover {
    color: var(--gold);
}

/* ── Graph Panels ─────────────────────────────────────────── */
.graph-panel {
    background: rgba(6, 14, 27, 0.9);
    border: 1px solid rgba(245, 200, 66, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.graph-panel--tall .graph-panel__canvas {
    height: 400px;
}

.graph-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(245, 200, 66, 0.1);
    background: rgba(26, 58, 107, 0.35);
}

.graph-panel__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.graph-panel__badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-lt);
    -webkit-text-fill-color: var(--gold-lt);
    background: rgba(245, 200, 66, 0.12);
    border: 1px solid rgba(245, 200, 66, 0.24);
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    min-width: 5ch;
    text-align: right;
    transition: color 0.3s;
}

.graph-panel__canvas {
    display: block;
    width: 100%;
    height: 300px;
    cursor: default;
}

.graph-panel__footer {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.65rem 1.1rem;
    border-top: 1px solid rgba(245, 200, 66, 0.08);
    background: rgba(26, 58, 107, 0.2);
}

.graph-panel__stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.graph-panel__stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.graph-panel__stat-dot--ub {
    background: #f5c842;
    box-shadow: 0 0 5px rgba(245, 200, 66, 0.7);
    border-radius: 2px;
    transform: rotate(45deg);
}

.graph-panel__stat-dot--blue {
    background: #4a90d9;
}

.graph-panel__stat-dot--tx {
    background: #4ade80;
    box-shadow: 0 0 5px rgba(74, 222, 128, 0.6);
}

/* ── Network viz section ──────────────────────────────────── */
.network-viz__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
}

.network-viz__legend {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 2rem;
}

.nv-legend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.nv-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.nv-dot--node {
    background: #4a90d9;
    box-shadow: 0 0 8px rgba(74, 144, 217, 0.6);
}

.nv-dot--hydra {
    background: #7eb8ff;
    box-shadow: 0 0 8px rgba(126, 184, 255, 0.5);
}

.nv-dot--mint {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.nv-dot--agni {
    background: #f472b6;
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.5);
}

.nv-dot--light {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Responsive additions ─────────────────────────────────── */
@media (max-width: 860px) {
    .network-viz__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .usecases__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .roadmap__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .layer-card:hover {
        transform: none;
    }

    .navbar__links {
        display: none;
    }

    .navbar__right .btn {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero__stats {
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

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

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

    .layers__stack::before {
        display: none;
    }

    .fade-up.delay-1,
    .fade-up.delay-2,
    .fade-up.delay-3,
    .fade-up.delay-4,
    .fade-up.delay-5 {
        transition-delay: 0s;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__logo {
        width: 116px;
        margin-bottom: 1rem;
    }

    .footer__inner {
        flex-direction: column;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

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

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ── Accessibility: prefers-reduced-motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .cta-banner {
        animation: none;
        background-size: auto;
    }
}

/* ── Layer Tags ───────────────────────────────────────────── */
.layer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.layer-tag {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.layer-tag--done {
    background: rgba(245, 200, 66, 0.13);
    color: var(--gold);
    border: 1px solid rgba(245, 200, 66, 0.25);
}

.layer-tag--active {
    background: rgba(37, 99, 176, 0.3);
    color: #7eb8ff;
    border: 1px solid rgba(126, 184, 255, 0.25);
}

.layer-tag--future {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Blog Preview (index page) ────────────────────────────── */
.blog-preview__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.blog-preview__header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.blog-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

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

.blog-card {
    background: rgba(10, 22, 40, 0.65);
    border: 1px solid rgba(245, 200, 66, 0.22);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: rgba(245, 200, 66, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 200, 66, 0.15);
}

.blog-card__date {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.blog-card__read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: auto;
}

.blog-card--skeleton {
    min-height: 200px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    cursor: default;
}

.blog-card--skeleton:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

/* ── Blog Page (blog.html) ────────────────────────────────── */
.blog-hero {
    padding: 10rem 1.5rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse 70% 50% at 50% 0%,
            rgba(37, 99, 176, 0.25) 0%, transparent 70%);
    border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Blog listing */
.blog-listing {
    background: var(--blue);
    padding: 4rem 0;
}

.blog-listing__grid {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

/* Blog post reader */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.blog-post__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    transition: color var(--transition);
}

.blog-post__back:hover {
    color: var(--gold-lt);
}

.blog-post__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-post__date {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-post__tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    background: rgba(245, 200, 66, 0.1);
    color: var(--gold);
    border: 1px solid rgba(245, 200, 66, 0.2);
    font-weight: 600;
}

.blog-post__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 2rem;
}

.blog-post__divider {
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 2.5rem;
}

/* Rendered markdown content */
.blog-post__content {
    font-size: 1rem;
    color: var(--text-lt);
    line-height: 1.8;
}

.blog-post__content h1,
.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.blog-post__content h1 {
    font-size: 1.8rem;
}

.blog-post__content h2 {
    font-size: 1.4rem;
    color: var(--gold);
}

.blog-post__content h3 {
    font-size: 1.15rem;
}

.blog-post__content p {
    margin-bottom: 1.2rem;
}

.blog-post__content ul,
.blog-post__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    list-style: disc;
}

.blog-post__content ol {
    list-style: decimal;
}

.blog-post__content li {
    margin-bottom: 0.4rem;
    color: var(--text-lt);
}

.blog-post__content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post__content a:hover {
    color: var(--gold-lt);
}

.blog-post__content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.88em;
    background: rgba(245, 200, 66, 0.1);
    color: var(--gold-lt);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    border: 1px solid rgba(245, 200, 66, 0.15);
}

.blog-post__content pre {
    background: rgba(6, 14, 27, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post__content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-lt);
}

.blog-post__content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

.blog-post__content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.blog-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.blog-post__content th,
.blog-post__content td {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.blog-post__content th {
    background: rgba(245, 200, 66, 0.08);
    color: var(--gold);
    font-weight: 600;
}

.blog-post__content strong {
    color: var(--white);
    font-weight: 700;
}

.blog-post__content em {
    color: var(--text-muted);
}

/* Blog page loading / error states */
.blog-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-muted);
}

.blog-state p {
    font-size: 1.05rem;
}

/* ── Blog page responsive ─────────────────────────────────── */
@media (max-width: 860px) {
    .blog-preview__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .blog-post {
        padding: 3rem 1.5rem 4rem;
    }
}
