/* Zentara One main stylesheet
   Path assumptions:
   - This file lives at: /extras/main.css
   - Images live at:     /images/...
   Adjust ../ if your structure differs.
*/

/* Removed unused News+Cycle font import */

:root {
    --brand: #002244;
    --brand-hover: #003366;
    --light-bg: #f4f7fb;
    --form-bg: #f9fafc;
    --text-dark: #222;
    --text-mid: #444;
    --text-light: #666;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 6px 24px rgba(0, 34, 68, 0.08);

    /* Normalized checkbox size used across marketing + legal form areas */
    --checkbox-size: 1.1rem;
}

/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #000;
    /* overall page background; sections override */
    font-family: 'Inter', sans-serif;
    letter-spacing: .15em;
    color: var(--text-dark);
}

/* Headings use Teko (fallback to system) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Teko", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


section {
    padding: 2rem;
}

/* Base padding for desktop - scroll offset for fixed header */
#features,
#contact,
#pricing,
#lead-magnet,
#dice-lounge,
#why-choose,
#about {
    scroll-margin-top: 91px;
}



/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

header img {
    height: 50px;
    margin-bottom: 0.5rem;
}

/* Ensure logo doesn't stretch */
header img.site-logo {
    width: auto;
    aspect-ratio: 4 / 1;
    /* approximate; allows intrinsic scaling */
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 0;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    letter-spacing: normal;
}

nav a:hover,
nav a:focus-visible {
    color: var(--brand);
}

/* ---------- Hero ---------- */
section.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
    padding: 2rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
        url('../images/hero.webp') no-repeat center center / cover;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

section.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2.4px;
}

section.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    letter-spacing: 2.4px;
}

section.hero .hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
}

/* ---------- Features ---------- */
section.features {
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background: var(--light-bg);
    text-align: center;
}

/* ---------- Pricing Section ---------- */
#pricing.pricing {
    background: #050505;
    color: #eee;
    padding: 4rem 2rem 4.5rem;
}

#pricing .case-studies-container {
    max-width: 1200px;
    margin: 0 auto;
}

#pricing h2 {
    color: #fff;
    font-size: 2.1rem;
    margin: 0 0 .4rem;
    letter-spacing: normal;
}

#pricing .subheading {
    margin: 0 0 2.5rem;
    color: #9aa3ad;
    font-size: 1rem;
    letter-spacing: normal;
}

#pricing .cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

#pricing .card {
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .04);
}

#pricing .card h3 {
    margin: 0 0 .75rem;
    font-size: 1.1rem;
    letter-spacing: normal;
}

#pricing .card .price {
    font-size: 2rem;
    font-weight: 700;
    margin: .25rem 0 1rem;
    letter-spacing: normal;
}

#pricing .card ul {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0 0 2.75rem;
    line-height: 1.4;
}

#pricing .card ul li {
    margin-bottom: .4rem;
}

#pricing .card a .button,
#pricing .card .button {
    margin-top: auto;
    background: #001b33;
}

#pricing .card a .button:hover,
#pricing .card .button:hover {
    background: #003861;
}

@media (max-width:640px) {
    #pricing.pricing {
        padding: 3.25rem 1.25rem 3.75rem;
    }

    #pricing h2 {
        font-size: 1.85rem;
    }
}

