/* Hearthlane landing — palette from HLTheme.swift */

:root {
  --peat-deep: #0b1f18;
  --peat: #143528;
  --peat-mid: #1f4d3a;
  --emerald: #2f7a5b;
  --emerald-bright: #3f9a72;
  --copper: #c48a3a;
  --gold: #e0b56a;
  --copper-dark: #8a5a22;
  --cream: #f6f1e6;
  --parchment: #ede6d6;
  --mist: #6e8fa3;
  --ink: #14201b;
  --caution: #c45a45;

  --bg: var(--peat-deep);
  --bg-soft: #10261e;
  --card: rgba(246, 241, 230, 0.06);
  --card-border: rgba(224, 181, 106, 0.22);
  --text: var(--cream);
  --text-soft: rgba(246, 241, 230, 0.72);
  --text-muted: rgba(246, 241, 230, 0.55);

  --radius: 18px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --nav-h: 72px;
  --glow-copper: 0 0 42px rgba(196, 138, 58, 0.28);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--gold);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* Atmosphere */

.mist-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% -10%, rgba(63, 154, 114, 0.18), transparent 55%),
    radial-gradient(70% 50% at 0% 40%, rgba(196, 138, 58, 0.12), transparent 50%),
    linear-gradient(160deg, var(--peat-deep), var(--peat) 48%, #1a2a22 100%);
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: drift 20s ease-in-out infinite alternate;
}

.mist--copper {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(196, 138, 58, 0.55), transparent 70%);
  top: -40px;
  right: 8%;
}

.mist--emerald {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(47, 122, 91, 0.5), transparent 70%);
  bottom: 18%;
  left: -50px;
  animation-delay: -7s;
}

.mist--cream {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(246, 241, 230, 0.18), transparent 70%);
  top: 48%;
  right: -40px;
  animation-delay: -13s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(22px, -16px) scale(1.08); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 31, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(224, 181, 106, 0.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
}

.brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), var(--copper));
  box-shadow: var(--glow-copper);
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--gold);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: 0.25s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper), var(--gold));
  color: var(--ink);
  box-shadow: var(--glow-copper);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(224, 181, 106, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(224, 181, 106, 0.45);
}

.btn--ghost:hover {
  background: rgba(246, 241, 230, 0.06);
  transform: translateY(-2px);
}

/* Hero */

.hero {
  padding: 72px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(196, 138, 58, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 138, 58, 0.28);
}

.eyebrow--center {
  display: block;
  width: fit-content;
  margin: 0 auto 22px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  margin: 18px 0 10px;
  color: var(--cream);
  animation: rise 0.7s ease both;
}

.hero__subtitle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
  max-width: 34ch;
  animation: rise 0.8s ease 0.08s both;
}

.hero__lead {
  color: var(--text-soft);
  max-width: 36rem;
  animation: rise 0.85s ease 0.14s both;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin: 30px 0 36px;
  flex-wrap: wrap;
  animation: rise 0.9s ease 0.2s both;
}

.stats {
  list-style: none;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.stats li {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  color: var(--gold);
}

.stats span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Phone mock */

.hero__device {
  display: flex;
  justify-content: center;
  animation: rise 1s ease 0.18s both;
}

.phone {
  position: relative;
  width: 270px;
  height: 552px;
  background: #081612;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow), var(--glow-copper);
  border: 1px solid rgba(224, 181, 106, 0.2);
}

.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #081612;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(165deg, var(--peat-deep), var(--peat) 55%, var(--peat-mid));
}

.mini {
  padding: 42px 16px 16px;
}

.mini__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

.mini__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cream);
}

.mini__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.mini__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.mini__stat {
  background: rgba(246, 241, 230, 0.07);
  border: 1px solid rgba(224, 181, 106, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
}

.mini__stat b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold);
}

.mini__stat span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mini__row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(246, 241, 230, 0.07);
  border: 1px solid rgba(224, 181, 106, 0.16);
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 8px;
}

.mini__row b {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.mini__row i {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--copper { background: var(--copper); box-shadow: 0 0 10px rgba(196, 138, 58, 0.6); }
.dot--mist { background: var(--mist); }
.dot--gold { background: var(--gold); }

/* Sections */

.section {
  padding-block: 5rem;
}

.section--about {
  background:
    linear-gradient(180deg, transparent, rgba(237, 230, 214, 0.04), transparent);
}

.section__title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0.75rem 0 1.1rem;
  color: var(--cream);
  max-width: 18ch;
}

.section__intro {
  color: var(--text-soft);
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

#features .section__title,
#features .section__intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.55rem;
  box-shadow: inset 0 1px 0 rgba(246, 241, 230, 0.04);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 181, 106, 0.45);
  box-shadow: var(--glow-copper);
}

.card__num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  color: var(--copper);
  margin-bottom: 0.55rem;
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
  color: var(--cream);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.about__text {
  max-width: 42rem;
  display: grid;
  gap: 1rem;
  color: var(--text-soft);
}

.about__disclaimer {
  margin-top: 0.4rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--copper);
  background: rgba(196, 138, 58, 0.08);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Privacy */

.privacy {
  background: rgba(246, 241, 230, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 2rem;
  max-width: 760px;
}

.privacy__date {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.privacy h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.55rem;
  color: var(--cream);
}

.privacy p,
.privacy li {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.privacy ul {
  margin: 0.75rem 0 0 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.privacy a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact */

.contact__note {
  color: var(--text-muted);
  margin: -1.2rem 0 1.8rem;
  font-size: 0.95rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact__card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.15rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.contact__card:hover {
  border-color: rgba(224, 181, 106, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--glow-copper);
}

.contact__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.contact__card strong {
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-word;
}

.contact__card a {
  color: var(--gold);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(224, 181, 106, 0.12);
  padding: 2.2rem 0 2.8rem;
  background: rgba(0, 0, 0, 0.18);
}

.footer__inner {
  display: grid;
  gap: 0.7rem;
}

.footer__brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

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

.footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

/* Responsive */

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__device {
    order: -1;
  }

  .phone {
    width: 240px;
    height: 490px;
  }

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

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

  .section__title {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 31, 24, 0.97);
    border-bottom: 1px solid rgba(224, 181, 106, 0.14);
    padding: 0.5rem 0 1rem;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.85rem 1.4rem;
  }

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

  .hero {
    padding-top: 40px;
  }

  .stats {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
