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

:root {
  --bg: #f6efe2;
  --bg-warm: #fff9f1;
  --surface: rgba(255, 252, 245, 0.88);
  --surface-hover: #fbf3e7;
  --border: rgba(88, 63, 34, 0.09);
  --border-hover: rgba(88, 63, 34, 0.18);
  --text: #21160f;
  --text-secondary: #4d3826;
  --text-muted: #75614d;
  --accent-1: #8e6d3f;
  --accent-2: #b78b55;
  --accent-3: #dfbf8d;
  --accent-olive: #6f7551;
  --accent-glow: rgba(183, 139, 85, 0.18);
  --gradient-text: linear-gradient(135deg, #8d6738 0%, #b2834a 48%, #d4ae79 100%);
  --hero-wash: rgba(223, 191, 141, 0.18);
  --waitlist-wash: rgba(183, 139, 85, 0.09);
  --shadow-soft: rgba(33, 22, 15, 0.1);
  --shadow-strong: rgba(33, 22, 15, 0.17);
  --status-error-border: rgba(141, 90, 62, 0.2);
  --status-error-bg: rgba(141, 90, 62, 0.08);
  --status-error-text: #7a4b34;
  --particle-rgb: 183, 139, 85;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(circle at top, rgba(223, 191, 141, 0.16), transparent 36%),
    radial-gradient(circle at 16% 84%, rgba(111, 117, 81, 0.05), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(183, 139, 85, 0.06), transparent 24%);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

[hidden] {
  display: none !important;
}

section,
.container-xl,
.row,
[class*='col-'] {
  min-width: 0;
}

/* ===== Canvas Background ===== */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Glow Orbs ===== */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(223, 191, 141, 0.22) 0%, transparent 72%);
  top: -18%;
  left: 35%;
  animation: glowDrift1 12s ease-in-out infinite alternate;
}

.glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(183, 139, 85, 0.12) 0%, transparent 70%);
  top: 56%;
  right: -10%;
  animation: glowDrift2 15s ease-in-out infinite alternate;
}

.glow--3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(111, 117, 81, 0.07) 0%, transparent 72%);
  bottom: -5%;
  left: -5%;
  animation: glowDrift3 10s ease-in-out 1s infinite alternate;
}

@keyframes glowDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes glowDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.15); }
}

@keyframes glowDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -25px) scale(1.08); }
}

/* ===== Content Wrapper ===== */
.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  will-change: transform;
  width: 100%;
  overflow-x: clip;
}

.content > section,
.content > footer {
  width: 100%;
}

.content .container-xl {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 1. Hero Section ===== */
.hero {
  text-align: center;
  padding: 140px 0 80px;
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: -24px;
  left: 50%;
  width: min(100%, 720px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 15%, var(--hero-wash), transparent 62%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.38), rgba(255, 249, 241, 0));
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(183, 139, 85, 0.09);
  border: 1px solid rgba(183, 139, 85, 0.18);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.5vw + 0.35rem, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__keyword {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg-warm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow-strong);
  background: #373024;
}

.hero__cta:active {
  transform: translateY(0) scale(0.98);
}

.hero__cta svg {
  transition: transform 0.3s ease;
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

.hero__cta:focus-visible,
.teaser__cta:focus-visible,
.signup__link:focus-visible,
.signup__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-glow), 0 10px 30px var(--shadow-strong);
  border-radius: 999px;
}

/* ===== 2. Teaser Section ===== */
.teaser {
  width: 100%;
  padding: 40px 0 80px;
}

.teaser__intro {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  scroll-margin-top: clamp(24px, 8vw, 88px);
}

.teaser__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text);
  text-wrap: balance;
}

.teaser__lede {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  overflow-wrap: anywhere;
}

.teaser__row {
  --bs-gutter-y: 1.5rem;
}

.teaser__card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  cursor: default;
}

.teaser__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(183, 139, 85, 0.08), 0 4px 16px rgba(33, 22, 15, 0.05);
  border-color: var(--border-hover);
}

.teaser__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(183, 139, 85, 0.11), rgba(223, 191, 141, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-olive);
  transition: background 0.3s ease;
}

.teaser__card:hover .teaser__icon {
  background: linear-gradient(135deg, rgba(183, 139, 85, 0.16), rgba(223, 191, 141, 0.2));
}

.teaser__heading {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.teaser__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  overflow-wrap: anywhere;
}

.teaser__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg-warm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.teaser__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow-strong);
  background: #373024;
}

.teaser__cta svg {
  transition: transform 0.3s ease;
}

.teaser__cta:hover svg {
  transform: translateX(3px);
}

/* ===== 3. Email Capture ===== */
.signup {
  width: 100%;
  text-align: center;
  padding: 80px 0;
  max-width: none;
  overflow: hidden;
}

.signup__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 54px 42px 48px;
  isolation: isolate;
}

.signup__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, var(--waitlist-wash), transparent 58%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.58), rgba(255, 249, 241, 0.14));
  border: 1px solid rgba(183, 139, 85, 0.08);
  border-radius: 36px;
  box-shadow: 0 18px 60px rgba(183, 139, 85, 0.06);
  pointer-events: none;
  z-index: -1;
}

.signup__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
  text-wrap: balance;
}

.signup__sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.signup__form,
.signup__success {
  max-width: 100%;
}

.signup__row {
  display: flex;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 28px rgba(33, 22, 15, 0.06);
  width: 100%;
  margin: 0 auto;
}

