/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #E85D04;
  --orange-light: #FF7A1A;
  --orange-pale: #FFF0E6;
  --purple: #2D1B69;
  --purple-mid: #3D2B85;
  --purple-light: #EEE9FF;
  --dark: #0D0A1A;
  --dark-2: #1A1435;
  --gray-1: #F7F7FB;
  --gray-2: #EFEFF7;
  --gray-3: #C8C5D8;
  --gray-4: #7B7899;
  --white: #FFFFFF;
  --text: #1A1435;
  --text-light: #6B6888;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(45,27,105,0.08);
  --shadow-lg: 0 12px 48px rgba(45,27,105,0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.section { padding: 100px 0; }

/* ===== TYPOGRAPHY ===== */
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--purple);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section__desc { margin: 0 auto; }

.highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--orange);
  border-radius: 4px;
  opacity: 0.3;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,93,4,0.35);
}
.btn--primary:hover {
  background: var(--orange-light);
  box-shadow: 0 6px 28px rgba(232,93,4,0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple-light);
}
.btn--ghost:hover {
  background: var(--purple-light);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(45,27,105,0.10);
  padding: 10px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Default logo (colored) hidden on dark hero, shown when scrolled */
.nav__logo-img { height: 44px; width: auto; display: none; }
.nav__logo-img--white { height: 44px; width: auto; display: block; }
.header.scrolled .nav__logo-img { display: block; }
.header.scrolled .nav__logo-img--white { display: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Default state: on dark hero — white links */
.nav__link {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.nav__link:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* Scrolled state: on white background — purple links */
.header.scrolled .nav__link {
  color: var(--purple);
}
.header.scrolled .nav__link:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.nav__link--cta {
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(232,93,4,0.3);
}
.nav__link--cta:hover {
  background: var(--orange-light) !important;
  box-shadow: 0 4px 20px rgba(232,93,4,0.4);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: var(--transition);
}
.header.scrolled .nav__toggle span { background: var(--purple); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, var(--purple) 100%);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--orange);
  top: -200px;
  right: -100px;
}
.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--purple-mid);
  bottom: -100px;
  left: -100px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.hero__actions .btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat__number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ===== SERVICES ===== */
.services { background: var(--gray-1); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--gray-2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--orange-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--orange);
  transition: var(--transition);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card:hover .service-card__icon {
  background: var(--orange);
  color: var(--white);
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__list {
  margin-bottom: 24px;
}
.service-card__list li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.service-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  transition: var(--transition);
}
.service-card__link:hover { gap: 8px; letter-spacing: 0.02em; }

.service-card--cta {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card--cta::before { background: var(--orange); }
.service-card--cta:hover { transform: translateY(-6px); }

.service-card__cta-content { text-align: center; }
.service-card__cta-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card__cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ===== ABOUT ===== */
.about { background: var(--white); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
  height: 420px;
}

.about__card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  border: 1px solid var(--gray-2);
}
.about__card--main {
  top: 0;
  left: 0;
  right: 80px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: var(--white);
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about__location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.about__location svg { width: 16px; height: 16px; }
.about__tagline {
  font-size: 1.4rem;
  font-weight: 700;
}

.about__card--stat {
  bottom: 0;
  right: 0;
  width: 140px;
  text-align: center;
  padding: 24px;
}
.about__stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.about__stat-text {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-4);
  margin-top: 6px;
}

.about__orb {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--orange);
  border-radius: 50%;
  bottom: 20px;
  left: 20px;
  opacity: 0.06;
  filter: blur(40px);
}

.about__text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.value__icon {
  width: 40px;
  height: 40px;
  background: var(--orange-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.value__icon svg { width: 20px; height: 20px; }
.value strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 2px;
}
.value span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== WHY US ===== */
.why-us {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}
.why-us .section__title { color: var(--white); }
.why-us .section__label { color: var(--orange); }

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,93,4,0.4);
  transform: translateY(-4px);
}

.why-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.why-card:hover .why-card__number { opacity: 1; }

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.why-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact { background: var(--gray-1); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__info p {
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.75;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.contact__detail-icon { margin-top: 2px; }
a.contact__detail:hover { transform: translateX(4px); }

.contact__detail-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.contact__detail-icon svg { width: 20px; height: 20px; }
.contact__detail-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact__detail-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 2px;
}

/* ===== FORM ===== */
.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-2);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
}

.form__group input,
.form__group select,
.form__group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--gray-1);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232,93,4,0.1);
}
.form__group textarea { resize: vertical; min-height: 100px; }

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-4);
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding-top: 72px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__logo { height: 40px; margin-bottom: 16px; }

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer__links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer__links li + li { margin-top: 10px; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--orange); }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { height: 300px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; gap: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .nav__menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 32px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    gap: 4px;
    align-items: stretch;
    z-index: 99;
  }
  .nav__menu.open { display: flex; }
  .nav__link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav__toggle { display: flex; position: relative; z-index: 101; }

  .hero__stats { gap: 20px; }
  .stat__number { font-size: 1.4rem; }

  .contact__form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.8rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
