/* =========================================
   LEGIT SEO — Premium Black & Gold Landing
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --gold:        #D4AF37;
  --gold-hover:  #F5D76E;
  --gold-dark:   #B4942E;
  --dark:        #0A0A0A;
  --dark-deep:   #050505;
  --dark-card:   #141414;
  --dark-mid:    #1A1A1A;
  --text-white:  #FFFFFF;
  --text-gray:   #B0B0B0;
  --border:      #2A2A2A;
  --font:        'Montserrat Alternates', sans-serif;
  --transition:  0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, textarea, select { font-family: var(--font); }

/* --- Utility --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

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

/* Scroll-reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-gray);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--gold);
}
.nav__link.active::after,
.nav__link:hover::after {
  width: 100%;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger__line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

.burger.open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--gold);
}
.burger.open .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--gold);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}
.mobile-nav.open {
  transform: translateY(0);
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link:hover { color: var(--gold); }


/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../hero-pattern.svg');
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}

/* Radial glow */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(212,175,55,0.04) 0%, transparent 70%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 30%, transparent 75%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.hero__title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero__desc {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.6s forwards;
}

.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.hero__stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}
.hero__stat-label {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font);
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: 0 0 24px rgba(212,175,55,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   SERVICES
   ========================================= */
.services {
  padding: 100px 0;
  background: var(--dark);
}

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

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  border-radius: 2px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(212,175,55,0.1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}


/* =========================================
   CASES
   ========================================= */
.cases {
  padding: 100px 0;
  background: var(--dark-deep);
}

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

.case-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212,175,55,0.08);
}

.case-card__img-wrap {
  overflow: hidden;
  height: 200px;
  background: var(--border);
}

.case-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.case-card:hover .case-card__img-wrap img {
  transform: scale(1.02);
}

.case-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141414 0%, #1e1e1e 100%);
}

.case-card__body {
  padding: 28px;
}

.case-card__niche {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.case-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
}

.case-card__metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.case-metric__num {
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.case-metric__label {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 4px;
}


/* =========================================
   PRICING
   ========================================= */
.pricing {
  padding: 100px 0;
  background: var(--dark);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.price-card:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 8px 24px rgba(212,175,55,0.07);
}

.price-card--featured {
  background: var(--dark-mid);
  border: 2px solid var(--gold);
  transform: translateY(-8px);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 18px;
  white-space: nowrap;
  border-radius: 2px;
}

.price-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
}

.price-card__price {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.price-card__currency {
  font-size: 22px;
  vertical-align: super;
}

.price-card__period {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.price-card__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.price-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.price-card__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-gray);
}

.price-card__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}


/* =========================================
   HOW WE WORK
   ========================================= */
.process {
  padding: 100px 0;
  background: var(--dark-deep);
}

.process__stepper {
  display: flex;
  gap: 0;
  position: relative;
  counter-reset: step;
}

.process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Connecting line */
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process__step-line-fill {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: var(--gold);
  z-index: 1;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s ease;
}
.process__step.line-filled .process__step-line-fill {
  transform: scaleX(1);
}

.process__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__step:hover .process__num {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.process__step-body {
  padding: 20px 16px 0;
}

.process__step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.process__step-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}


/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: 100px 0;
  background: var(--dark);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq__item.open {
  border-color: rgba(212,175,55,0.35);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-white);
  font-family: var(--font);
}

.faq__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold);
  transition: transform 0.35s ease;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.faq__icon::before { width: 2px; height: 14px; }
.faq__icon::after  { width: 14px; height: 2px; }

.faq__item.open .faq__icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}


/* =========================================
   CONTACT
   ========================================= */
.contact {
  padding: 100px 0;
  background: var(--dark-deep);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact__info-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.contact__info-desc {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-gray);
  transition: color var(--transition);
}
.contact__detail:hover { color: var(--text-white); }

.contact__detail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__messengers {
  display: flex;
  gap: 16px;
}

.contact__messenger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.contact__messenger svg {
  width: 20px;
  height: 20px;
}
.contact__messenger:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
}

.form-input,
.form-textarea {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-white);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #6B7280;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Custom checkbox */
.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  margin-top: 2px;
}

.form-checkbox-input:checked + .form-checkbox-box {
  background: var(--gold);
  border-color: var(--gold);
}

.form-checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid var(--dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity var(--transition);
}

.form-checkbox-input:checked + .form-checkbox-box::after {
  opacity: 1;
}

.form-checkbox-text {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}
.form-checkbox-text a {
  color: var(--gold);
  text-decoration: underline;
}

.form-submit {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  align-self: flex-start;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo img {
  height: 34px;
  width: auto;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-gray);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 13px;
  color: var(--text-gray);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--gold); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), color var(--transition);
  font-family: var(--font);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--dark);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}


/* =========================================
   SECTION PADDING OFFSET (fixed header)
   ========================================= */
.section-anchor {
  display: block;
  position: relative;
  top: -72px;
  visibility: hidden;
}


/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet: 768px */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid  { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .price-card--featured { transform: none; }

  .process__stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .process__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
  }
  .process__step:not(:last-child)::after { display: none; }
  .process__step-line-fill { display: none; }
  .process__step-body { padding: 0; }

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

  .nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: block; }

  .hero__title { font-size: 44px; }
  .section-title { font-size: 30px; }
  .hero__stats { gap: 32px; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; }
  .cases__grid    { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__title { font-size: 34px; }
  .hero__stats { flex-wrap: wrap; gap: 24px; }
  .contact__messengers { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .scroll-top { bottom: 20px; right: 20px; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 26px; }
}

/* Mobile: 375px */
@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 28px; }
  .btn { padding: 12px 20px; font-size: 15px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
