@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Lato:wght@400;500;700;900&display=swap');

:root {
  --bg: #0b1220;
  --bg-section: #101a30;
  --bg-section-alt: #172040;
  --surface: #1b2440;
  --surface-alt: #232d4d;
  --accent: #d9a94e;
  --accent-light: #f0cf8a;
  --teal: #3ec6c9;
  --wine: #7a2334;
  --text: #f2ede3;
  --text-dim: #b6bfd4;
  --text-faint: #7d87a0;
  --border: rgba(217, 169, 78, 0.18);
  --header-height: 84px;
  --gradient-cta: linear-gradient(135deg, var(--accent), var(--accent-light));
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { opacity: 0; visibility: hidden; }

body {
  background: var(--bg);
  color: var(--text-dim);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.fixed { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 18px;
}

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

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

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

/* preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .4s ease, visibility .4s ease;
}
#preloader img { width: 60px; height: 60px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient-cta);
  color: #241505;
  box-shadow: 0 10px 30px -8px rgba(217, 169, 78, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 36px -6px rgba(217, 169, 78, 0.75); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(242, 237, 227, 0.35);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

@keyframes cta-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.hero .btn-primary {
  animation: cta-float 3s ease-in-out infinite;
}
.hero .btn-primary:hover { animation-play-state: paused; }

/* header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.6);
  height: 72px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-svg { height: 30px; width: auto; }
.logo-text { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 700; fill: var(--text); letter-spacing: 1px; }
.logo-text-accent { fill: url(#logoGradient); }
.logo-text-accent-footer { fill: url(#logoGradientFooter); }

nav.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-list { display: flex; gap: 34px; }
.nav-link {
  position: relative;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 24px; }
.header-cta .btn { padding: 12px 22px; font-size: 13px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 32px; height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}
.burger-btn span {
  position: absolute; left: 0; right: 0;
  height: 2px; background: var(--text);
  transition: all .3s ease;
}
.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 11px; }
.burger-btn span:nth-child(3) { bottom: 0; }
.burger-btn.act span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  width: 100%;
  background: #0d1526;
  padding: 110px 32px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 1050;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; transform: translateY(0); }
#mobile-menu .nav-list { flex-direction: column; gap: 26px; margin-bottom: 40px; }
#mobile-menu .nav-link { font-size: 16px; }

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(11,18,32,0.75) 55%, var(--bg) 100%), url('../img/hero-bg.webp') center top / cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(62, 198, 201, 0.10), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 54px;
  line-height: 1.2;
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero p.subhead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 14px; }
.pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(27, 36, 64, 0.7);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
}
.pill strong { color: var(--accent); font-family: 'Cinzel', serif; }

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 570px;
  pointer-events: none;
  z-index: 1;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(62, 198, 201, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.hero-visual-img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  animation: hero-visual-float 5s ease-in-out infinite;
}
@keyframes hero-visual-float {
  0% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
  100% { transform: translateY(0) rotate(-3deg); }
}

/* two-col generic */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.two-col img { border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); border: 1px solid var(--border); }
.two-col.reverse .col-media { order: 2; }
.two-col.reverse .col-text { order: 1; }

section.alt { background: var(--bg-section-alt); }
section#about, section#experience { background: var(--bg-section); }

/* how it works */
#how-it-works { background: var(--bg-section-alt); }
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.step-card { flex: 0 1 340px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 26px;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -18px; right: 10px;
  font-family: 'Cinzel', serif;
  font-size: 90px;
  font-weight: 700;
  color: rgba(217, 169, 78, 0.08);
  line-height: 1;
}
.step-card h3 { font-size: 19px; margin-bottom: 12px; position: relative; }
.step-card p { font-size: 14.5px; color: var(--text-dim); position: relative; }

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

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(217,169,78,0.2), rgba(62,198,201,0.15));
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; }

/* gallery */
#gallery { background: var(--bg-section); }
.gallery-slider {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 22px;
}
.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 12px; }
.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .25s ease, transform .25s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,18,32,0.9) 20%, transparent 60%);
}
.gallery-caption {
  position: absolute; left: 14px; bottom: 10px; z-index: 2;
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.5px;
  color: var(--text);
}
.gallery-main .gallery-caption { left: 18px; bottom: 14px; font-size: 13px; letter-spacing: 1px; }

/* reviews */
#reviews { background: var(--bg-section-alt); }
.reviews-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.review-card {
  flex: 0 1 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.review-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.review-card p.quote { font-size: 14.5px; color: var(--text-dim); margin-bottom: 20px; font-style: italic; }
.review-author { font-family: 'Cinzel', serif; font-size: 14px; color: var(--text); }

/* faq */
#faq { background: var(--bg-section); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  gap: 22px;
}
.faq-number {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; }

/* contact */
#contact {
  background: var(--bg-section-alt);
  text-align: center;
}
#contact .section-title { margin-bottom: 20px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: var(--accent);
  border-bottom: 1px solid rgba(217,169,78,0.4);
  padding-bottom: 4px;
  margin-bottom: 40px;
}
.contact-email:hover { color: var(--accent-light); }

/* footer */
footer {
  background: linear-gradient(180deg, var(--bg) 0%, #060a13 100%);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 34px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* legal pages */
.legal-page { padding: 160px 0 100px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h1 { font-size: 36px; margin-bottom: 30px; }
.legal-content h4 { font-size: 19px; margin: 34px 0 12px; color: var(--accent); }
.legal-content p, .legal-content li { font-size: 15px; color: var(--text-dim); margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 14px; }
.legal-content strong { color: var(--text); }
.legal-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.legal-content a:hover, .legal-content a:focus-visible { color: var(--accent-light); text-decoration-color: var(--accent-light); }

/* responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex-basis: calc(50% - 12px); }
  .two-col { gap: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-visual { width: 390px; opacity: 0.85; }
  section { padding: 90px 0; }
}

@media (max-width: 768px) {
  nav.main-nav .nav-list { display: none; }
  .header-cta .btn-outline { display: none; }
  .burger-btn { display: block; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-media { order: 1; }
  .two-col.reverse .col-text { order: 2; }
  .features-grid { grid-template-columns: 1fr; }
  .review-card { flex-basis: 100%; }
  .gallery-slider { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 16/10; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .gallery-thumb { flex: 0 0 120px; width: 120px; height: 80px; }
  .section-title { font-size: 30px; }
  .hero h1 { font-size: 36px; }
  .faq-item { flex-direction: column; gap: 10px; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .hero h1 { font-size: 30px; }
  .hero p.subhead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .gallery-thumb:hover { transform: none; }
  .gallery-main .gallery-caption { display: none; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .step-card { flex-basis: 100%; }
}
