/* ==========================================================================
   Ember — Brand Stylesheet
   Tokens from ember-native design system
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Custom Properties --- */
:root {
  --color-gold:              #C8A675;
  --color-gold-dark:         #B8975F;
  --color-coral:             #E09B84;
  --color-bg:                #F5F0EB;
  --color-surface:           #FFFFFF;
  --color-surface-elevated:  #FFFEFA;
  --color-text-primary:      #3D3426;
  --color-text-secondary:    #6B5D4D;
  --color-text-muted:        #9A8B7A;
  --color-border:            #E6DCD3;
  --color-border-light:      #F0E6DC;
  --color-error:             #A23B3B;
  --color-error-light:       #FEE2E2;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-italic:  'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-label:   'Cormorant Garamond', Georgia, serif;

  --shadow-sm:  0 2px 8px rgba(200, 166, 117, 0.08);
  --shadow-md:  0 4px 16px rgba(200, 166, 117, 0.12);
  --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.08);
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 75% 10%, rgba(224, 155, 132, 0.08), transparent),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(200, 166, 117, 0.06), transparent);
  background-attachment: fixed;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-gold-dark);
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

@keyframes glowOuter {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@keyframes glowInner {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

@keyframes ctaBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.96; }
}

@keyframes charAppear {
  0% {
    opacity: 0;
    text-shadow: 0 0 8px rgba(224, 155, 132, 0.6);
  }
  30% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(224, 155, 132, 0.6);
  }
  100% {
    opacity: 1;
    text-shadow: none;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Animated Background Glow Layers
   ========================================================================== */

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-gold,
.bg-glow-coral,
.bg-glow-bloom {
  position: absolute;
  inset: 0;
}

.bg-glow-gold {
  background: radial-gradient(
    ellipse 80% 80% at 50% 40%,
    rgba(200, 166, 117, 0.10) 0%,
    rgba(200, 166, 117, 0.04) 60%,
    transparent 100%
  );
  animation: breathe 9s ease-in-out infinite;
}

.bg-glow-coral {
  background: radial-gradient(
    ellipse 70% 70% at 55% 55%,
    rgba(224, 155, 132, 0.18) 0%,
    rgba(224, 155, 132, 0.08) 50%,
    transparent 100%
  );
  animation: breathe 14s ease-in-out infinite;
  animation-delay: -4s;
}

.bg-glow-bloom {
  background: radial-gradient(
    ellipse 90% 85% at 50% 45%,
    rgba(224, 155, 132, 0.12) 0%,
    rgba(224, 155, 132, 0.04) 60%,
    transparent 100%
  );
  animation: breathe 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* ==========================================================================
   Page Entrance (Landing Page Only)
   ========================================================================== */

.page-home .site-header,
.page-home .hero-content,
.page-home .site-footer {
  opacity: 0;
  animation: fadeIn 1.8s ease-out forwards;
}

/* ==========================================================================
   Legal Page Nav
   ========================================================================== */

.legal-nav {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.legal-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.legal-nav__logo:hover {
  color: var(--color-text-primary);
}

.legal-nav__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.legal-nav__logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #5C4C42;
  letter-spacing: 0.05em;
}

.legal-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--color-gold);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
  min-height: 44px;
}

.legal-nav__cta:hover {
  background: var(--color-gold-dark);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.logo:hover {
  color: var(--color-text-primary);
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #5C4C42;
}

/* ==========================================================================
   Hero Section (Landing Page)
   ========================================================================== */

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

.hero::before {
  content: '';
  flex: 3;
}

.hero::after {
  content: '';
  flex: 5;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  padding: 0 24px;
  width: 100%;
}

/* --- Logo with Glow --- */

.logo-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-glow-outer,
.logo-glow-inner {
  position: absolute;
  pointer-events: none;
}

.logo-glow-outer {
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(224, 155, 132, 0.12) 0%,
    rgba(224, 155, 132, 0.07) 20%,
    rgba(224, 155, 132, 0.03) 40%,
    rgba(224, 155, 132, 0.01) 55%,
    transparent 70%
  );
  animation: glowOuter 8s ease-in-out infinite;
  animation-play-state: paused;
}

.logo-glow-inner {
  inset: -10%;
  background: radial-gradient(
    circle at center,
    rgba(200, 166, 117, 0.15) 0%,
    rgba(200, 166, 117, 0.08) 20%,
    rgba(200, 166, 117, 0.03) 40%,
    rgba(200, 166, 117, 0.01) 55%,
    transparent 70%
  );
  animation: glowInner 4.4s ease-in-out infinite;
  animation-play-state: paused;
}

body.animations-active .logo-glow-outer,
body.animations-active .logo-glow-inner {
  animation-play-state: running;
}

.logo-image {
  position: relative;
  width: 200px;
  height: auto;
  z-index: 1;
  display: block;
}

/* --- Heading --- */

.heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 64px;
  color: var(--color-gold-dark);
  letter-spacing: 2.5px;
  text-shadow: 0 0 12px rgba(200, 166, 117, 0.35);
  line-height: 1.2;
  margin-bottom: 0;
}

/* --- Divider --- */

.divider {
  width: 56px;
  height: 2px;
  background: rgba(200, 166, 117, 0.50);
  border-radius: 1px;
  margin: 20px 0;
}

