/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: 'Inter', sans-serif;
    background: #020610;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Nav ── */
.nav {
    background: rgba(2, 6, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav.scrolled {
    background: rgba(2, 6, 16, 0.92);
    border-bottom-color: rgba(79, 209, 184, 0.1);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #4FD1B8;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-menu.open { max-height: 320px; }
.nav-bar:last-child { width: 1.2rem; }
.nav-toggle.active .nav-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active .nav-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 1.2rem; }

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, #040B16 0%, #0a1628 30%, #0d2a3a 55%, #0a3d4a 75%, #040B16 100%);
}
.hero-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* Geometric shapes */
.geo {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}
.geo-1 {
    top: 10%;
    left: 5%;
    width: 180px;
    height: 180px;
    background: #4FD1B8;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph1 8s ease-in-out infinite;
}
.geo-2 {
    top: 25%;
    right: 8%;
    width: 120px;
    height: 120px;
    border: 3px solid #7EE8D4;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}
.geo-3 {
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: #2EC4A6;
    border-radius: 50%;
    animation: float 5s ease-in-out infinite reverse;
}
.geo-4 {
    top: 60%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(79, 209, 184, 0.15);
    animation: spin 12s linear infinite;
}
.geo-5 {
    top: 5%;
    right: 25%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(126, 232, 212, 0.3);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite;
}

@keyframes morph1 {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 36% 64% / 54% 66% 34% 46%; }
    50% { border-radius: 42% 58% 64% 36% / 36% 42% 58% 64%; }
    75% { border-radius: 64% 36% 42% 58% / 58% 36% 64% 42%; }
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll indicator */
.scroll-indicator { opacity: 0.6; }
.scroll-dot { animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #4FD1B8;
    color: #040B16;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.875rem 1.75rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #7EE8D4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 209, 184, 0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.875rem 1.75rem;
    border-radius: 60px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.25s ease;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ── Tags ── */
.tag-mint {
    color: #4FD1B8;
    background: rgba(79, 209, 184, 0.1);
    border: 1px solid rgba(79, 209, 184, 0.2);
    padding: 0.35rem 0.875rem;
    border-radius: 60px;
    font-family: 'Inter', sans-serif;
}

/* ── Feature Cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 1px;
}
.feature-card {
    background: #040B16;
    transition: background 0.3s ease;
}
.feature-card:hover { background: #061222; }

/* ── Menu Cards ── */
.menu-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 1.5rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.menu-card:hover {
    border-color: rgba(79, 209, 184, 0.2);
    background: rgba(255,255,255,0.05);
}

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-img {
    transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }

/* ── Inputs ── */
.input-field {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s ease, background 0.25s ease;
    outline: none;
    width: 100%;
}
.input-field::placeholder { color: rgba(255,255,255,0.25); }
.input-field:focus {
    border-color: rgba(79, 209, 184, 0.5);
    background: rgba(255,255,255,0.07);
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.col-span-2 { grid-column: span 1; }
}
@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Nav height ── */
.nav { height: 72px; }
