:root {
    --ink: #0a0e27;
    --paper: #0f1428;
    --accent: #00ff88;
    --accent-soft: #00ffcc;
    --accent-secondary: #ff006e;
    --accent-tertiary: #00d4ff;
    --nav-ink: #ffffff;
    --glow-primary: 0 0 10px rgba(0, 255, 136, 0.3);
    --glow-secondary: 0 0 15px rgba(255, 0, 110, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--nav-ink);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(255, 0, 110, 0.04) 0%, transparent 50%),
        linear-gradient(165deg, #0a0e27 0%, var(--paper) 100%);
}

.site-header {
    padding: 4.5rem 1.25rem 2rem;
    text-align: center;
}

.site-title {
    margin: 0;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    color: var(--accent);
    text-shadow: 
        0 0 10px var(--accent),
        0 0 20px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(255, 0, 110, 0.3);
}

.site-tagline {
    margin: 0.6rem auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.4;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 1.5rem auto 0;
    padding: 0;
    max-width: 68rem;
}

.site-nav a {
    display: block;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    background: rgba(15, 20, 40, 0.6);
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    transform: translateY(-2px);
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent);
    box-shadow: var(--glow-primary);
}

.site-nav a.active {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--glow-primary);
}

.page-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    text-align: center;
}

.page-content h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.page-content p {
    margin: 0 auto;
    max-width: 60ch;
    font-size: 1.05rem;
    line-height: 1.65;
}

.sample-context {
    max-width: 68rem;
    margin: -0.5rem auto 1.5rem;
    padding: 0 1.25rem;
}

.sample-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.sample-breadcrumbs a {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 600;
}

.sample-breadcrumbs a:hover,
.sample-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.sample-breadcrumbs strong {
    color: var(--nav-ink);
    font-weight: 700;
}

.sample-switcher {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-switcher-link {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 20, 40, 0.6);
    border: 2px solid rgba(0, 255, 136, 0.2);
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 180ms ease;
}

.sample-switcher-link:hover,
.sample-switcher-link:focus-visible {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent);
    box-shadow: var(--glow-primary);
}

.sample-detail {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

.sample-hero {
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.sample-kicker {
    margin: 0 0 0.45rem;
    color: var(--accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sample-hero h1 {
    margin: 0;
    color: var(--accent);
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    text-shadow: var(--glow-primary);
}

.sample-subtitle {
    margin: 0.8rem auto 0;
    max-width: 40rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.sample-section {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 2px solid rgba(0, 255, 136, 0.18);
    border-radius: 8px;
    background: rgba(15, 20, 40, 0.58);
}

.sample-section h2 {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.sample-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.7;
}

.sample-section p + p {
    margin-top: 0.85rem;
}

.sample-action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sample-section a {
    color: var(--accent-soft);
    font-weight: 700;
}

.sample-action a {
    display: inline-block;
    padding: 0.65rem 0.9rem;
    border: 2px solid rgba(0, 255, 136, 0.35);
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.08);
    color: var(--nav-ink);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sample-action a:hover,
.sample-action a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--glow-primary);
}

.sample-list {
    margin: 0;
    padding-left: 1.3rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.sample-list li + li {
    margin-top: 0.45rem;
}

.sample-video {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    background: #050713;
    aspect-ratio: 16 / 9;
}

.sample-video iframe,
.sample-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.sample-banner-frame {
    display: grid;
    min-height: 310px;
    place-items: center;
    overflow: auto;
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    background: #050713;
}

.sample-banner-frame iframe {
    display: block;
    width: 300px;
    height: 250px;
    border: 0;
}

.sample-banner-frame-wide iframe {
    width: 500px;
    height: 250px;
}

.sample-banner-frame-skyscraper iframe {
    width: 300px;
    height: 600px;
}

.sample-banner-frame-billboard iframe {
    width: 978px;
    height: 250px;
}

.sample-banner-frame-leaderboard iframe {
    width: 970px;
    height: 150px;
}

.sample-banner-frame-tall iframe {
    height: 290px;
    width: 350px;
}

.sample-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.sample-gallery img {
    display: block;
    width: 100%;
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    background: #050713;
}

.sample-section pre {
    overflow-x: auto;
    margin: 0;
    padding: 1rem;
    border: 2px solid rgba(0, 255, 204, 0.18);
    border-radius: 8px;
    background: #050713;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: left;
}

.sample-section code {
    font-family: Consolas, "Courier New", monospace;
}

.project-category-page {
    max-width: 72rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.project-card-link {
    display: block;
    height: 100%;
}

.project-item {
    height: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    background: rgba(15, 20, 40, 0.6);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card-link:hover .project-item,
.project-card-link:focus-visible .project-item {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--glow-primary);
}

.project-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.project-item h3 {
    margin: 0.9rem 0 0.45rem;
    color: var(--accent);
}

.project-item p {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.h5-ads-page {
    max-width: 72rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-items: center;
    margin-top: 1.5rem;
}

.video-grid video {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 6 / 5;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    background: rgba(15, 20, 40, 0.6);
}

@media (min-width: 900px) {
    .project-grid,
    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sample-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sample-gallery img:only-child {
        max-width: 48rem;
        justify-self: center;
    }
}
