:root{
    --bg: #07090b;
    --bg-2: #0d1114;
    --amber: #ffb020;
    --amber-dim: #8a5d12;
    --red: #ff3b30;
    --line: rgba(255,176,32,0.18);
    --text: #e7e6e1;
    --text-dim: #6c726f;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }

  html,body{ height:100%; }

  body{
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    overflow: hidden;
    position: relative;
    cursor: default;
  }

  /* ---------- texture layers ---------- */
  .scanlines{
    position: fixed; inset:0;
    pointer-events:none;
    z-index: 50;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 1px,
      transparent 3px
    );
    mix-blend-mode: overlay;
  }

  .grain{
    position: fixed; inset:-100px;
    pointer-events:none;
    z-index: 49;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.4s steps(2) infinite;
  }
  @keyframes grain{
    0%{ transform: translate(0,0); }
    50%{ transform: translate(-2%,1%); }
    100%{ transform: translate(1%,-2%); }
  }

  .vignette{
    position: fixed; inset:0;
    pointer-events:none;
    z-index: 48;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.75) 100%);
  }

  .glow{
    position: fixed;
    top: 50%; left: 50%;
    width: 1100px; height: 1100px;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(255,176,32,0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
  }

  /* ---------- HUD frame ---------- */
  .frame{
    position: fixed; inset: 18px;
    border: 1px solid var(--line);
    z-index: 40;
    pointer-events: none;
  }
  .corner{
    position: fixed;
    width: 26px; height: 26px;
    border-color: var(--amber);
    border-style: solid;
    z-index: 41;
    opacity: 0.85;
  }
  .corner.tl{ top:18px; left:18px; border-width: 2px 0 0 2px; }
  .corner.tr{ top:18px; right:18px; border-width: 2px 2px 0 0; }
  .corner.bl{ bottom:18px; left:18px; border-width: 0 0 2px 2px; }
  .corner.br{ bottom:18px; right:18px; border-width: 0 2px 2px 0; }

  .hud-top{
    position: fixed; top: 34px; left: 38px; right: 38px;
    display: flex; justify-content: space-between;
    font-size: 11px; letter-spacing: 0.18em;
    color: var(--text-dim);
    z-index: 41;
    text-transform: uppercase;
  }
  .hud-top span.rec{ color: var(--red); }
  .dot{
    display:inline-block; width:7px; height:7px; border-radius:50%;
    background: var(--red); margin-right:7px;
    box-shadow: 0 0 8px var(--red);
    animation: blink 1.1s infinite steps(1);
    position: relative; top: -1px;
  }
  @keyframes blink{ 50%{ opacity:0.15; } }

  .hud-bottom{
    position: fixed; bottom: 34px; left: 38px; right: 38px;
    display: flex; justify-content: space-between;
    font-size: 11px; letter-spacing: 0.14em;
    color: var(--text-dim);
    z-index: 41;
    text-transform: uppercase;
  }

  /* ---------- main content ---------- */
  .stage{
    position: relative;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 0 24px;
    z-index: 10;
  }

  .logo{
    max-width: 240px;
    width: 60vw;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 28px rgba(255,176,32,0.25));
    opacity: 0;
    animation: reveal 0.7s 0.15s cubic-bezier(.16,1,.3,1) forwards;
  }
  .logo img{width:100%;height:100%}
  .logo span{ color: var(--amber); }

  .tagline{
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.45em;
    color: var(--text-dim);
    text-transform: uppercase;
    opacity: 0;
    animation: reveal 0.7s 0.32s cubic-bezier(.16,1,.3,1) forwards;
  }

  .divider{
    width: 1px; height: 46px;
    background: linear-gradient(to bottom, transparent, var(--amber-dim), transparent);
    margin: 24px 0;
    opacity: 0;
    animation: reveal 0.7s 0.48s cubic-bezier(.16,1,.3,1) forwards;
  }

  .status{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber);
    background: rgba(255,176,32,0.05);
    opacity: 0;
    animation: reveal 0.7s 0.62s cubic-bezier(.16,1,.3,1) forwards;
  }
  .status .pulse{
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 10px var(--amber);
    animation: pulse 1.6s infinite ease-in-out;
  }
  @keyframes pulse{
    0%,100%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.7); opacity: 0.35; }
  }

  h1{
    margin-top: 26px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(30px, 5.4vw, 54px);
    letter-spacing: 0.04em;
    font-weight: 400;
    line-height: 1.05;
    color: var(--text);
    opacity: 0;
    animation: reveal 0.7s 0.78s cubic-bezier(.16,1,.3,1) forwards;
  }

  p.msg{
    margin-top: 18px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-dim);
    opacity: 0;
    animation: reveal 0.7s 0.94s cubic-bezier(.16,1,.3,1) forwards;
  }
  p.msg strong{ color: var(--text); font-weight: 600; }

  .progress{
    width: 280px;
    max-width: 70vw;
    height: 2px;
    margin-top: 34px;
    background: var(--line);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: reveal 0.7s 1.1s cubic-bezier(.16,1,.3,1) forwards;
  }
  .progress::after{
    content:'';
    position: absolute; top:0; left:0; bottom:0;
    width: 36%;
    background: linear-gradient(to right, transparent, var(--amber), transparent);
    animation: scan 2.2s ease-in-out infinite;
  }
  @keyframes scan{
    0%{ left: -36%; }
    100%{ left: 100%; }
  }

  .contact{
    margin-top: 38px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    opacity: 0;
    animation: reveal 0.7s 1.26s cubic-bezier(.16,1,.3,1) forwards;
  }
  .contact a{
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid var(--amber-dim);
    transition: border-color 0.2s, color 0.2s;
  }
  .contact a:hover{ border-color: var(--amber); color: #ffc758; }

  @keyframes reveal{
    from{ opacity: 0; transform: translateY(14px); }
    to{ opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 560px){
    .hud-top, .hud-bottom{ font-size: 9px; left: 22px; right: 22px; }
    .frame{ inset: 10px; }
    .corner{ width: 18px; height: 18px; }
  }

