/* ===================================
   TOC Protocol - Truth On Chain
   Site v3 - Ultra Smooth Edition
   Inspired by Final.org
   =================================== */

/* CSS Variables */
:root {
    /* Dark Theme Colors */
    --bg-primary: #09090b;        /* zinc-950 */
    --bg-secondary: #18181b;      /* zinc-900 */
    --bg-tertiary: #27272a;       /* zinc-800 */
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --text-primary: #fafafa;      /* zinc-50 */
    --text-secondary: #a1a1aa;    /* zinc-400 */
    --text-muted: #52525b;        /* zinc-600 */

    /* Accent Colors - TOC Branding */
    --primary: #E21F26;           /* TOC Red */
    --primary-dark: #B91920;
    --primary-light: #FF3B42;
    --primary-glow: rgba(226, 31, 38, 0.12);

    --accent: #a5b4fc;            /* indigo-300 */
    --accent-light: #c7d2fe;      /* indigo-200 */
    --accent-glow: rgba(165, 180, 252, 0.1);

    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.04);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing - em based for fluid scaling */
    --spacing-xs: 0.25em;
    --spacing-sm: 0.5em;
    --spacing-md: 1em;
    --spacing-lg: 1.5em;
    --spacing-xl: 2em;
    --spacing-2xl: 3em;
    --spacing-3xl: 4em;
    --spacing-4xl: 6em;
    --spacing-5xl: 8em;

    /* Border Radius */
    --radius-sm: 0.375em;
    --radius-md: 0.5em;
    --radius-lg: 0.75em;
    --radius-xl: 1em;
    --radius-2xl: 1.5em;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 80px var(--primary-glow);
    --shadow-glow-accent: 0 0 60px var(--accent-glow);

    /* Easing - Custom cubic-bezier for smooth motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.2, 0.6, 0.35, 1);

    /* Durations */
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    --duration-slowest: 1000ms;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1.1vw, 18px);
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Prevent any element from overflowing */
section, header, footer, main, article, aside, nav {
    max-width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

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

h3 {
    font-size: 1.375rem;
    font-weight: 500;
}

h4 {
    font-size: 1.125rem;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Numbers */
.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 1.5em;
    display: block;
    text-align: center;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.875em 1.75em;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out-quart);
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(250, 250, 250, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-accent:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1em 2.5em;
    font-size: 1rem;
}

/* Arrow animation for buttons */
.btn .arrow {
    display: inline-block;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-secondary);
    transition: transform var(--duration-slow) var(--ease-spring),
                background var(--duration-normal) var(--ease-out-quart);
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.9);
}

.header.header-hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75em;
    transition: opacity var(--duration-fast) var(--ease-out-quart);
}

.logo:hover {
    opacity: 0.8;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-family: 'Times New Roman', Georgia, serif;
    font-style: italic;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.logo:hover .logo-mark {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5em;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25em 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width var(--duration-normal) var(--ease-spring);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1em;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 9999;
    position: relative;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Mobile navigation menu - outside header */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #18181b;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    list-style: none;
    margin: 0;
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-menu li {
    width: 100%;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.125rem;
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

.mobile-nav-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-spring);
    transform-origin: center;
    pointer-events: none;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -10%, var(--primary-glow), transparent),
        radial-gradient(ellipse 80% 50% at 90% 20%, var(--accent-glow), transparent),
        radial-gradient(ellipse 60% 40% at 10% 80%, rgba(226, 31, 38, 0.05), transparent);
    z-index: -1;
    animation: heroBgPulse 8s ease-in-out infinite;
    overflow: hidden;
}

@keyframes heroBgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.5em 1.25em;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2em;
    backdrop-filter: blur(10px);
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 12px var(--primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    max-width: 1000px;
    margin-bottom: 1em;
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 1s var(--ease-out-expo) 0.2s forwards;
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 2.5em;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s var(--ease-out-expo) 0.4s forwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-bottom: 5em;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1s var(--ease-out-expo) 0.6s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3em 5em;
    padding-top: 3em;
    border-top: 1px solid var(--border-secondary);
    width: 100%;
    opacity: 0;
    animation: heroReveal 1s var(--ease-out-expo) 0.8s forwards;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===================================
   Sections Common
   =================================== */
.section {
    padding: 8em 0;
    border-top: 1px solid var(--border-secondary);
    position: relative;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 5em;
    text-align: center;
}

.section-title {
    margin-bottom: 1em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   About Section
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    padding: 2em;
    border-radius: var(--radius-xl);
    transition: all var(--duration-slow) var(--ease-spring);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out-quart);
}

