/* ==========================================================================
   CollectionCave — Coming Soon landing page
   Tokens matched to the real app's src/app/globals.css
   ========================================================================== */

:root {
  --bg: #0A0A0C;
  --surface: #131318;
  --elevated: #1B1B22;
  --edge: #26262f;
  --ink: #f4f2ee;
  --muted: #a09d96;
  --gold: #e8b45a;
  --gold-deep: #b9821f;
  --gold-light: #f4d28c;
  --error: #e5675f;
  --success: #7fd9a8;

  --gold-gradient: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

/* Ambient background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(232, 180, 90, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 30%, rgba(232, 180, 90, 0.06), transparent 60%);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.75rem 1.25rem 0.5rem;
}

.header-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.header-wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 2rem;
}

.hero-headline {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5vw + 0.5rem, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subhead {
  margin: 0 auto 1.75rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.2vw + 0.75rem, 1.2rem);
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold-gradient);
  box-shadow: 0 6px 24px rgba(232, 180, 90, 0.25);
}

/* ---------- Form section ---------- */

.form-section {
  width: 100%;
  max-width: 560px;
  margin: 1rem auto 0;
  padding: 1.5rem 1.25rem 3rem;
}

.glass-card {
  background: rgba(19, 19, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--edge);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
  .glass-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
}

.form-heading {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 650;
  color: var(--ink);
  text-align: center;
}

.field {
  margin-bottom: 1.25rem;
}

.field label,
.hp-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--elevated);
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input[type="email"]::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 180, 90, 0.18);
}

.field input.invalid {
  border-color: var(--error);
}

.field-error {
  min-height: 1.1em;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--error);
}

.char-counter {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

/* Honeypot — visually hidden but present in the accessibility tree so a
   screen reader announces the "leave blank" instruction to real users. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-gold {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #1a1305;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(232, 180, 90, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(232, 180, 90, 0.3);
}

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

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

.form-note {
  min-height: 1.1em;
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--error);
  text-align: center;
}

/* ---------- Success state ---------- */

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.checkmark {
  color: var(--success);
  margin-bottom: 1rem;
}

.success-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
  max-width: 32ch;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
}

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

/* ---------- Small screens ---------- */

@media (max-width: 375px) {
  .hero {
    padding: 2rem 1rem 1rem;
  }

  .hero-logo {
    max-width: 320px;
  }

  .form-section {
    padding: 1.25rem 0.75rem 2.5rem;
  }
}
