/* stefanpressconsulting.com - the home page (index.php). Served as a file: the CSP allows no inline style. */
  :root {
    --bg:        #05060c;
    --panel:     rgba(14, 18, 32, 0.66);
    --line:      rgba(120, 220, 255, 0.18);
    --cyan:      #4af0ff;
    --violet:    #a06bff;
    --text:      #dfe7f5;
    --muted:     #7e8aa6;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }
  #grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
  }
  .glow {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
  }
  .glow.a { top: -180px; left: -120px; width: 460px; height: 460px; background: #1b6cff; }
  .glow.b { bottom: -220px; right: -140px; width: 520px; height: 520px; background: #7d2bff; }

  .wrap {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(20px, 4vh, 40px) 24px 28px;
  }

  /* wraps when the brand, the links and the signed-in box do not fit on one line (was 6-169 px wider than the window
     at 561-729 px with "Guest" / "Signed in as" showing - Mac cross-test 2026-10-21) */
  .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
  .nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .navlink {
    font-size: 13.5px;
    letter-spacing: 0.01em;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    animation: rise .5s ease both;
  }
  .navlink:hover, .navlink:focus-visible { color: var(--cyan); }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.42em;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--cyan);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  }
  .brand .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  .brand { animation: rise .5s ease both; }

  h1 {
    margin: 16px 0 8px;
    font-size: clamp(30px, 6vw, 50px);
    line-height: 1.1;
    padding-bottom: 0.08em;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(110deg, #ffffff 0%, var(--cyan) 55%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 26px rgba(74,240,255,0.22));
    animation: rise .6s ease .05s both;
  }
  h1 abbr { text-decoration: none; cursor: help; }
  .tag {
    color: var(--muted);
    font-size: 14px;
    max-width: 52ch;
    line-height: 1.55;
    margin: 0 0 22px;
    animation: rise .6s ease .1s both;
  }
  .tag b { color: var(--text); font-weight: 600; }

  .card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05),
                0 0 0 1px rgba(74,240,255,0.05);
    animation: rise .6s ease .15s both;
  }
  /* Glowing scanner hairline along the card's top edge */
  .card::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--violet) 70%, transparent);
    opacity: 0.75;
  }
  /* HUD corner brackets */
  .card::after {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border-radius: 8px;
    background:
      linear-gradient(var(--cyan), var(--cyan)) no-repeat left top    / 16px 1.5px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat left top    / 1.5px 16px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat right top   / 16px 1.5px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat right top   / 1.5px 16px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat left bottom / 16px 1.5px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat left bottom / 1.5px 16px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat right bottom/ 16px 1.5px,
      linear-gradient(var(--cyan), var(--cyan)) no-repeat right bottom/ 1.5px 16px;
    opacity: 0.4;
  }
  .card > * { position: relative; z-index: 1; }
  .caption {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: var(--cyan);
    margin: 0 0 18px;
    text-shadow: 0 0 18px rgba(74,240,255,0.35);
  }
  .caption .blink { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
  }
  .field { margin-bottom: 14px; }
  .row { display: flex; gap: 14px; }
  .row .field { flex: 1; }
  input, select, textarea {
    width: 100%;
    background: rgba(4, 7, 16, 0.7);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    padding: 11px 14px;
    transition: border-color .18s, box-shadow .18s;
  }
  textarea { resize: vertical; min-height: 88px; }
  select { appearance: none; cursor: pointer; }
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(74,240,255,0.14);
  }
  .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

  button {
    width: 100%;
    margin-top: 4px;
    padding: 14px 18px;
    border: none;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #04111a;
    cursor: pointer;
    background: linear-gradient(100deg, var(--cyan), var(--violet));
    box-shadow: 0 10px 30px rgba(74,240,255,0.28);
    transition: transform .12s, box-shadow .18s, filter .18s;
  }
  button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 14px 38px rgba(120,120,255,0.4); }
  button:active { transform: translateY(0); }
  #send:disabled {
    cursor: not-allowed;
    color: var(--muted);
    background: rgba(4, 7, 16, 0.65);
    border: 1px solid var(--line);
    box-shadow: none;
    transform: none;
    filter: none;
  }
  #send:disabled:hover { transform: none; filter: none; box-shadow: none; }

  /* Human-verification control */
  .verify {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 0 14px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    background: rgba(4, 7, 16, 0.7);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: none;
  }
  .verify:hover { transform: none; filter: none; box-shadow: 0 0 0 3px rgba(74,240,255,0.1); }
  .verify .vbox {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--muted);
    display: grid; place-items: center;
    transition: border-color .2s, background .2s;
  }
  .verify .vcheck {
    width: 11px; height: 6px;
    border-left: 2px solid #04111a;
    border-bottom: 2px solid #04111a;
    transform: rotate(-45deg) scale(0);
    transition: transform .2s ease .05s;
  }
  .verify .vscan {
    position: absolute;
    top: 0; bottom: 0; left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(74,240,255,0.35), transparent);
    opacity: 0;
  }
  .verify.scanning { border-color: var(--cyan); }
  .verify.scanning .vbox { border-color: var(--cyan); }
  .verify.scanning .vscan { opacity: 1; animation: scan 0.9s linear; }
  @keyframes scan { from { left: -40%; } to { left: 100%; } }
  .verify.done { border-color: rgba(40,220,160,0.5); color: #8ff5d2; }
  .verify.done .vbox { background: var(--cyan); border-color: var(--cyan); }
  .verify.done .vcheck { transform: rotate(-45deg) scale(1); }

  .alert {
    border-radius: 11px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .alert.ok {
    background: rgba(40, 220, 160, 0.1);
    border: 1px solid rgba(40, 220, 160, 0.4);
    color: #8ff5d2;
  }
  .alert.err {
    background: rgba(255, 80, 110, 0.08);
    border: 1px solid rgba(255, 80, 110, 0.38);
    color: #ff9fb0;
  }
  .alert ul { margin: 6px 0 0; padding-left: 18px; }

  footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-top: 22px;
  }

  /* Mobile — stack the name/email row, dial up the glow */
  @media (max-width: 560px) {
    .wrap { padding: calc(env(safe-area-inset-top, 0px) + 48px) 18px 24px; }
    .row { flex-direction: column; gap: 0; }
    .glow { opacity: 0.7; }
    .glow.a { width: 360px; height: 360px; }
    .glow.b { width: 400px; height: 400px; }
    h1 { font-size: clamp(34px, 12vw, 46px); }
    .brand { letter-spacing: 0.3em; font-size: 11px; }
    .card { padding: 22px 18px 22px; }
  }

  /* Visitors who ask for less motion get the page at rest: no entrance fades, no pulses */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  /* ---- Secret device-preview control ---- */
  .brand .dot { cursor: default; }

  #preview-ctl {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 60;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(10, 14, 26, 0.85);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  }
  #preview-ctl.show { display: flex; }
  #preview-ctl button {
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    transition: color .15s, background .15s;
  }
  #preview-ctl button:hover { color: var(--text); background: rgba(255,255,255,0.05); transform: none; filter: none; }
  #preview-ctl button.active {
    color: #04111a;
    background: linear-gradient(100deg, var(--cyan), var(--violet));
  }
  #preview-ctl .x { color: var(--muted); padding: 8px 10px; }

  #device-stage {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    background: rgba(2, 4, 10, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  #device-stage.show { display: grid; }
  .device { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .bezel {
    position: relative;
    background: #05060c;
    overflow: hidden;
    box-shadow: 0 0 0 11px #0b0e1a, 0 0 0 13px rgba(120,220,255,0.22),
                0 30px 90px rgba(0,0,0,0.7), 0 0 70px rgba(74,240,255,0.16);
  }
  .bezel iframe { display: block; border: 0; width: 100%; height: 100%; background: var(--bg); }
  .bezel .island {
    position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 25px; background: #000; border-radius: 14px; z-index: 3;
  }
  .bezel .cam {
    position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
    width: 11px; height: 11px; background: #000; border-radius: 50%; z-index: 3;
    box-shadow: inset 0 0 0 1.5px rgba(120,220,255,0.45);
  }
  .device-label {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
    text-shadow: 0 0 16px rgba(74,240,255,0.35);
  }
