:root {
    --bg: #0b0f14;
    --fg: #e9eef5;
    --muted: #9fb0c0;
    --accent: #58d0ff;
    --edge: #2a3340;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font: 16px/1.5 system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--fg);
    background:
        radial-gradient(1200px 600px at 10% 10%, #13202c 0%, transparent 60%),
        radial-gradient(1200px 600px at 90% 20%, #112638 0%, transparent 60%),
        linear-gradient(180deg, #091017, #0b0f14);
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--edge)
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid var(--edge);
    margin-top: 32px
}

.brand {
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.5px
}

.brand span {
    color: var(--accent);
    font-weight: 800
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 16px
}

.nav a.cta {
    color: var(--fg);
    border: 1px solid var(--accent);
    padding: 6px 10px;
    border-radius: 10px
}

.nav a.secondary {
    opacity: 0.8
}

.nav a.disabled {
    opacity: 0.5;
    pointer-events: none
}

.hero {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    background: url('/assets/hero.jpeg') center/cover no-repeat;
    border-radius: 16px;
    border: 1px solid var(--edge);
    color: var(--fg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    /* overlay to improve text readability */
}

.hero>* {
    position: relative;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 10px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

.hero p {
    color: #e2efff;
    margin: 0 0 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

/* === BUTTONS === */
.btn {
    appearance: none;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--fg);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.btn:hover {
    background: rgba(88, 208, 255, 0.1);
    transform: translateY(-2px);
}

/* Active/clicked button: filled style */
.btn.active {
    background: var(--accent);
    color: #051018;
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn.active:hover {
    background: #4bc1f0;
}

/* === TILE GRID === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--edge);
    border-radius: 16px;
    padding: 18px 8px;
    text-decoration: none;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.05);
    transition: transform .08s ease, border-color .08s ease, background .15s ease;
}

.tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.tile .emoji {
    font-size: 36px;
    margin-bottom: 8px;
}

.tile .label {
    font-weight: 600;
}

/* === MOBILE TWEAKS === */
@media (max-width:600px) {
    .hero h1 {
        font-size: 34px;
    }

    /* stack buttons vertically on small screens */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-actions .btn,
    .hero-actions .btn.outline {
        width: 100%;
        max-width: 280px;
        /* keeps them from being too wide */
        text-align: center;
    }
}

/* === DESKTOP LAYOUT ADJUSTMENTS === */
@media (min-width:1100px) {

    /* Option 1: all 7 in one row */
    .grid {
        grid-template-columns: repeat(7, minmax(140px, 1fr));
        justify-content: center;
        gap: 16px;
    }

    /* If you prefer 4+3 instead, comment the above and use this instead:
  .grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    justify-content: center;
    gap: 20px 24px;
  }
  */

    /* Unified button look for <a> and <button> */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        /* same sizing on both elements */
        font-family: inherit;
        font-size: 16px;
        line-height: 1;
        font-weight: 700;

        padding: 12px 18px;
        border-radius: 12px;

        /* outline by default, constant border width to prevent "jump" */
        border: 2px solid var(--accent);
        background: transparent;
        color: var(--fg);

        text-decoration: none;
        /* kill underline on <a> */
        cursor: pointer;
        -webkit-appearance: none;
        /* normalize <button> */
        appearance: none;

        transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
    }

    /* Hover/Focus – same for both states */
    .btn:hover,
    .btn:focus-visible {
        transform: translateY(-2px);
        background: rgba(88, 208, 255, 0.10);
        box-shadow: 0 2px 6px rgba(0, 0, 0, .30);
        text-decoration: none;
        /* keep anchors from underlining on hover */
        outline: none;
    }

    /* “Filled” variant when active (after click) */
    .btn.active {
        background: var(--accent);
        color: #051018;
        border-color: var(--accent);
    }

    /* Keep hover behavior identical even when active */
    .btn.active:hover,
    .btn.active:focus-visible {
        background: #4bc1f0;
        transform: translateY(-2px);
    }

    /* "Coming soon" overlay badge for disabled buttons */
    .btn[disabled] {
        position: relative;
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn[disabled]::after {
        content: "Coming Soon";
        position: absolute;
        top: -10px;
        right: -10px;
        font-size: 11px;
        font-weight: 700;
        color: #051018;
        background: var(--accent);
        padding: 2px 6px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
        white-space: nowrap;
    }

    /* Optional: make both hero buttons equal width without stretching forever */
    .hero-actions .btn {
        min-width: 160px;
    }

}

/* --- Unify buttons on ALL screens --- */
.btn,
button.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--fg);
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}

/* Hover only on devices that actually hover */
@media (hover: hover) {

    .btn:not([disabled]):not(.disabled):hover,
    a.btn:not([aria-disabled="true"]):hover {
        transform: translateY(-2px);
        background: rgba(88, 208, 255, 0.10);
        box-shadow: 0 2px 6px rgba(0, 0, 0, .30);
        text-decoration: none;
        outline: none;
    }
}

/* Active/filled variant (keeps your existing class) */
.btn.active {
    background: var(--accent);
    color: #051018;
    border-color: var(--accent);
}

@media (hover: hover) {

    .btn.active:hover,
    .btn.active:focus-visible {
        background: #4bc1f0;
        transform: translateY(-2px);
    }
}

/* Disabled state that works for button, link, and ARIA-disabled */
.btn[disabled],
.btn.disabled,
a.btn[aria-disabled="true"] {
    position: relative;
    opacity: .6;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

/* “Coming soon” badge on ALL screens */
.btn[disabled]::after,
.btn.disabled::after,
a.btn[aria-disabled="true"]::after {
    content: "Coming soon";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 11px;
    font-weight: 700;
    color: #051018;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    white-space: nowrap;
}

/* Ensure the container is flex on all screens */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Keep your small-screen stacking */
@media (max-width:600px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn,
    .hero-actions .btn.outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* --- Gallery modal --- */
.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: saturate(120%) blur(1px);
}

.gallery-panel {
    position: relative;
    margin: 4rem auto;
    max-width: 1100px;
    background: #0f1115;
    border-radius: 16px;
    padding: 1rem 1.25rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.gallery-header h3 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: .2px;
}

.gallery-close {
    background: transparent;
    border: none;
    color: #aeb4bf;
    font-size: 1.75rem;
    cursor: pointer;
}

.gallery-close:hover {
    color: #fff;
}

.gallery-grid {
    margin-top: .75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0c0e12;
    border: 1px solid rgba(255, 255, 255, .06);
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-grid figcaption {
    padding: .55rem .65rem;
    color: #c8cfda;
    font-size: .9rem;
}

/* --- Gallery modal (lightbox) --- */
.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px) saturate(120%);
}

/* translucent panel, much wider */
.gallery-panel {
    position: relative;
    margin: 4rem auto;
    max-width: 92vw;
    background: rgba(15, 17, 21, .55);
    backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.gallery-header h3 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    letter-spacing: .2px;
}

.gallery-close {
    background: transparent;
    border: none;
    color: #cfd5e0;
    font-size: 1.75rem;
    cursor: pointer;
}

.gallery-close:hover {
    color: #fff;
}

/* bigger thumbs */
.gallery-grid {
    margin-top: .75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

/* card shell (translucent) */
.gallery-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
}

/* large image tiles */
.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* hide captions entirely */
.gallery-grid figcaption {
    display: none;
}

/* If only one image → hero mode */
.gallery-grid.single {
    grid-template-columns: 1fr;
}

.gallery-grid.single img {
    height: 72vh;
    object-fit: contain;
    background: rgba(0, 0, 0, .35);
    border-radius: 12px;
}

/* --- Gallery modal (lightbox) --- */
.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(12px) saturate(140%);
}

.gallery-panel {
    position: relative;
    margin: 4rem auto;
    max-width: 95vw;
    background: rgba(15, 17, 21, .35);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* close button floats top-right */
.gallery-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, .35);
    border: none;
    color: #e2e7ef;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.gallery-close:hover {
    background: rgba(0, 0, 0, .55);
    color: #fff;
}

/* grid + single-image hero rules (if not already added) */
.gallery-grid {
    margin-top: .75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-grid figcaption {
    display: none;
}

.gallery-grid.single {
    grid-template-columns: 1fr;
}

.gallery-grid.single img {
    height: 72vh;
    object-fit: contain;
    background: rgba(0, 0, 0, .35);
    border-radius: 12px;
}

.site-frame {
    display: flex;
    flex-direction: column;
    /* normal: header then main */
}

.site-frame {
    display: flex;
    flex-direction: column;
    /* default desktop flow: header → main → footer */
}

/* Mobile layout order: main → header → footer */
@media (max-width: 700px) {
    .wrap {
        order: 1;
    }

    /* hero + tiles first */
    .site-header {
        order: 2;
    }

    /* nav ribbon next */
    .site-footer {
        order: 3;
    }

    /* "artiFACTS • a McMakeIt project" last */
}

/* Phone frame wrapper */
.phone {
    width: 320px;
    /* tweak: 280–380 works well */
    margin: 0 auto;
    border: 10px solid #0f1318;
    /* bezel color */
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    background: #0b0f14;
    position: relative;
}

/* camera notch */
.phone::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background: #0f1318;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* the screen area holds the embed; 9:16 aspect so TikTok fits */
.phone .screen {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--edge);
    aspect-ratio: 9 / 16;
    background: rgba(255, 255, 255, .03);
}

/* tighten the TikTok white chrome inside */
.phone blockquote.tiktok-embed {
    margin: 0 !important;
}

/* Shared base styles */
.brand-title {
    font-size: 3rem;
    /* adjust size as needed */
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.brand-title .mc,
.brand-title .it {
    color: #fff;
}

/* v1 = solid blue "Make" */
.brand-title.v1 .make {
    color: #58d0ff;
    font-weight: 800;
}

/* v2 = gradient "Make" */
.brand-title.v2 .make {
    background: linear-gradient(90deg, #58d0ff, #a0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* v3 = glowing "Make" */
.brand-title.v3 .make {
    color: #58d0ff;
    text-shadow: 0 0 8px #58d0ff, 0 0 16px #58d0ff;
}

/* v4 = hover animation on "Make" */
.brand-title.v4 .make {
    color: #58d0ff;
    transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.brand-title.v4 .make:hover {
    text-shadow: 0 0 10px #58d0ff, 0 0 20px #58d0ff;
    transform: scale(1.1);
}

@media (min-width: 900px) {
    .section .grid.grid-2>.product-visual {
        display: grid;
        /* keep grid if you like */
        align-items: center;
        /* vertical centering */
        justify-items: start;
        /* <-- left align the image */
    }

    .screenshot {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: inherit;
        display: block;
    }

    /* Mobile-first: stack, then flip order for grids that opt in */
    .section .grid.grid-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    @media (max-width: 900px) {

        /* put media first, card second for flip-mobile sections */
        .grid-2.flip-mobile .product-visual {
            order: 1;
        }

        .grid-2.flip-mobile .card {
            order: 2;
        }

        /* let media breathe on phones */
        .product-visual .screenshot,
        .product-visual video.screenshot {
            max-height: clamp(260px, 50vh, 420px);
        }
    }

    /* keep your existing two-column layout on desktop */
    @media (min-width: 900px) {
        .section .grid.grid-2 {
            grid-template-columns: 1.1fr 0.9fr;
            align-items: center;
            column-gap: 28px;
        }
    }


}