/* ---------- Why Choose Section ---------- */
.why-choose {
    padding: 4rem 2rem 3rem;
    background: radial-gradient(circle at 40% 30%, #062036 0%, #010b16 55%, #000 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(126, 226, 168, .12), rgba(0, 34, 68, 0) 35%, rgba(126, 226, 168, .08) 70%, rgba(0, 34, 68, 0) 100%);
    pointer-events: none;
}

.why-choose-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.why-choose h2 {
    font-size: 2.25rem;
    margin: 0 0 1.25rem;
    letter-spacing: .5px;
    background: linear-gradient(90deg, #fff, #7EE2A8 55%, #fff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.why-choose .intro {
    max-width: 760px;
    margin: 0 auto 2.25rem;
    font-size: 1.05rem;
    line-height: 1.5;
    letter-spacing: normal;
}

.why-choose .reasons {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    text-align: left;
}

.why-choose .reason {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 1.1rem 1rem 1.15rem;
    border-radius: 14px;
    box-shadow: 0 6px 22px -4px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    backdrop-filter: blur(3px);
}

.why-choose .reason h3 {
    margin: 0 0 .5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: normal;
}

.why-choose .reason h3 i {
    color: #7EE2A8;
    font-size: 1.15rem;
}

.why-choose .reason p {
    margin: 0;
    font-size: .87rem;
    line-height: 1.35;
    letter-spacing: normal;
    opacity: .92;
}

@media (max-width:600px) {
    .why-choose {
        padding: 3rem 1.25rem 2.5rem;
    }

    .why-choose h2 {
        font-size: 1.9rem;
    }
}

/* About section tweaks */
.about {
    padding: 4rem 2rem;
    background: #000;
    color: #eee;
}

.about h2 {
    color: #fff;
    margin-top: 0;
    letter-spacing: .5px;
}

.about ul {
    list-style: disc;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.about ul li {
    margin-bottom: .5rem;
}

.about a .button,
.about .button {
    margin-top: 1rem;
}

@media (min-width:800px) {
    .about .grid {
        display: grid;
        gap: 2.5rem;
        grid-template-columns: 1.15fr .85fr;
        align-items: start;
    }
}

.feature {
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0, 34, 68, 0.1);
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: normal;
}

.feature:hover,
.feature.hover,
.feature:focus-within {
    border-color: var(--brand);
    box-shadow: var(--shadow-card-hover);
}

.feature h2 {
    margin-bottom: 0.5rem;
    color: var(--brand);
    font-size: 1.2rem;
    letter-spacing: normal;
}

.feature i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 1rem;
}

/* ---------- Quote band ---------- */
.quote-band {
    background: var(--form-bg);
    padding: 2rem 2rem;
    text-align: center;
    letter-spacing: normal;
}

.quote-band blockquote {
    font-style: italic;
    font-size: 1.1rem;
    max-width: 700px;
    margin: auto;
    color: #444;
}

.quote-band cite {
    font-weight: bold;
    font-style: normal;
}

/* ---------- Contact / Form ---------- */
section.form {
    padding: 6rem 2rem;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.form-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('../images/form-bg.webp') no-repeat center center / cover;
    z-index: 1;
}

.form-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
    background: var(--form-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    letter-spacing: normal;
}

section.form h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 100%;
        margin: 0;
    }
}


form input,
form textarea {
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
    letter-spacing: normal;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--brand);
}

button,
.button {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.3s;
    letter-spacing: normal;
}

/* Button variants extracted from inline styles */
.btn-outline-light {
    background: #ffffff;
    color: #002244;
    border: 2px solid #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: #e6eef7;
    color: #002244;
}

.btn-outline-dark {
    background: #002244;
    color: #ffffff;
    border: 2px solid #002244;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
    background: #003366;
}

/* App store button variants */
.btn-web {
    background-color: #1e7f4a;
    color: #ffffff;
    border: 2px solid #1e7f4a;
}

.btn-web:hover,
.btn-web:focus-visible {
    background-color: #166b3d;
    border-color: #166b3d;
}

.btn-ios {
    background-color: #0b0d10;
    color: #ffffff;
    border: 2px solid #0b0d10;
}

.btn-ios:hover,
.btn-ios:focus-visible {
    background-color: #1a1d24;
    border-color: #1a1d24;
}

.btn-android {
    background-color: #002244;
    color: #ffffff;
    border: 2px solid #002244;
}

.btn-android:hover,
.btn-android:focus-visible {
    background-color: #003366;
    border-color: #003366;
}

/* Ensure anchor buttons look like buttons */
a.button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* ===== Dice Lounge (moved from inline) ===== */
.dice-lounge,
.dice-lounge h2,
.dice-lounge p,
.dice-lounge li,
.dice-lounge a {
    color: #fff;
}

