/* ═══════════════════════════════════════════════════════
   ZERMISH — Hero Section & Content Styles
   ═══════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Prelude ───────────────────────────────────────────── */
.hero__prelude {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
}

/* ── Headline ──────────────────────────────────────────── */
.hero__headline {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero__headline-line {
  display: block;
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: var(--white);
  opacity: 0;
  transform: translateY(40px);
}

.hero__headline-line--accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.1em;
}

/* ── Subtitle ──────────────────────────────────────────── */
.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 200;
  line-height: 1.9;
  color: var(--white-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Actions ───────────────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
}

/* ── Gold Dividers ─────────────────────────────────────── */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  opacity: 0;
}

.gold-divider--top {
  margin-bottom: var(--space-xl);
}

.gold-divider--bottom {
  margin-top: var(--space-xl);
}

.gold-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-muted) 50%,
    transparent 100%
  );
}

.gold-divider__ornament {
  font-size: 0.6rem;
  color: var(--gold);
  opacity: 0.6;
  animation: ornament-breathe 4s ease-in-out infinite;
}

@keyframes ornament-breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.15); }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 2.5em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition:
    transform var(--duration-med) var(--ease-out-expo),
    box-shadow var(--duration-med) var(--ease-luxury);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}

/* ── Primary Button ────────────────────────────────────── */
.btn--primary {
  background: rgba(194, 163, 103, 0.06);
  color: var(--gold);
  border: 1px solid rgba(194, 163, 103, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(194, 163, 103, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(194, 163, 103, 0.1);
}

.btn--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 163, 103, 0.55);
  box-shadow:
    0 0 0 1px rgba(194, 163, 103, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(194, 163, 103, 0.08),
    inset 0 1px 0 rgba(194, 163, 103, 0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Button glow layer */
.btn__glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(194, 163, 103, 0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--duration-med) var(--ease-luxury);
  z-index: -1;
}

.btn--primary:hover .btn__glow {
  opacity: 1;
}

/* Button reflection sweep */
.btn__reflection {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(194, 163, 103, 0.06) 40%,
    rgba(194, 163, 103, 0.12) 50%,
    rgba(194, 163, 103, 0.06) 60%,
    transparent 100%
  );
  z-index: -1;
  transition: none;
}

.btn--primary:hover .btn__reflection {
  animation: btn-sweep 1s var(--ease-out-expo) forwards;
}

@keyframes btn-sweep {
  0%   { left: -100%; }
  100% { left: 150%; }
}

.btn__text {
  position: relative;
  z-index: 1;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* ── Secondary Button ──────────────────────────────────── */
.btn--secondary {
  background: transparent;
  color: var(--white-muted);
  border: 1px solid rgba(245, 240, 232, 0.1);
  transition:
    color var(--duration-fast) var(--ease-luxury),
    border-color var(--duration-fast) var(--ease-luxury),
    transform var(--duration-med) var(--ease-out-expo);
}

.btn--secondary:hover {
  color: var(--gold-light);
  border-color: rgba(194, 163, 103, 0.25);
  transform: translateY(-1px);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn--secondary:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── Breathing animation for primary button ────────────── */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--emerald-dark), var(--emerald-dark)) padding-box,
    linear-gradient(
      135deg,
      rgba(194, 163, 103, 0.3),
      rgba(194, 163, 103, 0.05),
      rgba(194, 163, 103, 0.3)
    ) border-box;
  animation: border-breathe 4s ease-in-out infinite;
  z-index: -1;
  opacity: 0.5;
}

@keyframes border-breathe {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════
   MODAL (Notify Me)
   ═══════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-med) var(--ease-luxury),
    visibility var(--duration-med);
}

.modal[open] {
  opacity: 1;
  visibility: visible;
}

.modal::backdrop {
  background: rgba(2, 10, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: var(--space-xl);
  background: rgba(10, 41, 35, 0.5);
  border: 1px solid rgba(194, 163, 103, 0.15);
  border-radius: 4px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(194, 163, 103, 0.2),
    inset 0 1px 0 rgba(194, 163, 103, 0.06);
  text-align: center;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.modal[open] .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 2px;
  color: var(--white-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-luxury),
    border-color var(--duration-fast) var(--ease-luxury);
}

.modal__close:hover {
  color: var(--gold);
  border-color: rgba(194, 163, 103, 0.3);
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.modal__desc {
  font-size: 0.85rem;
  font-weight: 200;
  color: var(--white-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal__field {
  position: relative;
}

.modal__input {
  width: 100%;
  padding: 1em 1.4em;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(194, 163, 103, 0.2);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease-luxury),
    box-shadow var(--duration-fast) var(--ease-luxury);
}

.modal__input::placeholder {
  color: var(--white-dim);
  font-weight: 200;
}

.modal__input:focus {
  border-color: rgba(194, 163, 103, 0.5);
  box-shadow: 0 0 0 3px rgba(194, 163, 103, 0.08);
}

.modal__input-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  transition: width var(--duration-med) var(--ease-out-expo);
}

.modal__input:focus ~ .modal__input-glow {
  width: 80%;
}

.btn--modal {
  width: 100%;
}

.modal__note {
  font-size: 0.68rem;
  font-weight: 200;
  color: var(--white-dim);
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

/* ── Success State ─────────────────────────────────────── */
.modal__success {
  display: none;
  text-align: center;
  padding: var(--space-lg) 0;
}

.modal__success.is-visible {
  display: block;
}

.modal__success-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.modal__success-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
}
