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

:root {
  --bg:     #f0efe9;
  --ink:    #0f0f0f;
  --dim:    #888;
  --card:   #e8e7e0;
  --border: rgba(0,0,0,0.15);
}

html, body {
  min-height: 100vh;
}

body {
  background: var(--bg);
  font-family: 'Courier Prime', 'Courier New', monospace;
  color: var(--ink);
  overflow-x: hidden;
}

/* ── Canvas ── */
#scan-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
#page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.brand-bbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background:
    linear-gradient(#fff, #fff) 0 0 / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) 0 0 / 1px 6px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 1px 6px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 1px 6px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 1px 6px no-repeat;
}

/* ── Coming Soon ── */
.coming-soon {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.cs-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}

.cs-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
  white-space: nowrap;
}

.cs-body {
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--dim);
  margin-bottom: 12px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.cs-hint {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 48px;
  opacity: 0.6;
}

/* ── Subscribe ── */
.cs-subscribe {
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.cs-sub-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.mailing-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.mailing-input {
  flex: 1;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.mailing-input:focus {
  border-color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border: 1.5px solid var(--ink);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  transition: background 0.18s, color 0.18s;
}

.btn:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); }

.btn-fill {
  background: var(--ink);
  color: var(--bg);
}
.btn-fill:hover { background: var(--dim); }
.btn-fill:disabled:hover { background: var(--ink); color: var(--bg); }

.mailing-btn {
  white-space: nowrap;
  border-left: none;
}

.cs-form-msg {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  margin-top: 12px;
  min-height: 1.2em;
}

.cs-form-msg.success {
  color: var(--ink);
  font-weight: 700;
}

.cs-form-msg.error {
  color: #e44;
}

/* ── Socials ── */
.cs-socials {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cs-socials a {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s;
}

.cs-socials a:hover {
  color: var(--ink);
}

.cs-socials-sep {
  font-size: 0.55rem;
  color: var(--border);
}

.cs-timestamp {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 28px;
  opacity: 0.5;
}

/* ── Footer ── */
footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ── Scanline animation ── */
@keyframes scanline {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  main {
    padding: 80px 20px 32px;
  }

  nav {
    padding: 12px 20px;
  }

  .brand {
    font-size: 0.85rem;
  }

  .cs-title {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
    white-space: nowrap;
  }

  .cs-body {
    font-size: 0.68rem;
  }

  .cs-subscribe {
    padding-top: 28px;
  }

  .coming-soon {
    max-width: 100%;
  }

  .mailing-form {
    flex-direction: column;
    gap: 0;
  }

  .mailing-btn {
    border-left: 1px solid var(--ink);
    border-top: none;
  }

  footer {
    padding: 20px 24px;
  }
}
