:root {
  --bg: #0b0d12;
  --surface: #151923;
  --line: #262c3a;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --accent: #e10600;
  --accent-2: #ffb400;
  --radius: 14px;
  --max: 1100px;
  --tabbar-h: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: rgba(11, 13, 18, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-weight: 800; font-style: italic; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand small { color: var(--accent); font-size: .65em; font-weight: 700; }
.flag {
  width: 18px; height: 18px; border-radius: 3px;
  background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 9px 9px;
}
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a.active, .nav a:hover { color: var(--text); text-decoration: none; }
.lang {
  background: none; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-weight: 700; cursor: pointer;
}

main { max-width: var(--max); margin: 0 auto; padding: 32px 16px 48px; outline: none; }

/* Full-screen video hero, same look as the original mezzas-frontend home */
.video-hero {
  position: relative; overflow: hidden;
  width: 100vw; margin: -32px calc(50% - 50vw) 0;
  height: calc(100svh - 57px); min-height: 420px;
  display: grid; place-items: center; text-align: center; background: #000;
}
.video-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.video-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.03) 2px 4px);
}
.video-hero-content { position: relative; z-index: 1; padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
.video-hero .accent-line { width: 1px; height: 64px; opacity: .7; }
.video-hero .accent-line.top { background: linear-gradient(transparent, #ef4444); margin-bottom: 40px; }
.video-hero .accent-line.bottom { background: linear-gradient(#ef4444, transparent); margin-top: 40px; }
.video-hero .tagline { color: #ef4444; text-transform: uppercase; letter-spacing: .4em; font-size: .75rem; font-weight: 300; margin: 0 0 20px; opacity: .9; }
.video-hero h1 {
  margin: 0; color: #fff; font-family: Inter, system-ui, sans-serif; font-weight: 900; font-style: normal;
  text-transform: uppercase; line-height: 1; letter-spacing: -0.02em;
  font-size: clamp(3rem, 10vw, 9rem); text-shadow: 0 0 80px rgba(220, 38, 38, .3);
}
.video-hero .subtitle { color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .5em; font-weight: 300; font-size: clamp(.7rem, 2vw, 1.1rem); margin: 8px 0 0; }
.video-hero .corner { position: absolute; z-index: 1; width: 32px; height: 32px; border: 0 solid rgba(255,255,255,.2); }
.video-hero .corner.tl { top: 32px; left: 32px; border-top-width: 1px; border-left-width: 1px; }
.video-hero .corner.tr { top: 32px; right: 32px; border-top-width: 1px; border-right-width: 1px; }
.video-hero .corner.bl { bottom: 32px; left: 32px; border-bottom-width: 1px; border-left-width: 1px; }
.video-hero .corner.br { bottom: 32px; right: 32px; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 760px) { .video-hero { height: calc(100svh - 57px - var(--tabbar-h)); } }
@media (prefers-reduced-motion: reduce) { .video-hero video { display: none; } }

.hero { padding: 48px 0 32px; }
.hero h1, .hero .hero-title { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 12px; font-style: italic; }
.hero-title em { color: var(--accent); font-style: inherit; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.icon { font-size: 1.8rem; }
.meta { color: var(--muted); font-size: .85rem; }
.badge {
  align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 10px; border-radius: 999px; background: #2a1414; color: #ff8a80;
}
.badge.soon { background: #2a2414; color: var(--accent-2); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.chip {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .9rem;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.article { max-width: 720px; }
.article h1 { font-size: 2.2rem; }

form { display: grid; gap: 12px; max-width: 560px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
input, textarea {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font: inherit;
}
textarea { min-height: 140px; resize: vertical; }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; border-top: 1px solid var(--line); }

.tabbar { display: none; }

@media (max-width: 760px) {
  :root { --tabbar-h: 64px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--muted); font-size: .7rem; font-weight: 600;
  }
  .tabbar a span { font-size: 1.3rem; line-height: 1; }
  .tabbar a.active { color: var(--accent); text-decoration: none; }
}

/* Under construction: home is only the full-screen video, menus hidden */
body.no-nav .nav, body.no-nav .tabbar { display: none; }
body.no-nav { --tabbar-h: 0px; }
body.hero-only .topbar, body.hero-only .footer { display: none; }
body.hero-only main { padding: 0; max-width: none; }
body.hero-only .video-hero { margin: 0; width: 100%; height: 100svh; }
