@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --forest: #1C2A1F;
  --forest-light: #24352A;
  --twilight: #3A4A6B;
  --twilight-deep: #232B44;
  --amber: #FFB300;
  --amber-light: #FFD166;
  --terracotta: #D97757;
  --cream: #F5EDE0;
  --cream-dim: rgba(245, 237, 224, 0.72);
  --cream-faint: rgba(245, 237, 224, 0.5);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;

  --header-h: 84px;
}

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

html.hide #preloader {
  opacity: 0;
  visibility: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--forest);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

body.fixed {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

.section {
  padding: 110px 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 42px;
  color: var(--amber-light);
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head p {
  color: var(--cream-dim);
  font-size: 17px;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  color: var(--amber);
}

#preloader img {
  width: 56px;
  height: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-play-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-light), var(--terracotta));
  color: var(--forest);
  box-shadow: 0 12px 32px rgba(255, 179, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(255, 179, 0, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 237, 224, 0.35);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber-light);
}

@keyframes floatBtn {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.hero-cta .btn-primary {
  animation: floatBtn 3s ease-in-out infinite;
  padding: 21px 43px;
  font-size: 20px;
}

.hero-cta .btn-primary:hover {
  animation-play-state: paused;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.site-header.scrolled {
  background: rgba(28, 42, 31, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  height: 72px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-mark svg {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream-dim);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--amber-light);
}

.nav-link:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1100;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.act span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .nav-link {
  font-size: 22px;
  font-family: var(--font-heading);
}

#mobile-menu .btn {
  margin-top: 10px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: radial-gradient(ellipse at 70% 20%, rgba(217, 119, 87, 0.18), transparent 55%), var(--forest);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 42, 31, 0.55) 0%, rgba(28, 42, 31, 0.85) 60%, var(--forest) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content h1 {
  font-size: 56px;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-content h1 span {
  color: var(--amber-light);
}

.hero-content p.subhead {
  font-size: 18px;
  color: var(--cream-dim);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  max-width: 460px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.28), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* About */
.about {
  background: var(--forest-light);
}

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 64px;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.about-copy .section-kicker,
.about-copy .section-title {
  text-align: left;
}

.about-copy .section-title {
  margin-bottom: 24px;
}

.about-copy p {
  color: var(--cream-dim);
  font-size: 16.5px;
  margin-bottom: 18px;
}

/* Features */
.features {
  background: linear-gradient(180deg, var(--forest-light) 0%, var(--twilight-deep) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-card {
  background: rgba(245, 237, 224, 0.04);
  border: 1px solid rgba(245, 237, 224, 0.08);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 0, 0.4);
  background: rgba(255, 179, 0, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
}

.feature-card h3 {
  font-size: 21px;
  color: var(--cream);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--cream-dim);
  font-size: 15px;
}

/* How It Works */
.how-it-works {
  background: var(--twilight-deep);
}

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

.step-card {
  position: relative;
  background: rgba(245, 237, 224, 0.04);
  border: 1px solid rgba(245, 237, 224, 0.08);
  border-radius: var(--radius);
  padding: 40px 30px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 87, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
  margin-bottom: 18px;
  display: block;
}

.step-card h3 {
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--cream-dim);
  font-size: 15px;
}

/* Reviews */
.reviews {
  background: linear-gradient(180deg, var(--twilight-deep) 0%, var(--forest) 100%);
}

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

.review-card {
  background: rgba(245, 237, 224, 0.04);
  border: 1px solid rgba(245, 237, 224, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 0, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.review-stars {
  color: var(--amber);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card p.quote {
  color: var(--cream-dim);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--amber-light);
  font-size: 16px;
}

/* Footer */
.site-footer {
  background: var(--forest);
  border-top: 1px solid rgba(245, 237, 224, 0.08);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-inner .logo-mark svg {
  height: 36px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--cream-dim);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-copy {
  font-size: 13px;
  color: var(--cream-faint);
}

/* Legal pages */
.legal-page {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
  background: var(--forest);
  min-height: 100vh;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-content h1 {
  font-size: 40px;
  color: var(--amber-light);
  margin-bottom: 12px;
}

.legal-content > p {
  color: var(--cream-faint);
  margin-bottom: 30px;
  font-size: 14px;
}

.legal-content div {
  margin-bottom: 34px;
}

.legal-content h2 {
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 14px;
}

.legal-content p {
  color: var(--cream-dim);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.legal-content li {
  color: var(--cream-dim);
  font-size: 15.5px;
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content a {
  color: var(--amber-light);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--amber);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 44px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about .container { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p.subhead { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-visual img { max-width: 280px; }
  .about .container { grid-template-columns: 1fr; }
  .about-copy .section-kicker { display: block; text-align: center; }
  .about-copy .section-title, .about-copy p { text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-content h1 { font-size: 34px; }
  .btn { padding: 15px 28px; font-size: 15px; }
  .hero-cta .btn-primary { padding: 19px 35px; font-size: 19px; }
  .legal-content h1 { font-size: 30px; }
}