.dice-lounge .dl-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 1rem 0 1.5rem;
}

.dice-lounge .dl-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    cursor: zoom-in;
}

/* App icons grid */
.dl-app-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.app-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-icon-link:hover {
    transform: translateY(-4px);
}

.app-icon-link img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.2s ease;
}

.app-icon-link:hover img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.app-icon-link span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e0e0;
}

.img-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.img-modal[aria-hidden="false"] {
    display: flex;
}

.img-modal-content {
    position: relative;
    max-width: min(1000px, 92vw);
    max-height: 90vh;
}

.img-modal-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
}

.img-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #111;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .2);
    width: 40px;
    height: 40px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
}

body.modal-open {
    overflow: hidden;
}

.dice-lounge .dl-services {
    margin: 1.25rem 0 1.75rem;
}

.dice-lounge .dl-services h3 {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
}

.dice-lounge .dl-services .cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dice-lounge .dl-services .card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.dice-lounge .dl-services .card i {
    color: #7EE2A8;
    font-size: 1.25rem;
    margin-right: .4rem;
}

.dice-lounge .dl-services .card h4 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}

.dice-lounge .dl-services .card p {
    margin: 0;
    opacity: .95;
}

.dl-features li {
    list-style: none;
    position: relative;
    padding-left: 1.6rem;
}

.dl-features li i {
    position: absolute;
    left: 0;
    top: .15rem;
    color: #7EE2A8;
}


.pricing .cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing .card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.pricing .price {
    font-size: 1.75rem;
    font-weight: 700;
}

.lead-magnet {
    background: #f4f7fb;
    border-top: 1px solid #e7ecf3;
    border-bottom: 1px solid #e7ecf3;
}

.about .grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width:800px) {
    .about .grid {
        grid-template-columns: 1.2fr .8fr;
    }
}

@media (max-width:800px) {
    body {
        padding-top: 142px;
    }
}



button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible {
    background: var(--brand-hover);
}

#result {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    letter-spacing: normal;
}

/* ---------- Tech badges ---------- */
.tech-badges {
    margin: 2rem auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;

}

.tech-badges img {
    height: 80px;
    transition: transform 0.2s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

@media (max-width: 768px) {
    .tech-badges img {
        height: 20px;
        line-height: 20px;
    }
}

.tech-badges img:hover,
.tech-badges img:focus-visible {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* ---------- Blog ---------- */
section.blog {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.blog-container {
    max-width: 900px;
    margin: auto;
}

.blog-posts {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.blog-post {
    background: var(--form-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    letter-spacing: normal;
}

.blog-post h3 {
    margin-bottom: 0.5rem;
    color: var(--brand);
}

.blog-post p {
    color: #444;
    font-size: 0.95rem;
}

.blog-post .date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

/* ---------- Case Studies / Video Gallery ---------- */
#case-studies {
    background-color: #f9f9f9;
    padding: 4rem 1.5rem;
    text-align: center;
}

.case-studies-container {
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: normal;
}

.case-studies-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.case-studies-container .subheading {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Main player */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

/* Meta under player */
#video-meta {
    margin-top: 1.5rem;
    text-align: left;
    max-width: 800px;
    margin-inline: auto;
    letter-spacing: normal;
}

#video-meta h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--brand);
    letter-spacing: normal;
}

#video-meta p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

#video-meta time {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #999;
}

/* Thumbnails */
.video-thumbs {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.video-thumb-btn {
    background: none;
    border: 2px solid transparent;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.video-thumb-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.video-thumb-btn.active {
    border-color: var(--brand);
    transform: scale(1.03);
}

.video-thumb-btn img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.video-thumb-title {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--brand);
    line-height: 1.2;
    letter-spacing: normal;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--brand);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: normal;
}

.site-footer {
    background: #002244;
    color: #fff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Legal links row */
.footer-legal ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    /* space between items; dots added via pseudo */
    font-size: 0.95rem;
    letter-spacing: normal;
}

.footer-legal li {
    position: relative;
    padding-inline-start: 0.75rem;
    /* room for dot */
}

.footer-legal li:first-child {
    padding-inline-start: 0;
    /* no offset before the first item */
}

/* dot separator before all but first */
.footer-legal li+li::before {
    content: "•";
    position: absolute;
    left: -0.9rem;
    /* visually centers dot between gaps */
    color: rgba(255, 255, 255, .6);
    font-weight: 400;
}

/* link styles */
.footer-legal a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.footer-legal a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* copyright line */
.site-footer .footer-copy {
    font-size: 0.85rem;
    letter-spacing: normal;
    color: #fff;
}

/* tighter layout on very narrow screens */
@media (max-width:480px) {
    .footer-legal ul {
        gap: 1rem;
    }

    .footer-legal li {
        padding-inline-start: 0.6rem;
    }

    .footer-legal li+li::before {
        left: -0.7rem;
    }
}

footer .legal-nav {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
}

footer .legal-nav a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer .legal-nav a:hover {
    color: #d0e4ff;
}

/* ================================
   Contact Form (new markup)
   ================================ */
#contact-form .form-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#contact-form .form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #002244;
    margin-bottom: 0.25rem;
    letter-spacing: normal;
}

/* Inputs/select/textarea */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-family: inherit;
    line-height: 1.2;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #002244;
    box-shadow: 0 0 0 2px rgba(0, 34, 68, 0.2);
}

