/* ==========================================
   CYGNUS PAY — MAIN SITE
   White Glass Theme · FA Icons · Pro
   ========================================== */

:root {
    --bg: #f4f5f7;
    --bg-alt: #f4f5f7;
    --surface: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-blur: 16px;
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: #e0e0e0;
    --border-subtle: #ebebeb;
    --accent: #111111;
    --accent-hover: #333333;
    --code-bg: #1a1a2e;
    --code-text: #e0e0e0;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 64px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
}

/* ═══════════════════════════════
   NAVBAR
   ═══════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.nav-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-btn.outline {
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-btn.primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.nav-btn.primary:hover {
    background: #e8e8e8;
}

.nav-btn.full {
    width: 100%;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-menu-inner {
    padding: 16px 24px 24px;
}

.mobile-link {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition);
}

.mobile-link:hover {
    color: #fff;
}

.mobile-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
}

.hero-content.centered {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease both;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.ghost-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.ghost-btn:hover {
    background: var(--surface);
    border-color: #bbb;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ═══════════════════════════════
   SECTIONS
   ═══════════════════════════════ */
.section {
    padding: 100px 0;
}

.alt-bg {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.section-tag i {
    font-size: 0.7rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════
   STEPS
   ═══════════════════════════════ */
.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    padding: 36px 28px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.step-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    font-size: 1.3rem;
    margin: 0 auto 18px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 60px;
}

.flow-subtitle {
    text-align: center;
    margin: 56px 0 28px;
}

.flow-subtitle h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-subtitle p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.pay-options {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.pay-option {
    flex: 1;
    padding: 32px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.pay-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.pay-option-icon {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.pay-option h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pay-option p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.pay-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 12px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
}

.pay-option-divider {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ═══════════════════════════════
   CHAIN CARDS
   ═══════════════════════════════ */
.chains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.chain-card {
    padding: 28px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.chain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.chain-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.chain-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.chain-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.chains-note {
    text-align: center;
    margin-top: 28px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.chains-note i {
    margin-right: 6px;
}

/* ═══════════════════════════════
   CODE SHOWCASE
   ═══════════════════════════════ */
.code-showcase {
    max-width: 720px;
    margin: 0 auto;
    background: var(--code-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.code-showcase-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 4px;
}

.cs-tab {
    padding: 12px 22px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.cs-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.cs-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.code-showcase-body {
    position: relative;
}

.cs-content {
    display: none;
}

.cs-content.active {
    display: block;
}

.cs-content pre {
    padding: 24px 28px;
    overflow-x: auto;
    margin: 0;
}

.cs-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--code-text);
}

.code-comment {
    color: #6b7280;
}

/* ═══════════════════════════════
   PRICING
   ═══════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    padding: 36px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pricing-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 50px;
}

.pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.pricing-amount span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-list {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 7px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list i {
    color: var(--accent);
    font-size: 0.78rem;
}

.btn.full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════
   ROADMAP
   ═══════════════════════════════ */
.roadmap-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
}

.roadmap-marker {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    z-index: 1;
    position: absolute;
    left: -40px;
}

.roadmap-item.done .roadmap-marker {
    background: var(--accent);
    color: #fff;
}

.roadmap-item.active .roadmap-marker {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.roadmap-item.planned .roadmap-marker {
    background: var(--bg);
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.roadmap-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.roadmap-content p {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.roadmap-item.active .roadmap-content h4 {
    color: var(--accent);
}

.roadmap-item.planned .roadmap-content h4 {
    color: var(--text-muted);
}

/* ═══════════════════════════════
   ABOUT
   ═══════════════════════════════ */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 14px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 18px;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.value-item>i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════
   CTA
   ═══════════════════════════════ */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    text-align: center;
    padding: 64px 48px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-card p {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-card .primary-btn {
    background: #fff;
    color: #000;
}

.cta-card .primary-btn:hover {
    background: #e8e8e8;
}

.cta-card .ghost-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-card .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
    padding: 64px 0 32px;
    background: #111;
    color: rgba(255, 255, 255, 0.85);
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo {
    width: 28px;
    height: 28px;
}

.footer-logo-row span {
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    color: #fff;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ═══════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.features-grid .reveal:nth-child(1) {
    transition-delay: 0s;
}

.features-grid .reveal:nth-child(2) {
    transition-delay: 0.07s;
}

.features-grid .reveal:nth-child(3) {
    transition-delay: 0.14s;
}

.features-grid .reveal:nth-child(4) {
    transition-delay: 0.21s;
}

.features-grid .reveal:nth-child(5) {
    transition-delay: 0.28s;
}

.features-grid .reveal:nth-child(6) {
    transition-delay: 0.35s;
}

.features-grid .reveal:nth-child(7) {
    transition-delay: 0.42s;
}

.features-grid .reveal:nth-child(8) {
    transition-delay: 0.49s;
}

.features-grid .reveal:nth-child(9) {
    transition-delay: 0.56s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 960px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-block {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-text .section-title {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 130px 0 64px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .chains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-row {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 8px 0;
        margin-top: 0;
    }

    .step-card {
        max-width: unset;
        width: 100%;
    }

    .pay-options {
        flex-direction: column;
    }

    .pay-option-divider {
        padding: 12px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-card h2 {
        font-size: 1.6rem;
    }

    .code-showcase-tabs {
        overflow-x: auto;
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ═══════════════════════════════
   LEGAL PAGES (privacy/terms)
   ═══════════════════════════════ */
.legal-page {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px;
}

.legal-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin: 10px 0 18px 20px;
}

.legal-content li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.88rem;
}

.legal-content th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: top;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-content blockquote {
    border-left: 3px solid var(--border);
    padding: 12px 20px;
    margin: 16px 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.legal-content strong {
    color: var(--text);
}