@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500&display=swap');

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg-deep:    #07080d;
  --bg-card:    #0c0d17;
  --bg-raised:  #101222;
  --gold:       #c4923a;
  --gold-lt:    #e8c070;
  --gold-dim:   rgba(196, 146, 58, 0.10);
  --gold-glow:  rgba(196, 146, 58, 0.18);
  --gold-border:rgba(196, 146, 58, 0.20);
  --cream:      #ede8db;
  --text-mid:   #9a9489;
  --text-muted: #52504c;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Outfit', system-ui, sans-serif;
  --max-w:      1180px;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px;
}

/* ─── Ambient Background ─────────────────────────────────────────────────── */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(800px, 70vw);
  height: max(800px, 70vw);
  background: radial-gradient(ellipse at center,
    rgba(196, 146, 58, 0.055) 0%,
    rgba(196, 146, 58, 0.018) 38%,
    transparent 65%
  );
  border-radius: 50%;
  animation: glow-breathe 10s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 1;    }
}

/* Floating card suits */
.suit {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  user-select: none;
  color: var(--cream);
  animation: suit-float linear infinite;
}

.suit:nth-child(2)  { font-size: 5.5rem;  left:  6%;  top: 12%; opacity: 0.04;  animation-duration: 23s;  animation-delay: -4s;  }
.suit:nth-child(3)  { font-size: 2.2rem;  left: 17%;  top: 72%; opacity: 0.07;  animation-duration: 30s;  animation-delay: -9s;  }
.suit:nth-child(4)  { font-size: 9.5rem;  left: 33%;  top: 4%;  opacity: 0.022; animation-duration: 27s;  animation-delay: -14s; }
.suit:nth-child(5)  { font-size: 3rem;    left: 51%;  top: 83%; opacity: 0.06;  animation-duration: 20s;  animation-delay: -6s;  }
.suit:nth-child(6)  { font-size: 12rem;   left: 66%;  top: 8%;  opacity: 0.018; animation-duration: 37s;  animation-delay: -21s; }
.suit:nth-child(7)  { font-size: 4rem;    left: 76%;  top: 58%; opacity: 0.05;  animation-duration: 26s;  animation-delay: -12s; }
.suit:nth-child(8)  { font-size: 7.5rem;  left: 87%;  top: 28%; opacity: 0.03;  animation-duration: 31s;  animation-delay: -8s;  }
.suit:nth-child(9)  { font-size: 2.8rem;  left:  3%;  top: 47%; opacity: 0.065; animation-duration: 19s;  animation-delay: -3s;  }
.suit:nth-child(10) { font-size: 5rem;    left: 44%;  top: 52%; opacity: 0.028; animation-duration: 42s;  animation-delay: -26s; }
.suit:nth-child(11) { font-size: 3.5rem;  left: 91%;  top: 74%; opacity: 0.05;  animation-duration: 23s;  animation-delay: -11s; }
.suit:nth-child(12) { font-size: 8rem;    left: 24%;  top: 38%; opacity: 0.02;  animation-duration: 48s;  animation-delay: -19s; }
.suit:nth-child(13) { font-size: 2.2rem;  left: 59%;  top: 18%; opacity: 0.07;  animation-duration: 21s;  animation-delay: -7s;  }

@keyframes suit-float {
  0%   { transform: translateY(0)     rotate(0deg);  }
  28%  { transform: translateY(-16px) rotate(4deg);  }
  60%  { transform: translateY(9px)   rotate(-3deg); }
  100% { transform: translateY(0)     rotate(0deg);  }
}

/* ─── Page Wrapper ───────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-decoration: none;
}

.logo-suit {
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-user {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-btn {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.42rem 1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.header-btn--outline {
  border: 1px solid rgba(196,146,58,0.35);
  color: var(--text-mid);
  background: transparent;
}

.header-btn--outline:hover { border-color: var(--gold); color: var(--cream); }

.header-btn--solid {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #07080d;
}

.header-btn--solid:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.coming-soon-pill {
  font-family: var(--ff-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  border: 1px solid var(--gold-border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--gold-dim);
  animation: pill-pulse 4s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0   var(--gold-glow); }
  50%       { box-shadow: 0 0 14px 0 var(--gold-glow); }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 5rem;
  position: relative;
}

/* thread of light leading down from hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 88px;
  background: linear-gradient(to bottom, var(--gold-border), transparent);
}

.hero-inner {
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-overline {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  /* subtle gradient: cream → gold */
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-lt) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-divider-line {
  width: 60px;
  height: 1px;
  background: var(--gold-border);
}

