/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1419;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #a0aec0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.teal-glow {
    color: #38b2ac;
    text-shadow: 0 0 20px rgba(56, 178, 172, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #38b2ac;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #319795;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 178, 172, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #38b2ac;
    border: 2px solid #38b2ac;
}

.btn-outline:hover {
    background-color: rgba(56, 178, 172, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Domino Tiles */
.domino-tile {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border: 2px solid #4a5568;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.domino-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(56, 178, 172, 0.3);
}

.domino-tile.small {
    width: 40px;
    height: 80px;
}

.domino-tile:not(.small) {
    width: 64px;
    height: 128px;
}
.domino-tile .domino-img { width: 100%; height: 100%; display: block; object-fit: contain; }

.domino-top, .domino-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
}

.domino-top {
    top: 0;
    border-bottom: 1px solid #4a5568;
}

.domino-bottom {
    bottom: 0;
}

.domino-dot {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
    animation: floatingDots 3s ease-in-out infinite;
}

.domino-tile.small .domino-dot {
    width: 3px;
    height: 3px;
}

/* Color Variables */
:root {
    --primary: #20b2aa;
    --primary-dark: #1a3a52;
    --background: #0a1628;
    --card: #1a3a52;
    --accent: #3ac5be;
    --muted: #a0b0c0;
}

/* Navigation removed */
/* Navigation Domino Bar */
.domino-navigation {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-container {
    display: flex;
    gap: 0.75rem;
    background: rgba(26, 32, 44, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid #2d3748;
}

.domino-tile.nav-tile {
    width: 24px;
    height: 40px;
    position: relative;
    cursor: pointer;
    /* Use CSS variable to compose transforms without conflicts */
    --nav-rotate: 0deg;
    transform: rotate(var(--nav-rotate));
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
    overflow: visible;
}
.domino-tile.nav-tile { border: none; background: transparent; box-shadow: none; }
.domino-tile.nav-tile .domino-img { width: 100%; height: 100%; display: block; object-fit: contain; }

.nav-tile:hover {
    transform: rotate(var(--nav-rotate)) translateY(-4px);
}

/* On hover, show active (rotated) tile in normal orientation */
.nav-tile.active:hover {
    --nav-rotate: 0deg;
}

.nav-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    background: #38b2ac;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1001;
}

.nav-tile:hover .nav-tooltip {
    opacity: 1;
}

/* Nav dots styling */
.domino-navigation .domino-dot {
    width: 3px;
    height: 3px;
    background: #38b2ac;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(56, 178, 172, 0.6);
    animation: navPulse 2s ease-in-out infinite alternate;
}

@keyframes navPulse {
    0% {
        box-shadow: 0 0 8px rgba(56, 178, 172, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 0 0 18px rgba(56, 178, 172, 0.9);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .domino-tile.nav-tile {
        width: 20px;
        height: 32px;
    }
    .domino-nav-container {
        gap: 8px;
    }

    .nav-tile {
        width: 60px;
        height: 40px;
    }

    /* Mobile: click pulse to temporarily un-rotate active tile */
    .nav-tile.pulse-unrotate { --nav-rotate: 0deg !important; }
    /* Mobile: force tooltip visible during pulse */
    .nav-tile.show-tooltip .nav-tooltip { opacity: 1 !important; }

    /* Smaller nav dots on mobile */
    .domino-navigation .domino-dot { width: 2px; height: 2px; box-shadow: 0 0 8px rgba(56, 178, 172, 0.6); }
}

/* Active nav tile rotates 90deg relative to its center */
.nav-tile.active {
    --nav-rotate: 90deg;
}

/* Animations */
@keyframes floatingDots {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Disable sticky hover effects on touch devices (mobile/tablet) */
@media (hover: none) {
    .nav-tile:hover { transform: rotate(var(--nav-rotate)); }
    .nav-tile.active:hover { --nav-rotate: 90deg; }
    .nav-tile:hover .nav-tooltip { opacity: 0; }
}

/* Global dotted pattern on zero layer for all sections */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20px 20px, #00C4B3 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

/* Disable dotted pattern on the hero (main screen) */
.hero-section::before {
    content: none;
}

@keyframes chainReaction {
    0% { transform: rotateZ(0deg) scale(1); }
    50% { transform: rotateZ(-15deg) scale(1.1); }
    100% { transform: rotateZ(-90deg) scale(0.9); opacity: 0.7; }
}

@keyframes dominoFall {
    0% { transform: rotateZ(0deg) translateY(0px); }
    100% { transform: rotateZ(90deg) translateY(20px); }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chain-reaction {
    animation: chainReaction 0.6s ease-out forwards;
}

.domino-fall {
    animation: dominoFall 0.8s ease-in-out forwards;
}

.network-pulse {
    animation: networkPulse 2s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(56, 178, 172, 0.1) 0%, rgba(15, 20, 25, 1) 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-dominoes-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    transform: translateY(-20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-container {
    margin-top: 4rem;
}

.main-logo {
    width: 200px;
    height: 200px;
    display: block;
    margin: 2rem auto 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a0aec0;
    margin-bottom: 0;
}

/* Center subtitle exactly between title and domino showcase */
.hero-subtitle-wrap { width: 100%; display: flex; justify-content: center; }
.hero-subtitle-wrap .hero-subtitle { margin: 0; }

.domino-showcase {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Fix pip positioning in hero showcase: static, centered, no floating */
.domino-showcase .domino-dot {
    animation: none;
    transform: translate(-50%, -50%);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Equalize hero buttons width on desktop */
@media (min-width: 769px) {
    .hero-buttons .btn {
        width: 220px;
        justify-content: center;
        white-space: nowrap;
    }
}

.domino-chain {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.domino-chain.active {
    opacity: 1;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background-color: rgba(26, 32, 44, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-domino {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border: 2px solid #4a5568;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Features list styling handled by gap property in parent container */

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 1.5rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item:hover,
.feature-item.active {
    background-color: rgba(56, 178, 172, 0.1);
    border-color: #38b2ac;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border: 2px solid #4a5568;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #38b2ac;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #a0aec0;
}

.feature-image {
    position: relative;
}

.feature-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: all 0.5s ease;
}

/* Validation Section */
.validation-section {
    padding: 5rem 0;
    background-color: rgba(26, 32, 44, 0.3);
}

.validation-image {
    margin-bottom: 3rem;
}

.process-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 0.5rem;
    margin: 0 auto;
    display: block;
}

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

.process-step {
    text-align: center;
}

.step-domino {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border: 2px solid #4a5568;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step-number {
    font-size: 1.125rem;
    font-weight: 700;
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: #a0aec0;
}

/* Network Section */
.network-section {
    padding: 5rem 0;
}

.network-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.network-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.network-text p {
    text-align: left;
    margin-bottom: 2rem;
}

/* Network features styling handled by margin-bottom on individual items */

.network-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.network-feature:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: #38b2ac;
    flex-shrink: 0;
}

.network-image {
    position: relative;
}

.network-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background-color: rgba(56, 178, 172, 0.1);
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-dominoes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Disable effects/animations for hero showcase dominoes */
.domino-showcase .domino-tile {
    cursor: pointer;
    transform-origin: bottom right;
    border: none;
    background: transparent;
    box-shadow: none;
}

.domino-showcase .domino-tile:hover {
    transform: translateY(-0px);
}

/* Falling animation adapted from donor with bottom pivot */
.domino-showcase .domino-tile.falling {
    animation: showcaseDominoFall 0.6s ease-in-out forwards;
}

@keyframes showcaseDominoFall {
    0% {
        transform: rotateZ(0deg) translateX(0px);
    }
    100% {
        transform: rotateZ(90deg) translateX(20px);
    }
}

/* Validator Statistics Domino Block */
.vstats-section {
    padding: 4rem 0 2rem;
}

.vstats-grid {
    display: grid;
    grid-template-columns: repeat(3, 344px);
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
    margin-bottom: 2rem;
}

.vstats-center {
    display: flex;
    justify-content: center;
}

.vstats-card {
    background: #0f1419;
    border: 2px solid #2d3748;
    border-radius: 0.5rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Reveal animation for stats cards (exclude APY which stays static) */
#validator-stats .vstats-card.reveal-seq { opacity: 0; transform: translateX(var(--stats-reveal-x, 0)) translateY(var(--stats-reveal-y, 0)); transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
#validator-stats .vstats-card.reveal-seq.revealed { opacity: 1; transform: translateX(0) translateY(0); }

.vstats-card:hover {
    transform: translateY(-6px);
    border-color: #38b2ac;
    box-shadow: 0 16px 36px rgba(56,178,172,0.25);
}

/* Mobile auto-activation mirrors hover for stats cards */
.vstats-card.auto-active {
    transform: translateY(-6px);
    border-color: #38b2ac;
    box-shadow: 0 16px 36px rgba(56,178,172,0.25);
}
/* Highlight shield when auto-active on mobile */
#about .shield-container.auto-active { box-shadow: 0 0 28px rgba(56,178,172,0.4); transform: scale(1.02); }

.vstats-horizontal {
    width: 344px;
    height: 132px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    padding: 0.66rem;
    position: relative;
}

/* Center content inside each half */
.vstats-horizontal .vstats-value,
.vstats-horizontal .vstats-icon,
.vstats-horizontal .vstats-desc {
    text-align: center;
    justify-self: center;
    align-self: center;
}

.vstats-horizontal .vstats-value {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    font-size: 2.3rem;
    font-weight: 800;
}

.vstats-divider {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #2d3748;
}

.vstats-horizontal .vstats-icon { 
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 2rem;
    justify-self: center;
}
.vstats-horizontal .vstats-icon img { width: 48px; height: 48px; display: block; object-fit: contain; }

.vstats-horizontal .vstats-desc {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    font-size: 1.1rem;
    color: #a0aec0;
    justify-self: center;
}

.vstats-vertical {
    width: 132px;
    height: 344px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
    align-items: center;
    padding: 0.66rem;
    gap: 0.5rem;
    position: relative;
}

.vstats-vertical .vstats-value {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
}

.vstats-hline {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #2d3748;
    transform: translateY(-50%);
}

.vstats-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.vstats-vertical .vstats-icon {
    font-size: 2rem;
}
.vstats-vertical .vstats-icon img { width: 52px; height: 52px; display: block; object-fit: contain; }

.vstats-vertical .vstats-desc {
    font-size: 1.1rem;
    color: #a0aec0;
}

@media (max-width: 768px) {
    .vstats-grid {
        grid-template-columns: 1fr;
    }
}
/* Why Choose Domino (from speed_domino_v2) */
.why-features-section {
    padding: 5rem 0;
    position: relative;
    background: rgba(17,24,39,0.5);
}

.why-features-background {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20px 20px, #00C4B3 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.05;
}

.why-features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.why-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.why-section-description {
    font-size: 1.25rem;
    color: #a0aec0;
    max-width: 48rem;
    margin: 0 auto;
}

.why-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

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

.why-feature-card {
    background: #1a202c;
    border-radius: 0.75rem;
    border: 1px solid #2d3748;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    will-change: transform;
}
/* Reveal animation for feature cards (1&3 first, then 2&4) */
.why-features-grid .why-feature-card { opacity: 0; transform: translateX(var(--reveal-x, 0)); transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease; }
.why-features-grid .why-feature-card.revealed { opacity: 1; transform: translateX(0); }

.why-feature-card:hover {
    transform: translateY(-6px);
    border-color: #00C4B3;
    box-shadow: 0 16px 36px rgba(0, 196, 179, 0.25);
    background-color: #111827;
}

/* Mobile auto-activation mirrors hover for feature cards */
.why-feature-card.auto-active {
    transform: translateY(-6px);
    border-color: #00C4B3;
    box-shadow: 0 16px 36px rgba(0, 196, 179, 0.25);
    background-color: #111827;
}
.why-feature-card.auto-active .why-feature-icon-bg { background-color: #00C4B3; box-shadow: 0 0 24px rgba(0, 196, 179, 0.45); }
.why-feature-card.auto-active .why-feature-icon { color: #fff; }
.why-feature-card.auto-active .why-feature-title { color: #00C4B3; }

.why-feature-content { display: flex; gap: 1rem; }
.why-feature-icon-container { flex-shrink: 0; }
.why-feature-icon-bg { padding: 0.75rem; border-radius: 0.5rem; background-color: rgba(0, 196, 179, 0.1); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.why-feature-card:hover .why-feature-icon-bg { background-color: #00C4B3; box-shadow: 0 0 24px rgba(0, 196, 179, 0.45); }
.why-feature-icon { color: #00C4B3; transition: color 0.3s ease; }
.why-feature-icon-bg img { width: 48px; height: 48px; display: block; object-fit: contain; filter: brightness(1) saturate(0) invert(0) hue-rotate(0deg); }
.why-feature-icon-bg img { transition: filter 0.25s ease; }
.why-feature-card:hover .why-feature-icon-bg img { filter: brightness(1.05) saturate(1) invert(1); }
.why-feature-card.auto-active .why-feature-icon-bg img { filter: brightness(1.05) saturate(1) invert(1); }
.why-feature-card:hover .why-feature-icon { color: white; }
.why-feature-text { flex: 1; }
.why-feature-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.why-feature-title { font-size: 1.25rem; transition: color 0.25s ease; }
.why-feature-card:hover .why-feature-title { color: #00C4B3; }
.why-feature-shield { height: 1.5rem; width: 1.5rem; opacity: 0.6; transition: opacity 0.25s ease, filter 0.25s ease; }
.why-feature-card:hover .why-feature-shield { opacity: 1; filter: drop-shadow(0 0 6px rgba(0, 196, 179, 0.4)); }
.why-feature-description { color: #a0aec0; margin-bottom: 0.75rem; }
.why-feature-stat { display: flex; align-items: center; gap: 0.5rem; color: #00C4B3; font-weight: 500; font-size: 0.875rem; }
/* About Section (from quality_domino_v8) */
:root {
    --primary: #20b2aa;
    --primary-dark: #1a3a52;
    --background: #0a1628;
    --card: #1a3a52;
    --accent: #3ac5be;
    --muted: #a0b0c0;
}

.interactive-button {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.interactive-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.4);
}

.interactive-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.interactive-button:hover::before {
    left: 100%;
}

.shield-section {
    padding: 80px 0;
    position: relative;
}

.shield-container {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.7) 0%, rgba(26, 58, 82, 0.7) 100%);
    /* Desktop: keep original shape */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    max-width: 800px;
}

.shield-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(32, 178, 170, 0.6);
}

.shield-container.validated {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(32, 178, 170, 0.5); }
    to { box-shadow: 0 0 30px rgba(32, 178, 170, 0.8); }
}

.shield-content {
    text-align: center;
    padding: 32px;
    max-width: 640px;
    margin-top: -60px;
}

.shield-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.shield-content p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Pyramid text layout inside About block */
.pyr-text { display: grid; justify-items: center; gap: 4px; margin-bottom: 16px; width: max-content; margin-left: auto; margin-right: auto; }
.pyr-text .pyr-line { display: inline-block; text-align: center; line-height: 1.3; }
/* Make vote card width follow the longest line */
.pyr-text .vote-card { width: 100%; }

/* Desktop rules were reverted per user's request: keep original layout */
/* Ensure no residual justification styles apply */
#about .pyr-text .pyr-paragraph { white-space: normal; text-align: center; }

.validation-result {
    margin-top: 16px;
    animation: validationAppear 0.3s ease-out;
}

@keyframes validationAppear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Vote account card */
.vote-card {
    background: rgba(17,24,39,0.5);
    border: 1px solid rgba(56,178,172,0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-header { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 8px; width: 100%; }

.vote-label {
    font-weight: 700;
}

.vote-value-wrap { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; }

.vote-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    background: #0f1419;
    color: #fff;
    border: 1px solid #2d3748;
    border-radius: 6px;
    padding: 6px 8px;
}

    .vote-copy-btn {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #2d3748;
        background: #1a202c;
        color: #ffffff;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    /* Mobile: make copy button height match validator address field */
    @media (max-width: 480px) {
        .vote-copy-btn {
            height: 100%;
            min-height: 44px;
        }
    }

.vote-copy-btn:hover {
    background: #111827;
    border-color: #38b2ac;
    box-shadow: 0 0 16px rgba(56,178,172,0.25);
}

.vote-copy-btn:active {
    transform: scale(0.98);
}

/* Copy icon/check animation */
.vote-copy-btn .icon-check { position: absolute; opacity: 0; transform: scale(0.5); transition: opacity 0.2s ease, transform 0.2s ease; }
.vote-copy-btn .icon-clipboard { transition: opacity 0.2s ease, transform 0.2s ease; }
.vote-copy-btn.copied .icon-clipboard { opacity: 0; transform: scale(0.5); }
.vote-copy-btn.copied .icon-check { opacity: 1; transform: scale(1); }

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: #1a202c;
}

/* Stake Calculator (from speed_domino_v7) */
.calc-section { padding: 5rem 0; background: rgba(17,24,39,0.5); }
.calc-container { max-width: 600px; margin: 0 auto; text-align: center; }
.calc-card { background: rgba(17,24,39,0.8); border: 1px solid rgba(56,178,172,0.2); border-radius: 12px; padding: 32px; margin-top: 24px; }
.calc-content { display: flex; flex-direction: column; gap: 24px; }
.calc-slider { display: flex; flex-direction: column; gap: 12px; }
.calc-input-wrap { display: flex; justify-content: center; }
.calc-input { width: 220px; padding: 8px 12px; background: #0f1419; color: #fff; border: 1px solid #2d3748; border-radius: 8px; text-align: center; }
.calc-label { font-weight: 600; }
.calc-range { width: 100%; height: 8px; border-radius: 4px; background: #2d3748; outline: none; appearance: none; -webkit-appearance: none; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #38b2ac; cursor: pointer; }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #38b2ac; cursor: pointer; border: none; }
.calc-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; }
.calc-reward { display: flex; flex-direction: column; gap: 6px; }
.calc-reward-value { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; color: #38b2ac; }
.calc-reward-value.secondary { color: #20b2aa; }
.calc-reward-label { font-size: 14px; color: #a0aec0; }
.calc-footer { padding-top: 16px; border-top: 1px solid #2d3748; }

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #38b2ac;
}

.footer-bottom {
    border-top: none;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal-dialog {
    background: #0f1419;
    border: 1px solid #2d3748;
    border-radius: 12px;
    width: min(880px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #2d3748; }
.modal-header h3 { margin: 0; font-size: 1.1rem; }
.modal-close { background: transparent; color: #fff; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.modal-body { padding: 12px; display: flex; align-items: center; justify-content: center; }
.modal-body iframe { width: min(472px, 100%); aspect-ratio: 472 / 302; height: auto; border: 0; display: block; }

@media (max-width: 480px) {
    /* Place modal slightly above center and make it larger on mobile */
    .modal-overlay { align-items: flex-start; padding-top: 8vh; padding-left: 8px; padding-right: 8px; }
    .modal-dialog { width: calc(100vw - 12px); max-height: 98vh; }
    .modal-body { padding: 8px; }
    /* Reduce height by ~5% from previous step */
    .modal-body iframe { width: 100%; aspect-ratio: 472 / 620; }
}

/* Enhanced Footer from lovart_free_v5 */
.enhanced-footer .footer-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: start; justify-content: normal; }
.enhanced-footer .footer-logo { width: 100%; max-width: none; height: auto; justify-self: start; }
.enhanced-footer .footer-logo-img { width: 64px; height: 64px; margin-bottom: 0; display: block; }
.enhanced-footer .footer-description { color: #8a91a9; max-width: 56ch; margin-top: 0.75rem; }
.enhanced-footer .footer-links { min-width: 180px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-self: center; text-align: left; }
.enhanced-footer .footer-contact { min-width: 180px; width: max-content; display: flex; flex-direction: column; align-items: flex-start; justify-self: end; text-align: left; }
/* Align footer titles to the left edge of their content */
.enhanced-footer .footer-contact .footer-title { align-self: flex-start; text-align: left; }
.enhanced-footer .footer-title { font-weight: 700; margin: 0 0 0.75rem 0; line-height: 1.6; text-align: left; align-self: flex-start; }
/* Keep Quick Links column centered */
.enhanced-footer .footer-links:not(.footer-contact) { align-items: flex-start; text-align: left; justify-self: center; width: max-content; min-width: 180px; }
.enhanced-footer .footer-links:not(.footer-contact) .footer-title { text-align: left; align-self: flex-start; }
.enhanced-footer .footer-links .footer-list { margin-top: 0; }
.enhanced-footer .footer-contact .footer-list { margin-top: 0.35rem; }
.enhanced-footer .footer-list { list-style: none; margin: 0; padding: 0; }
.enhanced-footer .footer-item { margin: 0 0 0.5rem 0; line-height: 1.6; font-size: 0.95rem; display: block; }
.enhanced-footer .footer-item a { color: #a0aec0; text-decoration: none; font-size: 0.95rem; display: block; line-height: 1.6; }
.enhanced-footer .footer-item a:hover { color: #38b2ac; }
.enhanced-footer .footer-contact .footer-list { list-style: none; padding: 0; margin: 0; }
.enhanced-footer .footer-contact .footer-item { color: #a0aec0; margin: 0 0 0.5rem 0; }
/* Contact list items with icons */
.enhanced-footer .footer-item-with-icon { display: flex; align-items: center; gap: 0.5rem; }
.enhanced-footer .footer-item-with-icon .footer-icon { color: #38b2ac; display: inline-flex; align-items: center; justify-content: center; }
.enhanced-footer .footer-item-with-icon svg { width: 20px; height: 20px; }
.enhanced-footer .footer-item a { font-size: 0.95rem; }
.enhanced-footer .footer-social { display: flex; gap: 0.5rem; margin-top: -0.25rem; }
.enhanced-footer .social-icon { width: 36px; height: 36px; border-radius: 50%; background: #38b2ac; color: #fff; display: flex; align-items: center; justify-content: center; transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease; box-shadow: none; transform: scale(1); }
.enhanced-footer .social-icon-telegram { background: #38b2ac; border: none; }
.enhanced-footer .social-icon-telegram svg { width: 32px; height: 32px; display: block; color: #ffffff; }
.enhanced-footer .social-icon img { width: 32px; height: 32px; display: block; object-fit: contain; }
.enhanced-footer .social-icon:hover { background: #4fd1c5; transform: scale(1.08); box-shadow: 0 0 20px rgba(79,209,197,0.6); }
.enhanced-footer .social-icon:focus-visible { outline: none; background: #4fd1c5; transform: scale(1.08); box-shadow: 0 0 20px rgba(79,209,197,0.6); }

/* FAQ */
.faq-section { padding: 5rem 0; }

/* Footer: bring Contact column closer to Quick Links on desktop */
@media (min-width: 769px) {
    .enhanced-footer .footer-contact { margin-left: 0; }
}
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: rgba(26,32,44,0.6); border: 1px solid #2d3748; border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: transparent; color: #fff; border: none; cursor: pointer; font-weight: 600; text-align: left; }
.faq-toggle { color: #38b2ac; }
.faq-answer { display: none; padding: 0 1.25rem 1rem; color: #a0aec0; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-content,
    .network-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .network-text h2,
    .network-text p {
        text-align: center;
    }
    
    .domino-showcase { gap: 0.5rem; }
    
    .hero-buttons,
    .cta-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    
    .btn { width: 100%; max-width: 320px; justify-content: center; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    
    .process-steps { grid-template-columns: 1fr; gap: 1rem; }

    .container { padding: 0 16px; }
    section { padding-left: 0; padding-right: 0; }
    /* Lift hero content up by additional 5% of viewport height on mobile */
    .hero-content { transform: translateY(calc(-20px - 5vh)); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    
    .section-title { font-size: 1.75rem; }
    
    .main-logo { width: 132px; height: 132px; }
    
    .domino-showcase { justify-content: center; }
    /* Further reduce hero domino tiles on very small screens */
    .domino-showcase .domino-tile:not(.small) { width: 36px; height: 72px; }
    .domino-showcase .domino-dot { width: 3px; height: 3px; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    
    .container { padding: 0 14px; }

    .vstats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    /* Disable reveal animation for stats on mobile */
    #validator-stats .vstats-card.reveal-seq { opacity: 1 !important; transform: none !important; transition: none !important; }
    #validator-stats .vstats-card.reveal-seq.revealed { opacity: 1 !important; transform: none !important; transition: none !important; }
    .vstats-horizontal { width: 100%; min-width: 0; }
    /* Keep vertical card centered on mobile */
    .vstats-vertical { justify-self: center; }
    /* Transform horizontal cards to appear vertical on mobile */
    .vstats-card.as-vertical-mobile,
    .vstats-card.as-vertical-apy {
        width: 132px;
        height: 344px;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 0.66rem;
        position: relative;
    }
    .vstats-card.as-vertical-mobile::before,
    .vstats-card.as-vertical-apy::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        background: #2d3748;
        transform: translateY(-50%);
    }
    .vstats-card.as-vertical-mobile .vstats-divider,
    .vstats-card.as-vertical-apy .vstats-divider { display: none; }
    .vstats-card.as-vertical-mobile .vstats-value,
    .vstats-card.as-vertical-apy .vstats-value { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: -2rem; margin-top: 2rem; }
    .vstats-card.as-vertical-mobile .vstats-icon,
    .vstats-card.as-vertical-apy .vstats-icon { margin-top: 4rem; }
    .vstats-card.as-vertical-mobile .vstats-desc,
    .vstats-card.as-vertical-apy .vstats-desc { margin-top: -3rem; text-align: center; }
    /* Hide empty center wrapper after moving the vertical card */
    #validator-stats .vstats-center:empty { display: none; }

    .enhanced-footer .footer-container { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; justify-content: flex-start; padding-left: 1.5rem !important; }
    .enhanced-footer .footer-logo { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
    .enhanced-footer .footer-links, .enhanced-footer .footer-contact { align-items: flex-start; }
    .enhanced-footer .footer-title { text-align: left; }
    .enhanced-footer .footer-item, .enhanced-footer .footer-item a { text-align: left; }
    /* Hide Quick Links section on mobile */
    .enhanced-footer .footer-links:not(.footer-contact) { display: none; }
    /* Hide Contact title and 24/7 support item on mobile */
    .enhanced-footer .footer-contact .footer-title { display: none; }
    .enhanced-footer .footer-item-with-icon:last-child { display: none; }

    /* About (shield) mobile adjustments */
    .shield-section { padding: 56px 0; }
    .shield-container {
        min-height: 440px;
        width: calc(100% - 32px);
        margin: 0 16px;
        padding: 24px;
        box-sizing: border-box;
        /* Mobile: lengthen the upper/lower adjacent sides to reduce sharp top/bottom */
        clip-path: polygon(50% 3%, 97% 18%, 97% 82%, 50% 97%, 3% 82%, 3% 18%);
    }
    .shield-content { max-width: 100%; padding: 16px; margin-left: auto; margin-right: auto; margin-top: -20px; }
    /* Ensure pyramid text spans container width for proper centering */
    .pyr-text { width: 100%; }
    .pyr-text .pyr-line { font-size: 0.85rem; line-height: 1.3; }
    /* About: prevent horizontal overflow on small screens */
    #about .pyr-text .pyr-line:nth-child(n+3) {
        display: block;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }
    #about .pyr-text .pyr-line:nth-child(n+3)::after { content: none; }

    /* Keep long validator address inside container */
    .vote-value-wrap { width: 100%; display: flex; gap: 0.5rem; align-items: center; justify-content: center; }
    .vote-value {
        flex: 1 1 auto;
        max-width: calc(100% - 44px); /* space for copy button */
        overflow-wrap: anywhere;
        word-break: break-word;
        /* Keep increased size (~+15%) while clamped to two lines */
        font-size: 0.69rem;
        text-align: center;
        /* Clamp to exactly two lines on mobile */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* About (mobile): justify paragraph after first two lines */
    #about .pyr-text { display: block; text-align: justify; text-justify: inter-word; }
    /* Keep first two lines as separate centered lines ("We" and "are a professional") */
    #about .pyr-text .pyr-line:nth-child(-n+2) { display: block; text-align: center; }
    /* Merge the rest into a single flowing paragraph without forced breaks */
    #about .pyr-text .pyr-line:nth-child(n+3) { display: inline; white-space: normal; text-align: justify; overflow-wrap: normal; word-break: normal; }
    /* Ensure spaces between inline parts and no trailing space */
    #about .pyr-text .pyr-line:nth-child(n+3)::after { content: ' '; }
    #about .pyr-text .pyr-line:last-child::after { content: ''; }
}

@media (min-width: 360px) and (max-width: 480px) {
    /* Footer: keep vertical stacking and left alignment on wider mobile */
    .enhanced-footer .footer-container { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; justify-content: flex-start; padding-left: 1.5rem !important; }
    .enhanced-footer .footer-logo { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
    .enhanced-footer .footer-links, .enhanced-footer .footer-contact { align-items: flex-start; }
    .enhanced-footer .footer-title { text-align: left; }
    .enhanced-footer .footer-list { display: block; }
    /* Hide Quick Links section on wider mobile too */
    .enhanced-footer .footer-links:not(.footer-contact) { display: none; }
    /* Hide Contact title and 24/7 support item on wider mobile too */
    .enhanced-footer .footer-contact .footer-title { display: none; }
    .enhanced-footer .footer-item-with-icon:last-child { display: none; }
}