/* --- Rotating Tagline --- */

.tagline {
  min-height: 30px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tagline-text {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 20px;
  color: var(--color-text-secondary);
  letter-spacing: 0.4px;
  line-height: 30px;
  text-align: center;
  display: inline-block;
}

.tagline-char {
  opacity: 0;
  display: inline;
}

.tagline-char.visible {
  animation: charAppear 0.5s ease forwards;
}

/* --- CTA Button --- */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 48px;
  background: var(--color-gold);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border: 1px solid rgba(200, 166, 117, 0.3);
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 166, 117, 0.35);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  max-width: 400px;
  animation: ctaBreathe 4.4s ease-in-out infinite;
  animation-play-state: paused;
}

body.animations-active .cta-button {
  animation-play-state: running;
}

.cta-button:hover {
  background: #D4B485;
  box-shadow: 0 8px 20px rgba(200, 166, 117, 0.45);
  color: #FFFFFF;
}

.cta-button:active {
  transform: scale(0.98);
}

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

.site-footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  position: relative;
  z-index: 1;
}

.footer-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

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

.footer-dot {
  color: var(--color-text-muted);
  font-size: 14px;
  user-select: none;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Content Pages (Privacy, Terms, Support)
   ========================================================================== */

.page-content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.jurisdiction-note {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.section-card {
  background: linear-gradient(to bottom, var(--color-surface-elevated), var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.section-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.section-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.section-card p + p {
  margin-top: 12px;
}

.section-card a {
  word-break: break-word;
}

.contact-email {
  font-size: 18px;
  font-weight: 500;
}

.info-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.info-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  padding-left: 24px;
  position: relative;
}

.info-list li::before {
  content: '\2022';
  position: absolute;
  left: 8px;
  color: var(--color-gold);
  font-weight: 700;
}

/* ==========================================================================
   Waitlist Page
   ========================================================================== */

.waitlist-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.waitlist-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 480px;
  width: 100%;
}

.waitlist-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.waitlist-subtext {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid rgba(200, 166, 117, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 166, 117, 0.15);
}

.form-hint {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-error);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input {
  border-color: var(--color-error);
}

/* --- Checkbox --- */

.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-gold);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--color-gold);
  text-decoration: underline;
}

.checkbox-error {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-error);
  margin-top: -16px;
  margin-bottom: 16px;
  display: none;
}

.checkbox-error.visible {
  display: block;
}

/* --- Submit Button --- */

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 16px 32px;
  background: var(--color-gold);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border: 1px solid rgba(200, 166, 117, 0.3);
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 166, 117, 0.35);
  transition: background 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  background: #D4B485;
  box-shadow: 0 8px 20px rgba(200, 166, 117, 0.45);
}

.submit-button:active:not(:disabled) {
  transform: scale(0.98);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- Spinner --- */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* --- Form Messages --- */

.form-message {
  background: var(--color-error-light);
  color: var(--color-error);
  font-family: var(--font-body);
  font-size: 12px;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.duplicate {
  background: rgba(200, 166, 117, 0.10);
  color: var(--color-text-secondary);
}

/* --- Success State --- */

.waitlist-success {
  text-align: center;
  padding: 32px 0;
  display: none;
}

.waitlist-success.visible {
  display: block;
}

.success-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.success-text {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.back-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-gold);
}

.back-link:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 1024px) {
  .logo-container {
    width: 260px;
    height: 260px;
  }

  .logo-image {
    width: 160px;
  }

  .heading {
    font-size: 48px;
  }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 768px) {
  .logo-container {
    width: 220px;
    height: 220px;
    margin-bottom: 16px;
  }

  .logo-image {
    width: 120px;
  }

  .heading {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .tagline-text {
    font-size: 18px;
  }

  .tagline {
    margin-bottom: 24px;
  }

  .divider {
    margin: 16px 0;
  }

  .cta-button {
    width: calc(100% - 48px);
    max-width: none;
    padding: 16px 24px;
  }

  .waitlist-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .waitlist-heading {
    font-size: 26px;
  }

  .waitlist-subtext {
    margin-bottom: 24px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .section-card {
    padding: 20px;
    border-radius: 12px;
  }

  .site-header {
    padding: 16px 20px;
  }
}

/* ==========================================================================
   Responsive — Small Mobile
   ========================================================================== */

@media (max-width: 400px) {
  .heading {
    font-size: 36px;
    letter-spacing: 1.5px;
  }

  .tagline-text {
    font-size: 16px;
  }

  .cta-button {
    font-size: 16px;
    min-height: 52px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .page-home .site-header,
  .page-home .hero-content,
  .page-home .site-footer {
    opacity: 1 !important;
    animation: none !important;
  }

  .bg-glow-gold,
  .bg-glow-coral,
  .bg-glow-bloom {
    animation: none !important;
    opacity: 0.6;
  }

  .logo-glow-outer {
    animation: none !important;
    opacity: 0.3;
  }

  .logo-glow-inner {
    animation: none !important;
    opacity: 0.2;
  }

  .cta-button {
    animation: none !important;
    opacity: 1 !important;
  }

  .tagline-char {
    opacity: 1 !important;
    animation: none !important;
  }
}
