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

:root {
  --bg: #0c0c0f;
  --surface: #111114;
  --surface-el: #17171b;
  --border: #252528;
  --text-pri: #f0ede8;
  --text-sec: #8a8782;
  --accent: #c4a882;
  --accent-hov: #d4b892;
  --accent-dim: rgba(196, 168, 130, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-pri);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ */
/* NAV                                                                  */
/* ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(12, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.45em;
  color: var(--text-pri);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
  cursor: pointer;
  background: none;
  font-family: 'Inter', sans-serif;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* HERO                                                                 */
/* ------------------------------------------------------------------ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 40px;
  display: block;
}

.hero-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.15;
  color: var(--text-pri);
  max-width: 820px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-sec);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 52px;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--border);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ------------------------------------------------------------------ */
/* SECTION SHARED                                                       */
/* ------------------------------------------------------------------ */

section {
  padding: 120px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

section.full-width {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--text-pri);
  margin-bottom: 20px;
}

.section-title.center {
  text-align: center;
}

.section-sub {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.85;
  max-width: 580px;
}

.section-sub.center {
  text-align: center;
  margin: 0 auto;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 80px;
}

/* ------------------------------------------------------------------ */
/* HOW IT WORKS                                                         */
/* ------------------------------------------------------------------ */

.how-wrap {
  text-align: center;
  margin-bottom: 80px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.step-card {
  background: var(--surface);
  padding: 48px 36px;
  text-align: left;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: rgba(196, 168, 130, 0.2);
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.step-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-pri);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step-desc {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.8;
}

/* ------------------------------------------------------------------ */
/* MOODS                                                                */
/* ------------------------------------------------------------------ */

.moods-section {
  text-align: center;
}

.moods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--border);
}

.mood-card {
  background: var(--bg);
  padding: 40px 32px;
  text-align: left;
  transition: background 0.3s;
  cursor: default;
}

.mood-card:hover {
  background: var(--surface);
}

.mood-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.mood-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--text-pri);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.mood-desc {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ------------------------------------------------------------------ */
/* QUESTIONS ROTATOR                                                    */
/* ------------------------------------------------------------------ */

.questions-section {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.questions-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,168,130,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.questions-eyebrow {
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 60px;
  display: block;
}

.question-display {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(24px, 4vw, 44px);
  color: var(--text-pri);
  line-height: 1.3;
  max-width: 700px;
  opacity: 0;
  transition: opacity 0.8s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.question-text.visible {
  opacity: 1;
  position: relative;
  left: auto;
  transform: none;
}

.question-note {
  margin-top: 48px;
  font-size: 12px;
  color: var(--text-sec);
  letter-spacing: 0.12em;
  opacity: 0.6;
}

/* ------------------------------------------------------------------ */
/* COVENANT                                                             */
/* ------------------------------------------------------------------ */

.covenant-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 32px;
}

.covenant-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text-pri);
  margin-bottom: 32px;
  line-height: 1.2;
}

.covenant-body {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.9;
  margin-bottom: 40px;
}

.covenant-list {
  list-style: none;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.covenant-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.75;
}

.covenant-list li::before {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.covenant-closing {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--accent);
  margin-top: 40px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ */
/* APPLICATION FORM                                                     */
/* ------------------------------------------------------------------ */

.apply-section {
  border-top: 1px solid var(--border);
  padding: 120px 32px;
}

.apply-inner {
  max-width: 640px;
  margin: 0 auto;
}

.apply-header {
  margin-bottom: 60px;
}

.apply-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-pri);
  margin-bottom: 16px;
  line-height: 1.2;
}

.apply-sub {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.85;
}

.form-field {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-el);
  border: 1px solid var(--border);
  color: var(--text-pri);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #3a3a3a;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

.form-checkbox-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 36px;
}

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

.form-checkbox-row label {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.7;
  cursor: pointer;
}

.form-error {
  display: none;
  background: rgba(160, 60, 60, 0.12);
  border: 1px solid rgba(160, 60, 60, 0.3);
  color: #d08080;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.btn-submit {
  display: inline-block;
  width: 100%;
  padding: 18px 40px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  text-align: center;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg);
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 0;
}

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

.form-success-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
  font-weight: 300;
}

.form-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-pri);
  margin-bottom: 16px;
}

.form-success-body {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.85;
  max-width: 400px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* FOOTER                                                               */
/* ------------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: var(--text-sec);
  text-transform: uppercase;
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-credit {
  font-size: 12px;
  color: var(--text-sec);
  opacity: 0.6;
}

.footer-credit a {
  color: var(--text-sec);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.footer-credit a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .moods-grid {
    grid-template-columns: 1fr 1fr;
  }

  section {
    padding: 80px 24px;
  }

  .covenant-section,
  .apply-section {
    padding: 80px 24px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .moods-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 24px 60px;
  }
}