/* Submit */
#contact-form button[type="submit"] {
    align-self: stretch;
    background: #002244;
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#contact-form button[type="submit"]:hover {
    background: #003366;
}

/* Marketing consent */
#contact-form .marketing-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.3;
    letter-spacing: normal;
    margin-top: 0.5rem;
}

/* Result message */
#contact-form #result {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
}

/* ---------- Legal + Marketing Agreements ---------- */
.legal-agreements {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: normal;
    color: var(--text-mid);
}

.legal-agreements label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    line-height: 1.3;
}

/* simplified: checkbox dimensions handled in global block below */
.legal-agreements input[type="checkbox"] {
    margin-top: 0.2rem;
    /* align with first line of text */
    accent-color: var(--brand);
    /* modern browsers */
}

.legal-agreements a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-agreements a:hover,
.legal-agreements a:focus-visible {
    color: var(--brand-hover);
    outline: none;
}

/* ------------------------------------------------------------------
   Checkbox normalization – keep all form checkboxes same dimensions
   Applies to any checkbox in #contact-form (covers marketing & legal)
   ------------------------------------------------------------------ */
#contact-form input[type="checkbox"],
.marketing-consent input[type="checkbox"],
.legal-agreements input[type="checkbox"] {
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    min-width: var(--checkbox-size);
    min-height: var(--checkbox-size);
    margin-top: 0.2rem;
    /* visually line up box with text */
    accent-color: var(--brand);
}

/* =============================================
   Overrides: Video Thumbnail Hover + Ellipsis Title
   ============================================= */
/* Lift + highlight thumbnail on hover/focus */
.video-thumb-btn:hover,
.video-thumb-btn:focus-visible {
    border-color: var(--brand);
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 0 0 2px var(--brand-hover), 0 4px 12px rgba(0, 0, 0, .15);
}

.video-thumb-btn:hover img,
.video-thumb-btn:focus-visible img {
    filter: brightness(1.05) saturate(1.05);
}

