:root {
  --forest: #14261e;
  --gold: #c4a35a;
  --cream: #f3eee4;
  --muted: #d5cbb8;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cream);
  background: #0f1a15;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: rgba(196, 163, 90, 0.25);
}

a:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    calc(12px + var(--safe-top))
    calc(16px + var(--safe-right))
    12px
    calc(16px + var(--safe-left));
  background: rgba(15, 26, 21, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.18);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.nav-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.nav-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(243, 238, 228, 0.28);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

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

.hero {
  position: relative;
  min-height: calc(100dvh - 68px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(196, 163, 90, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(47, 111, 78, 0.35), transparent 50%),
    linear-gradient(165deg, #15261e 0%, #0f1a15 45%, #1b2e24 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 238, 228, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 228, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

.hero-inner {
  padding:
    clamp(36px, 8vh, 120px)
    calc(16px + var(--safe-right))
    clamp(40px, 8vh, 100px)
    calc(16px + var(--safe-left));
  max-width: 920px;
  width: 100%;
}

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-brand {
  font-size: clamp(2.35rem, 11vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  overflow-wrap: anywhere;
}

.title-sub {
  font-size: clamp(1.15rem, 4.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--gold);
}

.lead {
  margin: 20px 0 0;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--cream);
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 163, 90, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(243, 238, 228, 0.28);
  color: #f3eee4;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: #fff;
}

.seo {
  background: #f3eee4;
  color: #1c1917;
  padding:
    clamp(36px, 7vw, 72px)
    calc(16px + var(--safe-right))
    clamp(36px, 7vw, 72px)
    calc(16px + var(--safe-left));
}

.seo-inner {
  max-width: 720px;
  margin: 0 auto;
}

.seo h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--forest);
}

.seo p,
.seo li {
  font-size: clamp(0.98rem, 3.2vw, 1.05rem);
  line-height: 1.55;
}

.seo p {
  margin: 16px 0 0;
  color: #3f3a34;
}

.seo a {
  color: #1b5e3a;
  font-weight: 600;
  word-break: break-word;
}

.seo ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: #3f3a34;
}

.seo li {
  margin: 8px 0;
}

.seo-cta {
  margin-top: 28px;
}

.seo-disclaimer {
  margin-top: 20px;
  font-size: 0.9rem !important;
  color: #6b645a !important;
}

.foot {
  padding:
    20px
    calc(16px + var(--safe-right))
    calc(20px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  background: #0a120e;
  color: #8a8276;
  font-size: 13px;
  line-height: 1.45;
}

.foot a {
  color: #a89f8f;
  text-decoration: none;
}

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

/* Phones */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-inner {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .seo-cta .btn {
    width: 100%;
  }

  .kicker {
    letter-spacing: 0.1em;
  }
}

/* Short screens (landscape phones) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .title-brand {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }
}

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

  .btn {
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

@media (hover: none) {
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
}
