
:root {
  --bg: #0a0c10;
  --bg-soft: #0e1117;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.09);
  --ivory: #f2efea;
  --muted: #9b978f;
  --gold: #c9a876;
  --copper: #e0a458;
  --indigo: #6e7bc9;

  --gradient-signature: linear-gradient(120deg, var(--gold) 0%, var(--copper) 45%, var(--indigo) 100%);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --radius-lg: 20px;
  --radius-md: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base / reset
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Visible keyboard focus everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Ambient background layer (blobs + aperture mark)
   ========================================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(110, 123, 201, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(224, 164, 88, 0.10), transparent 60%),
    var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.blob--one {
  width: 42vw;
  height: 42vw;
  max-width: 560px;
  max-height: 560px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, var(--gold), transparent 70%);
  animation: drift-one 26s var(--ease) infinite alternate;
}

.blob--two {
  width: 36vw;
  height: 36vw;
  max-width: 480px;
  max-height: 480px;
  bottom: -14%;
  right: -6%;
  background: radial-gradient(circle at 60% 60%, var(--indigo), transparent 70%);
  animation: drift-two 30s var(--ease) infinite alternate;
}

@keyframes drift-one {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 5vh) scale(1.08); }
}

@keyframes drift-two {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4vw, -4vh) scale(1.05); }
}

/* Signature element: rotating aperture / iris mark, centered behind the hero */
.aperture {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 620px);
  height: min(72vw, 620px);
  transform: translate(-50%, -50%);
  opacity: 0.16;
  animation: rotate-slow 120s linear infinite;
}

.aperture__ring circle {
  fill: none;
  stroke: url(#dummy);
  stroke: var(--gold);
  stroke-opacity: 0.5;
  stroke-width: 0.75;
}

.aperture__ring--mid circle {
  stroke: var(--indigo);
  stroke-opacity: 0.4;
}

.aperture__blades path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 0.6;
  stroke-opacity: 0.55;
}

@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Fine grain overlay to keep the flat dark background from looking sterile */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 3rem;
}

.container {
  max-width: 900px;
}

/* ==========================================================================
   Brand header
   ========================================================================== */

.brand-header {
  margin-bottom: 3rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-signature);
  box-shadow: 0 0 12px rgba(224, 164, 88, 0.6);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  margin-bottom: 3.25rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--ivory);
}

.hero__title-accent {
  font-style: italic;
  font-weight: 300;
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ivory);
  opacity: 0.9;
  margin-bottom: 1.1rem;
}

.description {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ==========================================================================
   Glass card (shared base for countdown + subscribe)
   ========================================================================== */

.glass-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* ==========================================================================
   Countdown
   ========================================================================== */

.countdown-section {
  margin-bottom: 2.75rem;
}

.countdown__card {
  padding: 1.35rem 0.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  height: 100%;
}

.countdown__card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 118, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.countdown__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Subscribe form
   ========================================================================== */

.subscribe-section {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.subscribe-card {
  width: 100%;
  max-width: 520px;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
}

.subscribe-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ivory);
  margin-bottom: 1rem;
  text-align: center;
}

.subscribe-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.subscribe-form__input {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  color: var(--ivory);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.subscribe-form__input::placeholder {
  color: var(--muted);
}

.subscribe-form__input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
  color: var(--ivory);
  box-shadow: none;
}

.subscribe-form__btn {
  flex: 0 0 auto;
  background: var(--gradient-signature);
  border: none;
  color: #14110c;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.subscribe-form__btn:hover,
.subscribe-form__btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(201, 168, 118, 0.3);
  color: #14110c;
}

.subscribe-form__btn:active {
  transform: translateY(0);
}

.subscribe-form__feedback {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.subscribe-form__feedback.is-success {
  color: var(--gold);
}

.subscribe-form__feedback.is-error {
  color: #e08a8a;
}

/* ==========================================================================
   Social icons
   ========================================================================== */

.social-section {
  margin-bottom: 2.5rem;
}

.social-section__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}

.social-icons__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.social-icons__link svg {
  width: 18px;
  height: 18px;
}

.social-icons__link:hover,
.social-icons__link:focus-visible {
  color: var(--ivory);
  border-color: var(--gold);
  background: rgba(201, 168, 118, 0.12);
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.page-footer {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   Entrance animation (single orchestrated moment, not scattered effects)
   ========================================================================== */

.brand-header,
.hero,
.countdown-section,
.subscribe-section,
.social-section,
.page-footer {
  animation: rise-in 0.9s var(--ease) both;
}

.hero { animation-delay: 0.05s; }
.countdown-section { animation-delay: 0.15s; }
.subscribe-section { animation-delay: 0.25s; }
.social-section { animation-delay: 0.35s; }
.page-footer { animation-delay: 0.4s; }

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

/* ==========================================================================
   Responsive tuning
   ========================================================================== */

@media (max-width: 767.98px) {
  .page {
    padding: 3rem 0 2rem;
  }

  .subscribe-form__row {
    flex-direction: column;
  }

  .subscribe-form__btn {
    width: 100%;
  }

  .countdown__card {
    padding: 1rem 0.4rem;
  }
}

@media (max-width: 420px) {
  .social-icons {
    gap: 0.65rem;
  }
}

/* ==========================================================================
   Respect reduced-motion preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