/* Single-line title with ellipsis when too long */
.video-thumb-title {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   Thumbnail sizing + hover tweaks (updated)
   ============================================= */
/* Constrain grid items: keep original small thumb size */
.video-thumbs {
    justify-items: center;
    /* center items in their grid tracks */
}

/* If the grid only has 1 or 2 items, prevent stretch */
.video-thumbs>* {
    max-width: 160px;
    /* original-ish thumb width */
    width: 100%;
}

/* Button wrapper padding without changing grid sizing */
.video-thumb-btn {
    padding: 4px;
    /* breathing room */
    box-sizing: border-box;
}

/* Image inside button */
.video-thumb-btn img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Title: support BOTH sibling (.btn + .title) and nested (.btn .title) markup */
.video-thumb-title,
.video-thumb-btn .video-thumb-title {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* truncate long titles */
}

/* Hover/focus states: subtle lift; don't balloon size */
.video-thumb-btn:hover,
.video-thumb-btn:focus-visible,
.video-thumb-btn.active {
    border-color: var(--brand);
    transform: scale(1.01) translateY(-1px);
    box-shadow: 0 0 0 2px var(--brand-hover), 0 4px 12px rgba(0, 0, 0, .15);
}

.video-thumb-btn:hover img,
.video-thumb-btn:focus-visible img,
.video-thumb-btn.active img {
    filter: brightness(1.05) saturate(1.05);
}

/* On hover/focus/active: make title text white */
.video-thumb-btn:hover+.video-thumb-title,
.video-thumb-btn:focus-visible+.video-thumb-title,
.video-thumb-btn:hover .video-thumb-title,
.video-thumb-btn:focus-visible .video-thumb-title {
    color: #fff;
}

/* =====================================================
   Flash Overlay (events/bets/streets)
   ===================================================== */
.flash-overlay {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    width: 100%;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
    pointer-events: none;
    z-index: 10000;
}

.flash-notice {
    pointer-events: auto;
    /* allow hover/focus for accessibility */
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    line-height: 1.2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    backdrop-filter: saturate(1.2) blur(6px);
    max-width: min(92vw, 520px);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-8px);
    opacity: 0;
    animation: flashIn .18s ease-out forwards, flashOut .25s ease-in forwards var(--hide-delay, 2.1s);
}

.flash-notice .icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
}

.flash-notice .text {
    flex: 1 1 auto;
}

.flash-notice button.close {
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    opacity: .85;
}

/* Variants */
.flash-notice.event {
    border-left: 4px solid #7EE2A8;
}

.flash-notice.bet {
    border-left: 4px solid #FFD166;
}

.flash-notice.street {
    border-left: 4px solid #66A3FF;
}

@keyframes flashIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flashOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .flash-notice {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   POLISH: Mobile Hamburger Menu
   ===================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand);
    position: relative;
    transition: background 0.2s;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--brand);
    transition: transform 0.3s ease;
}

.nav-toggle .hamburger::before {
    top: -7px;
}

.nav-toggle .hamburger::after {
    bottom: -7px;
}

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    header nav.open {
        right: 0;
    }

    header nav a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    header nav a:last-child {
        border-bottom: none;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* =====================================================
   POLISH: Scroll Reveal Animations
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-stagger>* {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================
   POLISH: Back to Top Button
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 34, 68, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--brand-hover);
    transform: translateY(-2px);
}

/* =====================================================
   POLISH: Skip to Content (Accessibility)
   ===================================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 1rem;
}

/* =====================================================
   POLISH: Galaxy Conquest Section Styling
   ===================================================== */
.app-promo {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.app-promo h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    background: linear-gradient(90deg, #fff, #a8d5ff 50%, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-promo p {
    margin: 0 0 1rem;
    opacity: 0.9;
}

/* =====================================================
   POLISH: Enhanced Card Hover Effects
   ===================================================== */
#pricing .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#pricing .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.45);
}

.dice-lounge .dl-services .card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.dice-lounge .dl-services .card:hover {
    transform: translateY(-3px);
    border-color: rgba(126, 226, 168, 0.4);
}

.why-choose .reason {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose .reason:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(126, 226, 168, 0.2) inset;
}

/* =====================================================
   POLISH: Trust Indicators
   ===================================================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.trust-badge i {
    color: #7EE2A8;
    font-size: 1.5rem;
}

/* =====================================================
   POLISH: Smooth Image Gallery Hover
   ===================================================== */
.dice-lounge .dl-gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dice-lounge .dl-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   POLISH: Button Pulse Animation for Primary CTAs
   ===================================================== */
@keyframes subtlePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(126, 226, 168, 0);
    }
}

.hero-buttons .button:first-child {
    animation: subtlePulse 3s ease-in-out infinite;
}

.hero-buttons .button:first-child:hover {
    animation: none;
}