:root {
  --ink: #14161a;
  --paper: #fafaf8;
  --line: #e4e2dc;
  --accent: #0f6d5c;
  --accent-dark: #0b5346;
  --accent2: #c96a2b;
  --muted: #6b6f76;
  --card: #ffffff;
  --danger: #b3452c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

/* subtle floor-plan style grid, faint, purely decorative */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 22, 26, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 22, 26, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0 0;
}

.site-header .brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.site-header .tag {
  font-size: 12px;
  color: var(--muted);
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(40px, 10vh, 96px);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  background: #fff4e5;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 0 0 20px;
}

h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 640px;
}

.sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 40px;
}

/* Countdown */
.countdown {
  width: 100%;
  margin-bottom: 40px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.unit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.unit .num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.unit .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.launch-date {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.launch-date strong {
  color: var(--ink);
}

/* Notify form */
.notify {
  width: 100%;
  max-width: 480px;
}

.field-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

#email {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 109, 92, 0.12);
}

#email:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

/* honeypot: hidden from real users, left in the tab/DOM flow for bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

#notify-submit {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
}

#notify-submit:hover { opacity: 0.85; }
#notify-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.form-message.success { color: var(--accent); font-weight: 600; }
.form-message.error { color: var(--danger); font-weight: 600; }

/* Footer */
.site-footer {
  text-align: center;
  padding-top: 40px;
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 480px) {
  .field-row {
    flex-direction: column;
  }
  #notify-submit {
    padding: 13px 22px;
  }
  .countdown-grid {
    gap: 8px;
  }
  .unit {
    padding: 12px 4px 10px;
    border-radius: 10px;
  }
}
