/* Reset-ish */
*{box-sizing:border-box}html,body{margin:0;padding:0}
:root{
  --bg:#0b0b0b; --fg:#f5f5f5; --muted:#9a9a9a; --line:#1a1a1a;
  --accent:#ffffff; --radius:18px;
}
/* Background texture */
body{
  background: #0b0b0b url('assets/flag-texture.png') no-repeat center / cover fixed;
  color:var(--fg);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  line-height:1.45
}
/* Dark overlay to keep contrast high */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.85));
  mix-blend-mode:multiply;
  z-index:-1;
}
img{max-width:100%;display:block}

.site-header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:linear-gradient(180deg,rgba(0,0,0,.85),rgba(0,0,0,.6));backdrop-filter:saturate(1.3) blur(6px);z-index:50}
.brand{display:flex;align-items:center;gap:10px}
.brand h1{font-size:20px;letter-spacing:.08em;text-transform:uppercase;margin:0}


.btn{padding:10px 14px;border-radius:999px;border:1px solid var(--fg);background:var(--fg);color:#000;font-weight:700;letter-spacing:.02em}
.btn:hover{filter:brightness(.9)}
.btn.outline{background:transparent;color:var(--fg)}
.btn.ghost{background:transparent;border-color:var(--line);color:var(--fg)}

.hero{display:grid;gap:24px;padding:28px 16px;max-width:1100px;margin:0 auto}
@media (min-width:850px){
  .hero{grid-template-columns: 1.2fr 1fr;align-items:center;padding:48px 24px}
}
.flag-wrap { position:relative; }

.hero-text h2{font-size:34px;margin:0 0 8px}
.hero-text p{color:var(--muted);margin:0 0 16px}
.cta-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 10px}
.ca-line{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;border:1px dashed var(--line);border-radius:10px;padding:8px 10px;color:var(--muted);user-select:all;overflow:auto;background:rgba(0,0,0,.35)}

.lore{max-width:900px;margin:0 auto;padding:18px 16px}
.lore h3{font-size:18px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 10px;color:#cfcfcf}
.lore p{color:var(--muted)}

.site-footer{border-top:1px solid var(--line);padding:18px 16px;margin-top:28px;color:#8a8a8a;font-size:12px;text-align:center;background:rgba(0,0,0,.4)}

#toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%) translateY(20px);background:#111;border:1px solid #333;color:#f0f0f0;padding:10px 14px;border-radius:999px;opacity:0;pointer-events:none;transition:all .25s ease;transform:translateX(-50%) translateY(0)}

/* ---- Global background texture (robust) ---- */
html, body { min-height:100%; background: transparent; }
/* keep content slightly lifted for readability */
.hero, .lore, .site-footer { background: rgba(0,0,0,.25); border-radius:18px }
/* Fallback: direct body background */
body {
  background: #0b0b0b url('assets/flag-texture-1757588866.png') center / cover no-repeat;
}


.flag-emoji{
  font-size:20px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:#000;
  border-radius:50%;
  width:28px;
  height:28px;
  margin-right:8px;
}
.brand{gap:8px}

.brand{gap:8px}

.hero-text h2 {
  margin-bottom: 12px; /* tighten after headline */
}
.cta-row {
  margin-top: 8px;
}



.flag { max-width:100%; height:auto; }

.flag{display:block;max-width:100%;height:auto}


/* --- Mobile optimizations --- */
@media (max-width: 640px){
  .hero{
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }
  .flag{
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  /* Keep video contained and visible without overflowing */
  .flag-wrap{
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  .flag-wrap .flag{
    width: 100%;
    height: auto;
  }
  /* Tighter heading for small screens */
  .hero-text h2{
    font-size: 28px !important;
    line-height: 1.15;
    margin-bottom: 10px !important;
  }
  /* Buttons: full-width, bigger touch targets */
  .cta-row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }
  .btn{
    width: 100%;
    padding: 14px 16px !important; /* >= 44px target height including line-height */
    font-weight: 800;
  }
  .ca-line{
    font-size: 12px;
    word-break: break-all;
  }
  /* Header compact */
  .site-header{
    padding: 10px 12px !important;
  }
  .brand h1{
    font-size: 18px !important;
  }
  .flag-emoji{
    width: 26px; height: 26px; font-size: 18px;
  }
  body{ overflow-x: hidden; }
}
