:root {
    /* Claymorphism Theme & Vibrant Reds */
    --bg-color: #fff5f5;
    --text-main: #4a0404;
    --text-muted: #7f1d1d;

    --accent-primary: #dc2626;
    --accent-secondary: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.4);

    /* Clay Variables */
    --clay-bg: #ffffff;
    --clay-shadow-outer: 10px 10px 30px rgba(220, 38, 38, 0.1),
        -10px -10px 30px #ffffff;
    --clay-shadow-inner: inset 4px 4px 10px rgba(255, 255, 255, 0.8),
        inset -4px -4px 15px rgba(220, 38, 38, 0.08);

    --clay-btn-bg: #ef4444;
    --clay-btn-inner: inset 4px 4px 10px rgba(255, 255, 255, 0.4),
        inset -4px -4px 10px rgba(153, 27, 27, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Prevent all horizontal scrolling natively */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(220, 38, 38, 0.08) 2px, transparent 2px);
    background-size: 30px 30px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    position: relative;
}

h1,
h2,
h3,
h4,
.nav-links a {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Animations --- */
@keyframes float {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ambient Background Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(239, 68, 68, 0.2);
    top: -100px;
    left: -150px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(220, 38, 38, 0.15);
    bottom: 20%;
    right: -200px;
    animation-delay: -7s;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 245, 245, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.05);
}

.logo-container img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
    background: var(--clay-bg);
    box-shadow: var(--clay-shadow-outer), var(--clay-shadow-inner);
}

/* Nav Auth Buttons */
.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    border-left: 2px solid rgba(220, 38, 38, 0.1);
    padding-left: 20px;
}

.nav-login {
    color: var(--accent-primary) !important;
}

.nav-register {
    background: var(--clay-btn-bg) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2), var(--clay-btn-inner) !important;
}

.nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3), var(--clay-btn-inner) !important;
    background: var(--accent-primary) !important;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 12vh 20px 8vh;
    position: relative;
    animation: fadeUp 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

/* Clay Button */
.btn {
    padding: 16px 40px;
    background: var(--clay-btn-bg);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 25px rgba(220, 38, 38, 0.3), var(--clay-btn-inner);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(220, 38, 38, 0.4), var(--clay-btn-inner);
    background: var(--accent-primary);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(220, 38, 38, 0.3), inset 4px 4px 10px rgba(153, 27, 27, 0.6);
}

/* Clay Contract Pill */
.contract-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clay-bg);
    padding: 12px 25px;
    border-radius: 40px;
    margin-top: 40px;
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--clay-shadow-outer), var(--clay-shadow-inner);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 90vw;
}

.contract-address-text {
    display: inline-block;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    margin-left: 5px;
}

.contract-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.15), var(--clay-shadow-inner);
    border-color: rgba(239, 68, 68, 0.2);
}

.contract-pill:active {
    transform: translateY(1px);
    box-shadow: var(--clay-shadow-inner);
}

.contract-pill svg {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    fill: var(--accent-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3), inset 2px 2px 5px rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 60px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 10px;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.5);
    opacity: 0.5;
}

/* Grid Layouts & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Claymorphism Cards */
.card {
    background: var(--clay-bg);
    padding: 40px 30px;
    border-radius: 35px;
    box-shadow: var(--clay-shadow-outer), var(--clay-shadow-inner);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.12), var(--clay-shadow-inner);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    font-weight: 800;
}

.card h3::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent-secondary);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.6), 0 4px 8px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.7;
}

/* JS Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Clay Stats Table Wrapper */
.table-wrapper {
    background: var(--clay-bg);
    border-radius: 35px;
    padding: 30px;
    box-shadow: var(--clay-shadow-outer), var(--clay-shadow-inner);
    overflow-x: auto;
    max-width: 100vw;
}

.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.stats-table tr {
    background: rgba(255, 245, 245, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-table tr:hover {
    transform: scale(1.01) translateX(5px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.08);
}

.stats-table th,
.stats-table td {
    padding: 20px 25px;
    text-align: left;
}

.stats-table th:first-child,
.stats-table td:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.stats-table th:last-child,
.stats-table td:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.stats-table th {
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 40%;
}

.stats-table td {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.15rem;
}

.highlight-text {
    color: var(--accent-primary);
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

/* --- AWESOME CENTERED FOOTER --- */
footer {
    background: var(--clay-bg);
    padding: 80px 20px 40px;
    margin-top: 60px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -10px 40px rgba(220, 38, 38, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.footer-logo {
    height: 55px;
    margin-bottom: 20px;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 500;
}

.footer-links-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-links {
    text-align: center;
}

.footer-links h4 {
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 2px solid rgba(220, 38, 38, 0.1);
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clay-bg);
    box-shadow: 4px 4px 10px rgba(220, 38, 38, 0.1),
        -4px -4px 10px #ffffff,
        inset 1px 1px 3px rgba(255, 255, 255, 0.8);
    color: var(--accent-primary);
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
}

.social-links a:hover {
    color: #fff;
    background: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
    transform: translateY(-3px);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .card {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .table-wrapper {
        padding: 20px 10px;
        border-radius: 25px;
    }

    .stats-table {
        min-width: 100%;
    }

    .stats-table th,
    .stats-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .stats-table th {
        padding-bottom: 5px;
        color: var(--accent-primary);
        border-radius: 0;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .stats-table td {
        padding-top: 0;
        border-radius: 0;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .contract-address-text {
        max-width: 120px;
    }

    /* Mobile Nav */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clay-bg);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 15px 30px rgba(220, 38, 38, 0.1);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .nav-links.active {
        max-height: 500px;
        padding: 15px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-radius: 0;
        margin: 0;
    }

    .nav-auth-container {
        flex-direction: column;
        border-left: none;
        border-top: 2px solid rgba(220, 38, 38, 0.1);
        margin: 10px 0 0 0;
        padding: 20px 0 10px 0;
        width: 100%;
        gap: 10px;
    }

    .nav-register {
        width: 80% !important;
        border-radius: 20px !important;
    }

    .nav-links a:hover {
        box-shadow: none;
        background: rgba(220, 38, 38, 0.05);
    }

    /* Footer Mobile */
    footer {
        padding: 50px 20px 30px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }

    .footer-links-container {
        gap: 40px;
        flex-direction: column;
    }

    .contract-pill {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}