:root {
  --bg: #000000;
  --bg-elevated: #0c0c0e;
  --bg-soft: #121216;
  --fg: #ece8e1;
  --fg-muted: #9a958c;
  --border: rgba(232, 228, 220, 0.12);
  --border-strong: rgba(232, 228, 220, 0.22);
  --gold: #d4a84b;
  --gold-soft: #e6c47a;
  --gold-dim: rgba(212, 168, 75, 0.16);
  --gold-glow: rgba(212, 168, 75, 0.35);
  --danger: #e07070;
  --ok: #7dba7a;
  --font-sans: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 5px;
  --radius-sm: 4px;
  --radius-lg: 6px;
  --header-h: 3.5rem;
  --max: 44rem;
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.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;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.tech-bg__photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(212, 168, 75, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(160, 155, 190, 0.08), transparent 50%),
    var(--tech-bg-image) center / cover no-repeat;
  opacity: 0.34;
  filter: saturate(0.8) contrast(1.08);
}

.tech-bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--gold-soft);
}

.brand__mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand__logo {
  height: 1.35rem;
  width: auto;
  display: block;
}

.brand__text {
  font-size: 0.98rem;
}

.header-spacer {
  flex: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--gold-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-family: var(--font-sans);
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  animation: pulse-dot 2.2s ease infinite;
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(18, 18, 22, 0.85);
}

.lang-switch a {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  min-width: 2.1rem;
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--fg-muted);
}

.lang-switch a[aria-current='true'] {
  background: var(--gold-dim);
  color: var(--gold);
}

.main {
  flex: 1;
  width: min(100%, calc(var(--max) + 3rem));
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.hero {
  position: relative;
  padding: clamp(2.4rem, 7vw, 4.2rem) 0 2rem;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  animation: hero-in 0.7s ease both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff8ec;
  text-shadow: 0 0 40px rgba(212, 168, 75, 0.18);
  animation: hero-in 0.7s ease 0.06s both;
}

.hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--fg-muted);
  animation: hero-in 0.7s ease 0.12s both;
}

.countdown-wrap {
  margin: 0 0 1.5rem;
  animation: hero-in 0.7s ease 0.18s both;
}

.countdown-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.countdown-label strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 4.5rem));
  gap: 0.55rem;
  max-width: 20rem;
}

.countdown__cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 14, 0.72);
  padding: 0.55rem 0.35rem;
  text-align: center;
}

.countdown__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff8ec;
  font-variant-numeric: tabular-nums;
}

.countdown__unit {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-family: var(--font-sans);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: hero-in 0.7s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  appearance: none;
  background: transparent;
  color: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1408;
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.35), 0 10px 28px rgba(212, 168, 75, 0.22);
}

.btn--primary:hover {
  color: #111;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: rgba(212, 168, 75, 0.45);
  color: var(--gold-soft);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.section {
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--border);
  animation: rise-in 0.55s ease both;
}

.section h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #f5f1ea;
}

.section > .lead {
  margin: 0 0 1.15rem;
  color: var(--fg-muted);
  max-width: 36rem;
}

.form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.form--wide {
  max-width: 34rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.field input,
.field textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.9);
  color: var(--fg);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(154, 149, 140, 0.7);
}

.field .hint {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.form-msg {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-msg.is-ok {
  color: var(--ok);
}

.form-msg.is-err {
  color: var(--danger);
}

.turnstile-slot {
  min-height: 65px;
}

/* Validated: no box and no empty grid row (token stays in the hidden input). */
.turnstile-slot.is-verified {
  display: none;
}

.comments {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.75), rgba(8, 8, 10, 0.85));
  padding: 0.95rem 1.05rem;
}

.comment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.comment__name {
  color: var(--gold-soft);
  font-weight: 600;
}

.comment__body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg);
  font-size: 0.95rem;
}

.comments-empty {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.load-more-wrap {
  margin: 0 0 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.25rem 1.5rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.7);
}

.site-footer p {
  margin: 0;
  max-width: 52rem;
}

.site-footer .byline {
  margin-top: 0.25rem;
  color: rgba(154, 149, 140, 0.85);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--gold-dim);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(212, 168, 75, 0.08);
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 0.45rem;
    padding: 0 0.75rem;
  }

  .header-nav {
    display: none;
  }

  .brand__text {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .brand__logo {
    height: 1.15rem;
  }

  .main {
    padding: 0 1rem 3rem;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