.about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-primary);
    transform: translateY(-8px);
}

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

.about-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5em;
    position: relative;
    z-index: 1;
    transition: all var(--duration-slow) var(--ease-spring);
}

.about-card:hover .about-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.about-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: color var(--duration-normal) var(--ease-out-quart);
}

.about-card:hover .about-icon svg {
    color: white;
}

.about-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5em;
    position: relative;
    z-index: 1;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===================================
   Technology Section
   =================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    margin-bottom: 3em;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    padding: 2.5em;
    border-radius: var(--radius-xl);
    transition: all var(--duration-slow) var(--ease-spring);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width var(--duration-slow) var(--ease-spring);
}

.tech-card:hover {
    border-color: var(--border-primary);
    transform: translateY(-6px);
}

.tech-card:hover::after {
    width: 80%;
}

.tech-card.featured {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-color: var(--border-primary);
}

.tech-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5em;
    transition: all var(--duration-slow) var(--ease-spring);
}

.tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.tech-card h3 {
    margin-bottom: 0.5em;
}

.tech-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.tech-link {
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    transition: all var(--duration-normal) var(--ease-spring);
}

.tech-link:hover {
    color: var(--text-primary);
    gap: 0.75em;
}

.tech-cta {
    display: flex;
    justify-content: center;
    gap: 1em;
}

/* ===================================
   Trust Economics Section
   =================================== */
.trust-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.trust-metrics {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4em;
    align-items: center;
    margin-bottom: 4em;
}

.trust-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-ring-container {
    position: relative;
    width: 220px;
    height: 220px;
}

.trust-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.trust-ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.trust-ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
    filter: drop-shadow(0 0 12px var(--primary));
}

.trust-ring-progress.animated {
    stroke-dashoffset: calc(534 - (534 * var(--progress)) / 100);
}

.trust-ring-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-ring-value {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.trust-ring-unit {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    margin-left: 0.1em;
}

.trust-ring-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5em;
}

.trust-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.trust-item {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: 1.75em;
    transition: all var(--duration-slow) var(--ease-spring);
}

.trust-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-primary);
    transform: translateX(8px);
}

.trust-item-header {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0.75em;
}

.trust-item-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-spring);
}

.trust-item:hover .trust-item-icon {
    background: var(--primary);
}

.trust-item-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: color var(--duration-normal);
}

.trust-item:hover .trust-item-icon svg {
    color: white;
}

.trust-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-item-value {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
}

.trust-item-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin-bottom: 1em;
    overflow: hidden;
}

.trust-item-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    width: 0;
    transition: width 1.5s var(--ease-out-expo);
}

.trust-item-bar-fill.animated {
    width: var(--bar-width);
}

.trust-item-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.trust-tagline {
    text-align: center;
    padding: 2em;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
}

.trust-tagline-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.trust-tagline-text .highlight {
    font-size: 2rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .trust-metrics {
        grid-template-columns: 1fr;
        gap: 3em;
    }

    .trust-ring-container {
        width: 180px;
        height: 180px;
    }

    .trust-ring-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .trust-tagline-text {
        font-size: 1.125rem;
    }

    .trust-tagline-text .highlight {
        font-size: 1.5rem;
        display: block;
        margin-top: 0.25em;
    }
}

/* ===================================
   Value Section - Clean 3-col
   =================================== */
.value-section {
    padding: 6em 0;
    border-top: 1px solid var(--border-secondary);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
    text-align: center;
}

.value-item {
    padding: 2em;
}

.value-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1em;
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

/* ===================================
   Flow Visual
   =================================== */
.flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    margin-bottom: 4em;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.flow-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-slow) var(--ease-spring);
}

.flow-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    transition: color var(--duration-normal);
}

