:root{
    --bg: #16181b;
    --bg-2: #1c1f23;
    --line: #2b2f34;
    --ink: #f2f3f4;
    --ink-dim: #9aa0a6;
    --blue: #4a9fdb;
    --blue-dim: #2f5f80;
  }

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

  html, body{ height:100%; }

  body{
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  }

  /* ---------- header ---------- */
  header{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem clamp(1.5rem, 5vw, 3.5rem);
  }

  .wordmark img{
    height: 40px;
    width: auto;
    display: block;
  }

  .status-pill{
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
    border: 1px solid var(--line);
    padding: 0.45rem 0.85rem;
    border-radius: 100px;
  }
  .status-pill .dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(74,159,219,0.6);
    animation: pulse 2.2s infinite;
  }
  @keyframes pulse{
    0%   { box-shadow: 0 0 0 0 rgba(74,159,219,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(74,159,219,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,159,219,0); }
  }

  /* ---------- main ---------- */
  main{
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem clamp(1.25rem, 6vw, 2rem) 3rem;
  }

  .eyebrow{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.6rem;
  }

  h1{
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 15ch;
  }
  h1 .accent{ color: var(--blue); }

  .sub{
    margin-top: 1.4rem;
    max-width: 42ch;
    color: var(--ink-dim);
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    line-height: 1.6;
  }

  /* ---------- flow gauge / signature element ---------- */
  .gauge-wrap{
    margin-top: 3.2rem;
    width: min(560px, 88vw);
  }

  .gauge-labels{
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 0.6rem;
  }
  .gauge-labels span.active{ color: var(--ink); }

  .pipe{
    position: relative;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
  }
  .pipe::before{
    content: "";
    position: absolute;
    top: 0; left: -40%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    animation: flow 2.8s linear infinite;
  }
  @keyframes flow{
    0%   { left: -40%; }
    100% { left: 100%; }
  }

  .valves{
    display: flex;
    justify-content: space-between;
    margin-top: -3px;
  }
  .valve{
    width: 3px; height: 3px;
    position: relative; top: -0.5px;
  }
  .valve::after{
    content:"";
    position:absolute;
    width: 7px; height: 7px;
    left: -2px; top: -2px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--blue-dim);
  }

  /* ---------- notify ---------- */
  .notify{
    margin-top: 3rem;
    display: flex;
    gap: 0.6rem;
    width: min(420px, 90vw);
  }
  .notify input{
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
  }
  .notify input::placeholder{ color: #6b7076; }
  .notify input:focus{ border-color: var(--blue); }
  .notify input:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

  .notify button{
    background: var(--blue);
    color: #0e1114;
    border: none;
    border-radius: 8px;
    padding: 0 1.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
  }
  .notify button:hover{ background: #63b0e5; }
  .notify button:active{ transform: scale(0.97); }
  .notify button:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }

  .notify-msg{
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--blue);
    height: 1.2em;
  }

  /* ---------- footer ---------- */
  footer{
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem clamp(1.5rem, 5vw, 3.5rem) 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink-dim);
  }
  footer a{
    color: var(--ink-dim);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  footer a:hover, footer a:focus-visible{ color: var(--blue); }

  .footer-links{ display: flex; gap: 1.4rem; }

  @media (max-width: 480px){
    .notify{ flex-direction: column; }
    .notify button{ padding: 0.8rem; }
    footer{ flex-direction: column; align-items: flex-start; }
  }