.signup__row:focus-within {
  border-color: rgba(183, 139, 85, 0.34);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 32px rgba(36, 29, 21, 0.08);
}

.signup__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 18px 22px;
  min-width: 0;
  box-shadow: none !important;
}

.signup__input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.signup__input:focus-visible {
  outline: none;
}

.signup__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #8e6d3f 0%, #b2834a 100%);
  color: #fbf8f1;
  padding: 18px 28px;
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
  border-radius: 0;
}

.signup__btn:hover {
  background: linear-gradient(135deg, #7f5f34 0%, #a27643 100%);
}

.signup__btn:disabled {
  cursor: wait;
  opacity: 0.8;
}

.signup__btn:active {
  transform: scale(0.97);
}

.signup__btn-arrow {
  display: inline-block;
  transition: transform 0.25s;
}

.signup__btn:hover .signup__btn-arrow {
  transform: translateX(3px);
}

.signup__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.signup__status {
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--status-error-border);
  background: var(--status-error-bg);
  color: var(--status-error-text);
  font-size: 0.88rem;
  line-height: 1.5;
  width: min(100%, 640px);
}

/* Success state */
.signup__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.signup__success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.signup__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.signup__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-1);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease;
}

.signup__link:hover {
  color: #7f5f34;
  transform: translateX(2px);
}

.signup__link svg {
  transition: transform 0.25s ease;
}

.signup__link:hover svg {
  transform: translateX(3px);
}

.signup__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(183, 139, 85, 0.13);
  color: var(--accent-1);
  font-size: 1.5rem;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 4. Founder Message ===== */
.founder {
  text-align: center;
  padding: 60px 0 40px;
  width: 100%;
  max-width: none;
}

.founder__inner {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}

.founder__quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}

.founder__sig {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ===== Footer ===== */
.footer {
  padding: 16px 0 48px;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.4;
  letter-spacing: 0.04em;
}

/* ===== Floating Idle Animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero__badge {
  animation: float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #particles {
    display: none;
  }

  .content {
    transform: none !important;
  }

  .glow,
  .hero__badge,
  .hero__keyword,
  .signup__check {
    animation: none !important;
  }

  .reveal,
  .hero__cta,
  .hero__cta svg,
  .teaser__card,
  .signup__btn,
  .signup__btn-arrow {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .content .container-xl {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }

  .hero {
    padding: 108px 0 64px;
  }

  .hero::before {
    top: 18px;
    bottom: -10px;
    width: 100%;
    filter: blur(6px);
  }

  .hero__sub {
    max-width: 32rem;
    margin-bottom: 34px;
  }

  .teaser {
    padding: 28px 0 64px;
  }

  .teaser__intro {
    max-width: 34rem;
    margin-bottom: 28px;
  }

  .teaser__card {
    padding: 28px 24px;
  }

  .teaser__actions {
    margin-top: 26px;
  }

  .signup {
    padding: 64px 0;
  }

  .signup__panel {
    max-width: 680px;
    padding: 46px 30px 40px;
  }

  .signup__panel::before {
    border-radius: 30px;
  }

  .founder {
    padding: 48px 0 32px;
  }

  .founder__inner {
    padding: 32px 24px;
  }

  .footer {
    padding: 12px 0 40px;
  }

  .glow--1 {
    width: 420px;
    height: 420px;
    top: -10%;
    left: 42%;
  }

  .glow--2 {
    width: 280px;
    height: 280px;
    top: 66%;
    right: -8%;
  }

  .glow--3 {
    width: 240px;
    height: 240px;
    left: -4%;
    bottom: 0;
  }
}

@media (max-width: 480px) {
  .content .container-xl {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .hero {
    padding: 86px 0 46px;
  }

  .hero::before {
    top: 10px;
    bottom: -2px;
    width: 100%;
    filter: blur(4px);
  }

  .hero__badge {
    margin-bottom: 24px;
    padding: 7px 16px;
  }

  .hero__cta,
  .teaser__cta {
    width: min(100%, 320px);
    justify-content: center;
  }

  .hero__sub,
  .teaser__lede,
  .signup__sub {
    font-size: 0.98rem;
  }

  .hero__title,
  .teaser__title,
  .signup__title {
    text-wrap: pretty;
  }

  .teaser {
    padding: 18px 0 56px;
  }

  .teaser__intro {
    margin-bottom: 22px;
  }

  .teaser__card {
    padding: 24px 20px;
  }

  .teaser__actions,
  .signup__actions {
    margin-top: 22px;
  }

  .signup {
    padding: 52px 0;
  }

  .signup__panel {
    padding: 38px 20px 34px;
  }

  .glow--1 {
    width: 260px;
    height: 260px;
    top: -4%;
    left: 48%;
  }

  .glow--2 {
    width: 180px;
    height: 180px;
    top: 68%;
    right: -6%;
  }

  .glow--3 {
    width: 150px;
    height: 150px;
    left: -2%;
    bottom: 6%;
  }

  .founder {
    padding: 40px 0 24px;
  }

  .founder__inner {
    padding: 24px 12px;
  }

  .founder__quote {
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .footer {
    padding: 8px 0 34px;
  }
}

@media (max-width: 575.98px) {
  .signup__row {
    flex-direction: column;
    border-radius: 14px;
    width: 100%;
  }

  .signup__input {
    padding: 17px 18px;
    border-radius: 0;
  }

  .signup__btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .signup__panel::before {
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(183, 139, 85, 0.05);
  }
}