.flow-step:hover .flow-icon {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.flow-step:hover .flow-icon svg {
    color: var(--primary);
}

.flow-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .flow-visual {
        flex-direction: column;
        gap: 1em;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }

    .code-preview pre {
        padding: 1em;
        font-size: 0.8125rem;
    }

    .flow-icon {
        width: 64px;
        height: 64px;
    }

    .flow-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Code Preview */
.code-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: min(600px, 100%);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 1em 1.5em;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-secondary);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #f59e0b; }
.code-dot:nth-child(3) { background: #22c55e; }

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-preview pre {
    padding: 1.5em;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
}

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

/* ===================================
   Trust Tiers - Clean Visual
   =================================== */
.trust-section {
    background: var(--bg-secondary);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: 3em 2em;
    text-align: center;
    transition: all var(--duration-slow) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tier-color, var(--text-muted));
    transform: scaleX(0);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.tier-card:hover {
    transform: translateY(-8px);
    border-color: var(--tier-color, var(--border-primary));
}

.tier-card:hover::before {
    transform: scaleX(1);
}

.tier-system { --tier-color: #22c55e; }
.tier-tk { --tier-color: #3b82f6; }
.tier-permissionless { --tier-color: #f59e0b; }

.tier-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tier-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
}

.tier-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2em;
}

.tier-stat {
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25em;
}

.tier-stat-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75em;
}

.tier-explanation {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.tier-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

    .tier-card {
        padding: 2em 1.5em;
    }

    .tier-stat {
        font-size: 2.25rem;
    }
}

/* ===================================
   Hero Badge
   =================================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1em;
    background: rgba(226, 31, 38, 0.1);
    border: 1px solid rgba(226, 31, 38, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5em;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===================================
   Problem / Solution Section
   =================================== */
.problem-section {
    padding: 5em 0;
    border-top: 1px solid var(--border-secondary);
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
}

@media (min-width: 768px) {
    .problem-solution-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3em;
    }
}

.problem-card,
.solution-card {
    padding: 2em;
    border-radius: 16px;
    border: 1px solid var(--border-secondary);
}

.problem-card {
    background: rgba(226, 31, 38, 0.03);
    border-color: rgba(226, 31, 38, 0.15);
}

.solution-card {
    background: rgba(34, 197, 94, 0.03);
    border-color: rgba(34, 197, 94, 0.15);
}

.problem-header,
.solution-header {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 1.5em;
    font-size: 1rem;
    font-weight: 600;
}

.problem-header svg,
.solution-header svg {
    width: 24px;
    height: 24px;
}

.problem-header {
    color: var(--primary);
}

.solution-header {
    color: #22c55e;
}

.problem-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem-list li,
.solution-list li {
    padding: 0.75em 0;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.problem-list li:last-child,
.solution-list li:last-child {
    border-bottom: none;
}

.problem-list strong,
.solution-list strong {
    color: var(--text-primary);
}

/* ===================================
   Ecosystem Section
   =================================== */
.ecosystem-section {
    padding: 5em 0;
    border-top: 1px solid var(--border-secondary);
    background: linear-gradient(180deg, rgba(226, 31, 38, 0.02) 0%, transparent 100%);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3em;
}

@media (min-width: 768px) {
    .ecosystem-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4em;
    }
}

.ecosystem-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.ecosystem-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ecosystem-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ecosystem-card:hover:not(.coming-soon) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.ecosystem-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.ecosystem-card.featured {
    border-color: rgba(226, 31, 38, 0.3);
    background: rgba(226, 31, 38, 0.03);
}

.ecosystem-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ecosystem-logo svg {
    width: 24px;
    height: 24px;
}

.ecosystem-logo.pyth {
    background: linear-gradient(135deg, #6B46C1 0%, #805AD5 100%);
    color: white;
}

.ecosystem-logo.predicoco {
    background: linear-gradient(135deg, var(--primary) 0%, #FF4B4B 100%);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.ecosystem-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ecosystem-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.ecosystem-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ecosystem-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.ecosystem-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.ecosystem-badge.soon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 6em 0;
    border-top: 1px solid var(--border-secondary);
    background: linear-gradient(180deg, transparent 0%, rgba(226, 31, 38, 0.03) 100%);
}

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

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5em;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2em;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.cta-number {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.25em;
}

.cta-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2em;
}

/* ===================================
   Footer - Minimal
   =================================== */
.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    padding: 4em 0;
    text-align: center;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}

.footer-links-row a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--duration-fast);
}

.footer-links-row a:hover {
    color: var(--text-primary);
}

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

