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

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-card:   #111111;
  --border:    rgba(255,255,255,0.07);
  --text:      #f0f0f0;
  --text-dim:  #888;
  --accent:    #8b5cf6;
  --accent-2:  #6d28d9;
  --accent-glow: rgba(139,92,246,0.25);
  --radius:    14px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   GRADIENTS & EFFECTS
=========================== */
.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.22s; }
.reveal--delay-3 { transition-delay: 0.34s; }

/* ===========================
   NAVIGATION
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  margin-right: 2px;
}
.logo-dim { color: var(--text-dim); font-weight: 400; }
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text) !important;
  transition: border-color var(--transition), background var(--transition) !important;
}
.nav__cta:hover {
  border-color: var(--accent) !important;
  background: rgba(139,92,246,0.1) !important;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 2px;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(16px);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--text); }
.nav__mobile a:last-child { border-bottom: none; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #c084fc);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139,92,246,0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
.btn--full { width: 100%; }

.contact__feedback {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.contact__feedback.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px 24px 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(192,132,252,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 800px; }
.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(139,92,246,0.4);
  background: rgba(139,92,246,0.08);
  font-size: 13px;
  font-weight: 500;
  color: #c084fc;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero__title {
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===========================
   SERVICES
=========================== */
.services {
  padding: 100px 0;
  background: var(--bg-2);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: rgba(139,92,246,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(139,92,246,0.1);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(139,92,246,0.12);
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===========================
   WHY
=========================== */
.why {
  padding: 100px 0;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.why-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.why-card:hover { border-color: rgba(139,92,246,0.3); }
.why-card__num {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(192,132,252,0.1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===========================
   FAQ
=========================== */
.faq {
  padding: 100px 0;
  background: var(--bg-2);
}
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: none; }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.faq__question:hover { background: rgba(255,255,255,0.03); }
.faq__question.active { color: #c084fc; }
.faq__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-dim);
}
.faq__question.active .faq__icon { transform: rotate(180deg); color: #c084fc; }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq__answer.open { max-height: 300px; }
.faq__answer p {
  padding: 0 28px 22px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===========================
   CONTACT
=========================== */
.contact {
  padding: 100px 0;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 16px 0 32px;
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color var(--transition);
}
.contact__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact__link:hover { color: var(--accent); }
.contact__socials {
  display: flex;
  gap: 12px;
}
.contact__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: var(--transition);
}
.contact__socials a svg { width: 18px; height: 18px; }
.contact__socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139,92,246,0.08);
}

/* FORM */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: #111; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===========================
   FOOTER
=========================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__top p {
  font-size: 13px;
  color: var(--text-dim);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer__bottom span { font-size: 12px; color: var(--text-dim); }
.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal a {
  font-size: 12px;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--text); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__title { letter-spacing: -1.5px; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__top { justify-content: center; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 110px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .services, .why, .faq, .contact { padding: 64px 0; }
}
