:root {
  --navy: #0b2230;
  --navy-deep: #071923;
  --amber: #f5a623;
  --amber-2: #ffc86b;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.5);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--white);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Background (slow Ken Burns) ---------- */
.bg {
  position: fixed;
  inset: -6%;
  background: url("images/hero.jpg") center center / cover no-repeat;
  filter: saturate(1.45) contrast(1.06) brightness(1.05);
  animation: kenburns 30s ease-in-out infinite alternate;
  z-index: -2;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(0, -1.5%); }
}

/* ---------- Overlay (legibility + mood) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(110% 80% at 50% 45%, rgba(245, 166, 35, 0.24) 0%, rgba(245, 166, 35, 0) 62%),
    linear-gradient(180deg, rgba(8, 30, 46, 0.62) 0%, rgba(14, 44, 60, 0.18) 42%, rgba(8, 24, 34, 0.62) 100%);
  z-index: -1;
}

/* ---------- Top bar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  z-index: 2;
}
.brand {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.brand .x { color: var(--amber); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 84px clamp(18px, 5vw, 40px) 64px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.headline {
  margin: 0 0 18px;
  font-size: clamp(34px, 7.5vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.7s 0.08s ease both;
}

.sub {
  margin: 0 auto 30px;
  max-width: 560px;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  animation: fadeUp 0.7s 0.16s ease both;
}

/* ---------- Signup ---------- */
.signup {
  display: flex;
  width: min(480px, 100%);
  padding: 7px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.7s 0.24s ease both;
}
.signup input {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: 500 15px "Plus Jakarta Sans", sans-serif;
}
.signup input::placeholder { color: var(--muted-2); }
.signup button {
  border: 0;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  font: 700 15px "Plus Jakarta Sans", sans-serif;
  color: #241500;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  background-size: 150% 150%;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-position 0.4s ease;
  white-space: nowrap;
}
.signup button:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.4);
}
.signup button:active { transform: translateY(0); }

.msg {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  animation: fadeUp 0.3s ease both;
}
.msg.ok  { color: #7ce3a2; }
.msg.err { color: #ff9a9a; }

/* ---------- Footer ---------- */
.foot {
  position: absolute;
  bottom: 20px; left: 0; right: 0;
  text-align: center;
  z-index: 2;
}
.foot p { margin: 0; }
.foot .copy { color: #ffffff; font-size: 14px; }
.foot .tag  { color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 8px; }
.foot .url  { font-family: "SFMono-Regular", Consolas, "Courier New", monospace; color: rgba(255, 255, 255, 0.82); font-size: 13px; margin-top: 8px; letter-spacing: 0.01em; }

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Small screens: keep it on one screen, no scroll ---------- */
@media (max-width: 520px) {
  .headline { font-size: clamp(30px, 11vw, 42px); }
  .sub { font-size: 14px; margin-bottom: 22px; }
  .signup { flex-direction: column; border-radius: 22px; padding: 8px; }
  .signup input { text-align: center; padding: 12px; }
  .signup button { padding: 14px; }
  .contacts { margin-top: 18px; }
  .topbar { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg, .dot, .eyebrow, .headline, .sub, .signup, .contacts, .msg { animation: none; }
}
