@font-face {
    font-family: 'Asimovian';
    src: url('./fonts/Asimovian.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('./fonts/Roboto.ttf') format('truetype');
    font-style: normal;
    font-weight: 100;
}

:root {
    --bg: 255, 255, 255;
    --text: 16, 16, 16;
    --muted: 64, 64, 64;
    --muted-inv: 160, 160, 160;
    --accent: 222, 55, 40;
    --card: 240, 240, 240;
    --dark-bg: 16, 16, 16;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    color: rgb(var(--text));
    font-size: 18px;
    line-height: 1.6;
    background: rgb(var(--bg));
}

h1, h2, h3 {
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px;
}

.menu-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .menu-button svg line {
        transition: transform 0.25s;
        transform-origin: center;
    }

    .menu-button:hover svg line:nth-child(1) {
        transform: translateX(2px) rotate(180deg);
    }

    .menu-button:hover svg line:nth-child(2) {
        stroke: rgb(var(--accent));
        transform: translateX(-2px) rotate(180deg);
    }

    .menu-button:hover svg line:nth-child(3) {
        transform: translateX(2px) rotate(180deg);
    }

.logo {
    user-select: none;
    cursor: default;
    font-family: Asimovian;
    font-weight: 700;
    font-size: 1.5em;
}

.logo > img {
    width: 32px;
    height: 32px;
    position: relative;
    top: 6px;
    margin-right: 10px;
}

.btn {
    background: rgb(var(--accent));
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: 0.75s;
}

/* HERO */
.hero {
    background: url('./img/intro-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    font-size: 1.2em;
}

.txt-glow {
    text-shadow: -2px -2px 2px white,
        2px -2px 2px white,
        -2px  2px 2px white,
        2px  2px 2px white;
}

.hero h1 {
    font-family: Asimovian;
    font-size: 32px;
    max-width: 700px;
    margin: auto;
    background: radial-gradient(ellipse 180px 24px at center 76px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.0)), 
        radial-gradient(ellipse 210px 24px at center 24px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.0));
}

.hero span {
    color: rgb(var(--accent));
}

.hero p {
    color: rgb(var(--muted));
    margin: 20px auto;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    border: 1px solid #ccc;
    background: rgba(var(--card), 0.5);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: rgb(var(--text));
    transition: 0.75s;
}


.btn:hover, .btn-outline:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 1), inset 0 -2px 0 rgba(255, 255, 255, 0.25);
    transition: 0.75s;
}
    .btn-outline:hover {
        background: rgba(var(--card), 1);
    }

.white-glow:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.75), inset 0 4px 0 rgba(255, 255, 255, 0.25) !important;
    transition: 0.75s;
}

.accent-font {
    font-family: Asimovian;
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr; /* phones = 1 col */
    gap: 20px;
}

/* SECTION */
section {
    scroll-margin-top: 60px;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* CARD */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.0) ), rgb(var(--card));
    padding: 20px;
    border: solid 1px rgba(var(--muted-inv), 0.25);
    border-radius: var(--radius);
    transition: 0.75s;
}

.card:hover {
    /*border: solid 1px rgba(var(--accent), 0.5);*/
    transform: translateY(-4px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transition: 0.75s;
}

/* PRODUCT */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

    .product:nth-child(even) {
        direction: rtl;
    }

    .product:nth-child(even) div {
        direction: ltr;
    }

.product img {
    width: 100%;
    border-radius: var(--radius);
}

/* REVIEWS */
.review {
    font-style: italic;
    text-align: center;
}

/* STORY */
.story {
    max-width: 700px;
    margin: auto;
    text-align: center;
    font-size: 1.2em;
    color: rgb(var(--muted));
}

/* FOOTER */
footer {
    background: rgb(var(--dark-bg));
    color: white;
    padding: 20px 0;
    text-align: center;
}

.full-row {}

.buy-now {
    color: rgb(var(--muted-inv)) !important;
}

    .buy-now b {
        color: rgb(var(--bg)) !important;
    }

/* Tablets */
@media (min-width: 600px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Desktop */
@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .full-row {
        grid-column: 1 / -1;
    }
}


/* Mobile */
@media(max-width: 768px) {
    .hero > h1 > span {
        display: inline-block;
        width: 100vw;
    }

    section {
        padding: 20px 0;
    }

    .product {
        margin-top: 20px;
        grid-template-columns: 1fr;
        direction: ltr !important;
        gap: 10px;
        border-bottom: dashed 1px #ccc;
    }

    .product p {
        margin-bottom: 10px;
    }
}

/* Overlay covers full viewport, subtle transparent black */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    padding: 10px;
    z-index: 2000;
    transition: 0.25s ease-out;
}
.buy-now span {
    position: relative;
    top: -10px;
    font-size: 0.6em;
    color: var(--text);
    margin: 0;
}
/* Container pops out from top-right */
.menu-container {
    position: absolute;
    top: 10px;
    left: calc(100vw + 200px);
    background: rgba(var(--bg), 1);
    border: solid 1px rgba(var(--muted-inv), 0.25);
    border-radius: 6px;
    padding: 4px;
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
    transition: 0.25s ease-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.menu-overlay.show .menu-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Menu items */
.menu-container .menu-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center; /* align text to the right */
}

.menu-container a {
    color: black;
    width: 200px;
    padding: 10px 0px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(0, 0, 0, 0.01) ), rgb(var(--card));
    border: solid 1px rgba(var(--muted-inv), 0.25);
    font-family: 'Roboto';
    font-size: 1.2em;
    text-decoration: none;
    transform: translateY(0px);
    transition: 0.5s;
}

    .menu-container a:hover {
        letter-spacing: 1px;
        border: solid 1px rgba(var(--accent), 0.25);
        color: rgb(var(--accent));
    }

/* =========== SHOWHELP CSS =========== */
/* Overlay background */
.help-overlay {
    position: fixed;
    inset: 0;
    /* vw overflows with scrollbar  width: 100%;
    height: 100vh;*/
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

/* Modal box */
.help-modal {
    background: rgb(var(--bg));
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 1);
    cursor: default;
}

a {
    color: var(--accent);
}

.help-modal a:visited {
    color: var(--accent);
}

.help-modal a:hover {
    color: var(--text);
}

/* Content area (renders HTML) */
.help-content {
    font-family: Roboto;
    font-size: 0.8em;
    color: rgb(var(--text));
}

/* Close hint text */
.help-close-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgb(var(--muted));
    font-style: italic;
}