/* ═══════════════════════════════════════════════════════
   ninja.ing Showcase — Pure Black & White
   Copyright 2026 Scott Gardner. All rights reserved.
   ═══════════════════════════════════════════════════════ */

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

:root {
    --black: #000;
    --white: #fff;
    --grey-900: #0a0a0a;
    --grey-800: #111;
    --grey-700: #1a1a1a;
    --grey-400: #666;
    --grey-300: #888;
    --grey-200: #aaa;
    --glow: rgba(255, 255, 255, 0.06);
    --glow-strong: rgba(255, 255, 255, 0.12);
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links a {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        var(--black);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

/* ── Enso Circle (SVG) ────────────────────────────────── */
.enso {
    width: 160px;
    height: 160px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: ensoFadeIn 2s ease-out 0.3s forwards;
}

.enso-circle {
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 503;
    stroke-dashoffset: 503;
    animation: ensoDraw 3s ease-in-out 0.5s forwards;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
}

@keyframes ensoDraw {
    0% { stroke-dashoffset: 503; }
    80% { stroke-dashoffset: 30; }
    100% { stroke-dashoffset: 40; }
}

@keyframes ensoFadeIn {
    to { opacity: 1; }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 1s forwards;
}

.hero h1 em {
    font-style: normal;
    font-weight: 400;
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--grey-300);
    max-width: 520px;
    margin: 0 auto 2rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.3s forwards;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.6s forwards;
}

.hero-cta:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

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

/* ── Scroll Hint ──────────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--grey-400);
    animation: bob 2s ease-in-out infinite;
    opacity: 0;
    animation: bob 2s ease-in-out infinite, fadeUp 1s ease-out 2.5s forwards;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Titles ───────────────────────────────────── */
.section-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem auto 0;
}

/* ── Products ─────────────────────────────────────────── */
.products {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: var(--grey-900);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.product-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--grey-300);
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-icon {
    color: var(--white);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.product-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--grey-300);
    line-height: 1.7;
    flex: 1;
    position: relative;
    z-index: 1;
}

.product-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-400);
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-link {
    color: var(--white);
}

/* ── Stats ────────────────────────────────────────────── */
.stats {
    padding: 5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--grey-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-400);
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links a {
    opacity: 0.3;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--grey-400);
    opacity: 0.5;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
        font-size: 0.75rem;
    }

    .products {
        padding: 4rem 1.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        padding: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .enso {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

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

    .nav-brand span {
        display: none;
    }
}
