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

:root {
  --accent: #6C63FF;
  --accent-dark: #4B44CC;
  --accent-light: #A89DFF;
  --bg: #0A0A0F;
  --bg2: #111118;
  --bg3: #18181F;
  --text: #F0EFF8;
  --text-muted: #9090A8;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --shadow: 0 4px 40px rgba(108,99,255,0.15);
}

html { scroll-behavior: smooth; }

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

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

.section { padding: 100px 0; }

.section__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.4);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 16px; }
  .nav__links .btn { text-align: center; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 60% 40%, rgba(108,99,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(108,99,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  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; max-width: 700px; }

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 60%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: left; }
.stat__num {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.stat__plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-light);
}
.stat p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease infinite;
}
@keyframes scroll-dot {
  0%   { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

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

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

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 12px;
}

.card__icon i,
.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-light);
  filter: drop-shadow(0 0 6px rgba(108,99,255,0.5));
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== WHY ===== */
.why { background: var(--bg); }

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

@media (max-width: 900px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__visual { order: -1; }
}

.why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why__list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why__icon {
  min-width: 44px;
  height: 44px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-light);
}

.why__list h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why__list p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Floating cards visual */
.why__visual { position: relative; height: 380px; }

.why__glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.why__floating-card {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.wc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-light);
}

.wc--1 { top: 30px; left: 0; animation: float1 4s ease-in-out infinite; }
.wc--2 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float2 4s ease-in-out infinite 0.8s; }
.wc--3 { bottom: 30px; right: 0; animation: float3 4s ease-in-out infinite 1.6s; }

@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-10px); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

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

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

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

.contact__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: -24px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.contact__link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(108,99,255,0.06);
}
.contact__link-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.contact__link-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-light);
  transition: stroke 0.2s;
}

.contact__link:hover .contact__link-icon svg {
  stroke: var(--accent);
}

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

.form__group input,
.form__group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); }

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form__note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form__note a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.form__note a:hover { color: var(--accent); }

.form__success {
  display: none;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-light);
  gap: 8px;
}
.form__success.show { display: flex; align-items: center; justify-content: center; gap: 10px; }

.form__success svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-light);
  flex-shrink: 0;
}

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

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

.footer__copy, .footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