.hero-divider-suits {
  font-family: Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.6em;
  color: var(--text-muted);
}

.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 3.5rem;
  max-width: 520px;
  opacity: 0;
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  opacity: 0;
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.scroll-hint:hover { color: var(--gold-lt); }

.scroll-hint svg { animation: bob 2.2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section shared ─────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

/* ─── Features ───────────────────────────────────────────────────────────── */
.features-section {
  padding: 9rem 2rem;
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.features-header .section-title em {
  font-style: italic;
  color: var(--gold-lt);
}

/* Grid: gold lines between cards as gaps */
.features-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-border);
  border: 1px solid var(--gold-border);
}

.feature-card {
  background: var(--bg-card);
  padding: 2.75rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Background suit watermark per card */
.feature-card::after {
  content: attr(data-suit);
  position: absolute;
  bottom: -0.5rem;
  right: 1rem;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--cream);
  opacity: 0.025;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  transform: rotate(-8deg);
}

.feature-card:hover { background: var(--bg-raised); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after  { opacity: 0.045; transform: rotate(-5deg) scale(1.05); }

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: block;
}

.card-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ─── Section Divider ────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.divider-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--gold-border);
}

.divider-suits {
  font-family: Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.7em;
  color: var(--text-muted);
}

/* ─── Notify / Email Capture ─────────────────────────────────────────────── */
.notify-section {
  padding: 9rem 2rem;
  text-align: center;
  position: relative;
}

.notify-inner {
  max-width: 560px;
  margin-inline: auto;
}

.notify-overline {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.notify-title {
  font-family: var(--ff-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.notify-sub {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 3rem;
  line-height: 1.75;
}

.notify-form .form-row {
  display: flex;
  border: 1px solid var(--gold-border);
  background: rgba(12, 13, 23, 0.8);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.notify-form .form-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim), 0 0 20px var(--gold-dim);
}

.notify-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 1.05rem 1.35rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--cream);
  min-width: 0;
}

.notify-form input::placeholder { color: var(--text-muted); }

.notify-form button {
  flex-shrink: 0;
  background: var(--gold);
  border: none;
  padding: 1.05rem 1.75rem;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #06070b;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s;
}

.notify-form button:hover:not(:disabled)  { background: var(--gold-lt); }
.notify-form button:active:not(:disabled) { background: var(--gold); }
.notify-form button:disabled {
  background: rgba(196,146,58,0.25);
  color: rgba(6,7,11,0.4);
  cursor: not-allowed;
}

.form-consents {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-mid);
  cursor: pointer;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid var(--gold-border);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.consent-label input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2307080d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.consent-label a { color: var(--gold); text-underline-offset: 2px; }
.consent-label a:hover { color: var(--gold-lt); }

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-radius: 2px;
  text-align: left;
}
.form-message--success {
  background: rgba(80, 160, 80, 0.12);
  border: 1px solid rgba(80, 200, 80, 0.25);
  color: #7ec87e;
}
.form-message--error {
  background: rgba(200, 60, 60, 0.10);
  border: 1px solid rgba(200, 60, 60, 0.25);
  color: #e08080;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(196, 146, 58, 0.12);
}

.footer-suits {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.8em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.footer-legal a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header    { padding: 1.5rem; }
  .features-grid  { grid-template-columns: 1fr; }
  .feature-card   { padding: 2rem 1.75rem; }

  .notify-form .form-row {
    flex-direction: column;
    border: 1px solid var(--gold-border);
  }

  .notify-form button {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--gold-border);
  }
}

/* ─── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: .5rem 1.25rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 0 0 6px 6px;
  z-index: 10000;
  transition: top .2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
}

/* ─── Screen-reader utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
