/* © 2025 tnndvd – All rights reserved. */

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

/* ---------- 1. LIGHT DEFAULTS (root) ---------- */
:root {
    --bg-color:#ffffff;
    --primary-color:#21222c;
    --accent-color:#2266ff;
    --card-bg:#f5f7fa;
    --card-border:#eef2f7;
    --text-muted:#444;
    --border-radius:8px;
    --font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
}

/* ---------- 2. AUTO DARK (media query) -------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color:#1c1d26;
        --primary-color:#f1f3f8;
        --accent-color:#5085ff;
        --card-bg:#272836;
        --card-border:#333845;
        --text-muted:#b7bcd6;
    }
}

/* ---------- 3. MANUAL OVERRIDES --------------- */
body.theme-dark  {   /* force dark */
    --bg-color:#1c1d26;
    --primary-color:#f1f3f8;
    --accent-color:#5085ff;
    --card-bg:#272836;
    --card-border:#333845;
    --text-muted:#b7bcd6;
}
body.theme-light {   /* force light */
    --bg-color:#ffffff;
    --primary-color:#21222c;
    --accent-color:#2266ff;
    --card-bg:#f5f7fa;
    --card-border:#eef2f7;
    --text-muted:#444;
}

/* ---------- 4. GLOBAL LAYOUT ------------------ */
body{
    font-family:var(--font-family);
    background:var(--bg-color);
    color:var(--primary-color);
    min-height:100vh;
    display:flex;
    flex-direction:column;
    transition:background 0.3s, color 0.3s;
}
.container{ width:90%; max-width:600px; margin:0 auto; }

/* Skip-link --------------------------------------------------------*/
.skip-link{
    position:absolute; top:-40px; left:1rem;
    background:var(--accent-color); color:#fff;
    padding:0.5rem 1rem; border-radius:var(--border-radius);
    text-decoration:none; transition:top 0.2s;
}
.skip-link:focus{ top:0.5rem; outline:none; }

/* Header -----------------------------------------------------------*/
header{
    background:var(--card-bg); border-bottom:1px solid var(--card-border);
    padding:1.5rem 0 1rem;
}
.header-container{ display:flex; align-items:center; justify-content:space-between; }
.logo{ font-weight:700; font-size:1.5rem; letter-spacing:0.02em; }
.logo .dotcom{ color:var(--accent-color); }

/* Logo glitch */
@keyframes glitch {
    0%   { clip-path: inset(0 0 0 0); transform:translate(0); }
    30%  { clip-path: inset(0 0 60% 0); transform:translate(-2px,-1px); }
    60%  { clip-path: inset(40% 0 0 0); transform:translate(2px,1px); }
    80%  { clip-path: inset(0 0 30% 0); transform:translate(-1px,1px); }
    100% { clip-path: inset(0 0 0 0); transform:translate(0); }
}

.logo:hover,
.logo:focus-visible {
    animation: glitch 0.35s steps(2) both;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .logo:hover { animation:none; }
}


/* Theme-toggle button */
.theme-toggle{
    background:none; border:none; font-size:1.35rem;
    cursor:pointer; line-height:1; color:var(--accent-color);
    padding:0.2rem; width:2.2rem; height:2.2rem;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%; transition:background 0.2s;
}
.theme-toggle:hover,
.theme-toggle:focus{ background:rgba(34,102,255,0.1); }

/* Hero -------------------------------------------------------------*/
.hero{ padding:3.5rem 0 2.5rem; text-align:center; }
.hero h1{ font-size:2.3rem; font-weight:700; margin-bottom:0.8rem; }
.subtitle{ font-size:1.15rem; color:var(--text-muted); margin-bottom:2rem; }
.cta-button{
    background:var(--accent-color); color:#fff; font-size:1.1rem;
    padding:0.9em 2.2em; border:none; border-radius:var(--border-radius);
    cursor:pointer; text-decoration:none; transition:background 0.18s;
    box-shadow:0 2px 10px rgba(34,102,255,0.06);
}
.cta-button:hover,
.cta-button:focus{ background:#1951c6; }

/* Hero background animation */
.hero {
    /* existing hero styles … */
    position: relative;                /* build a stacking context */
    overflow: hidden;                  /* hide overspill */
}

.hero::before {                      /* animated backdrop layer */
    content: "";
    position: absolute;
    inset: 0;                          /* full-cover */
    background: linear-gradient(130deg,
                                #2266ff 0%, #7b5bff 25%, #ff6ec7 50%,
                                #5affd2 75%, #2266ff 100%);
                                background-size: 400% 400%;        /* oversize for travel room */
                                animation: heroGradient 28s linear infinite;
                                z-index: -1;                       /* sits behind text */
                                filter: blur(40px);                /* soft glow */
                                opacity: 0.25;                     /* subtlety */
}

/* keyframes drive very slow pan */
@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Respect users who dislike motion */
@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
}

/* Next-Steps -------------------------------------------------------*/
.next-steps{ padding:2.5rem 0 2rem; }
.next-steps h2{
    font-size:1.3rem; font-weight:600; margin-bottom:1.7rem; text-align:center;
}
.steps-list{
    list-style:none; display:grid; grid-template-columns:1fr; gap:1.6rem;
}
.steps-list li{
    display:flex; align-items:flex-start; gap:1.1rem;
    background:var(--card-bg); border:1px solid var(--card-border);
    padding:1.2rem 1rem; border-radius:var(--border-radius);
    opacity:0; transform:translateY(20px);
    transition:opacity 0.5s ease, transform 0.5s ease;
}
.steps-list li.visible{ opacity:1; transform:none; }
.steps-list li:hover{ box-shadow:0 2px 8px rgba(34,102,255,0.08); }
.step-icon{
    background:var(--accent-color); color:#fff; font-weight:700;
    width:2.2em; height:2.2em; display:inline-flex; align-items:center;
    justify-content:center; border-radius:50%; font-size:1.08em;
    flex-shrink:0; margin-top:2px;
}
.steps-list a{ color:var(--accent-color); text-decoration:underline; }
.steps-list a:hover,
.steps-list a:focus{ color:#1951c6; }

/* FAQ --------------------------------------------------------------*/
.faq{ padding:2rem 0 2.5rem; }
.faq h2{ font-size:1.3rem; font-weight:600; margin-bottom:1.5rem; text-align:center; }
details{
    background:var(--card-bg); border:1px solid var(--card-border);
    border-radius:var(--border-radius); padding:0.9rem 1rem;
}
details + details{ margin-top:0.8rem; }
summary{ cursor:pointer; font-weight:600; list-style:none; }
summary::-webkit-details-marker{ display:none; }

/* Footer -----------------------------------------------------------*/
footer{
    margin-top:auto; background:var(--card-bg); border-top:1px solid var(--card-border);
    font-size:1rem; padding:1.3rem 0;
}
.footer-container{
    display:flex; flex-direction:column; gap:0.5rem;
    align-items:center; justify-content:center;
}
#reveal-email{
background:none; border:none; color:var(--accent-color);
text-decoration:underline; cursor:pointer; font:inherit;
padding:0; margin-left:0.5em;
}
#reveal-email:focus{ outline:2px solid var(--accent-color); }
.contact-email{
    font-family:monospace; color:var(--primary-color);
    margin-left:0.5em; letter-spacing:0.02em; user-select:all;
}
.copyright{ color:var(--text-muted); font-size:0.98rem; }

/* Responsive -------------------------------------------------------*/
@media (max-width:600px){
    .container{ width:98%; max-width:100%; }
    .hero h1{ font-size:1.6rem; }
    .steps-list li{ flex-direction:column; gap:0.6rem; }
}
