@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400;500&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0c0c0b;
  --white: #f4f1eb;
  --off-white: #ede9e1;
  --gray: #888880;
  --light-gray: #c8c4bc;
  --accent: #c8a96e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "DM Mono", monospace;
}

/*  BASE  */
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/*  GRAIN OVERLAY  */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  z-index: 0;
  animation: grain-shift 8s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, -2%); }
  50%  { transform: translate(2%, 1%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

/*  AMBIENT BLOBS  */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #d4b896 0%, transparent 70%);
  top: -120px;
  right: -100px;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #b8c4b0 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: blob-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

/*  PAGE LAYOUT  */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/*  TOP BAR  */
.top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  animation: fadeUp 1.8s ease both;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--black);
}

.top-brand svg {
  opacity: 0.85;
}

.top-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--light-gray);
  padding: 5px 12px;
  border-radius: 100px;
}

/*  HERO  */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
  animation: fadeUp 1.8s 0.5s ease both;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Headline */
.headline {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.line {
  display: block;
  overflow: hidden;
}

.line-1 {
  font-size: clamp(52px, 10vw, 80px);
  animation: slideUp 2.0s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-2 {
  font-size: clamp(68px, 14vw, 110px);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  line-height: 0.92;
  animation: slideUp 2.0s 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-3 {
  font-size: clamp(52px, 10vw, 80px);
  animation: slideUp 2.0s 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Description */
.description {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--gray);
  max-width: 380px;
  margin-bottom: 44px;
  letter-spacing: 0.3px;
  animation: fadeUp 1.8s 1.8s ease both;
}

/* ─── REGISTER AREA ─────────────────────────────────── */
#register-area {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: fadeUp 1.8s 2.1s ease both;
}

/* ─── PRIMARY BUTTON ────────────────────────────────── */
#register-btn {
  position: relative;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 40px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  cursor: pointer;
  height: 54px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.15);
}

#register-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

#register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

#register-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* ─── EMAIL AREA ────────────────────────────────────── */
#email-area {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

#email-input {
  width: 100%;
  background: var(--off-white);
  color: var(--black);
  border: 1.5px solid var(--light-gray);
  padding: 0 24px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  outline: none;
  height: 54px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#email-input::placeholder {
  color: var(--light-gray);
}

#email-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(12,12,11,0.07);
}

#email-input.error {
  border-color: #c94040;
  box-shadow: 0 0 0 3px rgba(201,64,64,0.1);
}

#submit-btn {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 36px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  height: 48px;
  transition: transform 0.15s ease, opacity 0.25s ease, box-shadow 0.2s ease;
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

#submit-btn:active {
  transform: translateY(0);
}

#submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── MESSAGES ──────────────────────────────────────── */
#success-msg {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 32px;
  background: var(--black);
  border-radius: 4px;
  color: var(--white);
  width: 100%;
}

#success-msg .checkmark {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 4px;
}

#success-msg .title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 1px;
}

#success-msg .subtitle {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.5px;
  line-height: 1.7;
}

#error-msg {
  display: none;
  font-size: 10px;
  font-family: var(--mono);
  color: #c94040;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ─── FINE PRINT ────────────────────────────────────── */
.fine-print {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 300;
  color: var(--light-gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeUp 1.4s 1.9s ease both;
}


/* ─── FOOTER ────────────────────────────────────────── */
.footer {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--light-gray);
  letter-spacing: 1px;
  display: flex;
  align-items: start;
  width: 100%;
  gap: 10px;
  animation: fadeUp 1.8s 2.1s ease both;
}

.footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--black);
}

.footer .sep {
  opacity: 0.4;
}

/* ─── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-out {
  opacity: 0 !important;
  transform: scale(0.95) translateY(-4px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.fade-in {
  animation: fadeUp 0.4s ease both;
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 480px) {
  .page {
    padding: 24px 20px 32px;
  }

  .top-bar {
    margin-bottom: 56px;
  }

  .stats-strip {
    margin-top: 48px;
  }

  .stat-num {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
}