/* ===================================
   How It Works Section
   =================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2em;
    position: relative;
}

/* Connection line */
.steps::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 12.5%;
    width: 75%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border-primary) 10%,
        var(--border-primary) 90%,
        transparent
    );
}

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

.step-number {
    font-family: var(--font-mono);
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--bg-tertiary);
    line-height: 1;
    margin-bottom: 0.5em;
    transition: all var(--duration-slow) var(--ease-spring);
}

.step:hover .step-number {
    color: var(--primary);
    transform: scale(1.1);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================
   Applications Section
   =================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    padding: 2em;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--duration-slow) var(--ease-spring);
    cursor: default;
}

.app-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-primary);
    transform: translateY(-8px) scale(1.02);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 0.5em;
    transition: transform var(--duration-slow) var(--ease-spring);
}

.app-card:hover .app-icon {
    transform: scale(1.2);
}

.app-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5em;
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===================================
   Community Section
   =================================== */
.community {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.community-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 1.25em;
    margin-top: 3em;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    padding: 1.75em 2.5em;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    transition: all var(--duration-slow) var(--ease-spring);
    min-width: 140px;
}

.community-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-primary);
    transform: translateY(-8px);
}

.community-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-slow) var(--ease-spring);
}

.community-card:hover .community-icon {
    transform: scale(1.15);
}

.community-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--text-primary);
    transition: fill var(--duration-normal) var(--ease-out-quart);
}

.community-card:hover .community-icon svg {
    fill: var(--primary);
}

.community-card span {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-normal) var(--ease-out-quart);
}

.community-card:hover span {
    color: var(--text-primary);
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
    padding: 5em 0;
    border-top: 1px solid var(--border-secondary);
    position: relative;
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.newsletter-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 2em;
}

.newsletter-form {
    display: flex;
    gap: 0.75em;
}

.newsletter-form input {
    flex: 1;
    padding: 1em 1.5em;
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    outline: none;
    transition: all var(--duration-normal) var(--ease-out-quart);
}

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

.newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-secondary);
    padding: 5em 0 2em;
    border-top: 1px solid var(--border-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4em;
    margin-bottom: 4em;
}

.footer-brand .logo {
    margin-bottom: 1em;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2em;
    border-top: 1px solid var(--border-secondary);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 2em;
}

.footer-legal a {
    transition: color var(--duration-fast) var(--ease-out-quart);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ===================================
   Scroll Animations - Smooth & Staggered
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity var(--duration-slower) var(--ease-out-expo),
        transform var(--duration-slower) var(--ease-out-expo);
}

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

/* Staggered delays with smoother curve */
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* Scale reveal variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity var(--duration-slower) var(--ease-out-expo),
        transform var(--duration-slower) var(--ease-out-expo);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Slide in from sides */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition:
        opacity var(--duration-slower) var(--ease-out-expo),
        transform var(--duration-slower) var(--ease-out-expo);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition:
        opacity var(--duration-slower) var(--ease-out-expo),
        transform var(--duration-slower) var(--ease-out-expo);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

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

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

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

    .steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }

    .container {
        padding: 0 1.5rem;
    }

    /* Hide desktop nav on mobile */
    .nav-links.desktop-nav {
        display: none !important;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4em 0.875em;
    }

    .problem-card,
    .solution-card {
        padding: 1.5em;
    }

    .ecosystem-card {
        padding: 1rem;
    }

    .ecosystem-logo {
        width: 40px;
        height: 40px;
    }

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

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-grid,
    .tech-grid,
    .steps {
        grid-template-columns: 1fr;
    }

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

    .community-links {
        flex-wrap: wrap;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .section {
        padding: 5em 0;
    }

    .hero-cta .btn {
        padding: 0.875em 1.5em;
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .tier-stat {
        font-size: 1.75rem;
    }

    .cta-number {
        font-size: 3rem;
    }

    .cta-label {
        font-size: 1rem;
    }

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

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

    .community-card {
        width: 100%;
        max-width: 200px;
    }

    .code-preview pre {
        font-size: 0.75rem;
        padding: 0.875em;
    }

    .value-item h3 {
        font-size: 1.25rem;
    }
}

/* ===================================
   Smooth Scrollbar (Webkit)
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}
/* Deploy timestamp: 1765644494 */
/* Build 1765700163 */
