* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple: #534ab7;
  --purple-light: #7f77dd;
  --purple-pale: #eeedfe;
  --dark: #1c1c2e;
  --dark2: #12121f;
  --gray: #888780;
  --white: #ffffff;
  --grid: rgba(83,74,183,0.07);
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--dark2);
  color: var(--white);
  overflow-x: hidden;
  cursor: default;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 90px;
  background: rgba(18,18,31,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(83,74,183,0.25);
}
.nav-logo img { height: 72px; }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  background: rgba(83,74,183,0.15);
  border: 1px solid rgba(83,74,183,0.3);
  border-radius: 4px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Exo 2', sans-serif;
}
.lang-btn.active {
  background: var(--purple);
  color: white;
}

.btn-cta {
  padding: 8px 20px;
  background: var(--purple);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--purple-light); }

/* CANVAS */
#dirt-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* SECTIONS */
section {
  position: relative;
  z-index: 2;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image:
    linear-gradient(to right, rgba(18,18,31,0.0) 0%, rgba(18,18,31,0.45) 28%, rgba(18,18,31,0.45) 72%, rgba(18,18,31,0.0) 100%),
    url('AGIBOT_side2.png'),
    url('AGIBOT_Side.png');
  background-size: auto, 53%, 50%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, -11% 54%, 104% center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px 60px;
}

@media (min-width: 1200px) {
  .hero {
    background-size: auto, 45%, 43%;
    background-position: center, -8% 54%, 106% center;
  }
}
@media (min-width: 1440px) {
  .hero {
    background-size: auto, 38%, 36%;
    background-position: center, -6% 54%, 107% center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(83,74,183,0.15);
  border: 1px solid rgba(83,74,183,0.4);
  border-radius: 20px;
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  color: var(--purple-light);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero h1 span { color: var(--purple-light); }

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: 'Share Tech Mono', monospace;
}

.hero p {
  max-width: 540px;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--purple);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--purple-light); transform: translateY(-1px); }

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid rgba(83,74,183,0.5);
  border-radius: 4px;
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--purple-light); background: rgba(83,74,183,0.1); }
a.btn-secondary { display: inline-block; text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(83,74,183,0.2);
}

.stat { text-align: center; }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--purple-light);
  font-family: 'Share Tech Mono', monospace;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* SPECS */
.specs {
  padding: 80px 40px;
  background: rgba(83,74,183,0.04);
  border-top: 1px solid rgba(83,74,183,0.12);
  border-bottom: 1px solid rgba(83,74,183,0.12);
}
.specs-inner { max-width: 1400px; margin: 0 auto; }

.specs-layout {
  display: grid;
  grid-template-columns: 1fr auto 0.75fr;
  gap: 40px;
  align-items: center;
  margin-top: 32px;
}

.specs-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  background: rgba(83,74,183,0.06);
  border: 1px solid rgba(83,74,183,0.25);
  border-radius: 8px;
  padding: 24px;
  align-content: start;
}

.specs-left-title {
  grid-column: 1 / -1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(83,74,183,0.3);
}

.spec-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(83,74,183,0.12);
}

.spec-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--purple-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.specs-image {
  width: 680px;
  flex-shrink: 0;
}
.specs-image img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 32px rgba(83,74,183,0.35));
}

.specs-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(83,74,183,0.06);
  border: 1px solid rgba(83,74,183,0.25);
  border-radius: 8px;
  padding: 24px;
}

.specs-right-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(83,74,183,0.3);
}

.specs-right .spec-item {
  border-bottom: 1px solid rgba(83,74,183,0.1);
}
.specs-right .spec-item:last-child { border-bottom: none; }

/* FEATURES */
.features {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 56px;
  max-width: 480px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(83,74,183,0.06);
  border: 1px solid rgba(83,74,183,0.2);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.3s;
}
.feature-card:hover {
  background: rgba(83,74,183,0.12);
  border-color: rgba(83,74,183,0.5);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px; height: 42px;
  background: rgba(83,74,183,0.2);
  border: 1px solid rgba(83,74,183,0.35);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon img { width: 24px; height: 24px; object-fit: contain; }

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.feature-card p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* HOW IT WORKS */
.how {
  padding: 100px 40px;
  background: rgba(83,74,183,0.04);
  border-top: 1px solid rgba(83,74,183,0.12);
  border-bottom: 1px solid rgba(83,74,183,0.12);
}
.how-inner { max-width: 1100px; margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 20px;
  position: relative;
}

.step { padding: 32px 24px; position: relative; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 48px; right: 0;
  width: 1px; height: 40px;
  background: rgba(83,74,183,0.3);
}

.step-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* PRICING */
.pricing {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.price-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(83,74,183,0.2);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all 0.3s;
}
.price-card:hover { border-color: rgba(83,74,183,0.5); }
.price-card.featured {
  border-color: var(--purple);
  background: rgba(83,74,183,0.1);
}

.price-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--purple);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.price-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--purple-light);
  font-family: 'Share Tech Mono', monospace;
  margin: 16px 0 4px;
}
.price-period { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 24px; }

.price-features { list-style: none; }
.price-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
  flex-shrink: 0;
}

/* FOOTER */
footer {
  padding: 48px 40px;
  border-top: 1px solid rgba(83,74,183,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* CONTACT */
.contact-section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-inner { max-width: 1100px; margin: 0 auto; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 20px;
  align-items: start;
}

.contact-info {
  background: rgba(83,74,183,0.06);
  border: 1px solid rgba(83,74,183,0.25);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--purple-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.contact-info-value a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-value a:hover { color: var(--purple-light); }
.contact-info-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  font-family: 'Share Tech Mono', monospace;
}

.contact-form {
  background: rgba(83,74,183,0.06);
  border: 1px solid rgba(83,74,183,0.25);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: flex; flex-direction: column; gap: 16px; }
.form-row.two-col { flex-direction: row; gap: 16px; }
.form-row.two-col .form-group { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--purple-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(83,74,183,0.3);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--purple-light); }

.form-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: 'Share Tech Mono', monospace;
  margin-top: -8px;
}
.form-hint.error { color: #f87171; }

.form-status {
  font-size: 13px;
  font-family: 'Share Tech Mono', monospace;
  min-height: 18px;
}
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

.form-submit { align-self: flex-start; }

/* VIDEO MODAL */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  max-width: 900px;
  width: 90%;
}
.video-modal-inner video {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}
.video-modal-close:hover { opacity: 1; }

/* ===================== RESPONSIVE ===================== */

.nav-hamburger { display: none; }

@media (max-width: 768px) {
  /* NAV */
  nav {
    padding: 0 16px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  .nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .nav-logo img { height: 38px; }

  .nav-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .lang-btn { padding: 4px 8px; font-size: 10px; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    flex: 1;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    flex-basis: 100%;
    order: 10;
    gap: 0;
    display: none;
    background: rgba(18,18,31,0.98);
    border-top: 1px solid rgba(83,74,183,0.2);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a {
    display: block;
    padding: 13px 20px;
    font-size: 14px;
  }

  /* HERO ROBOTS */
  .hero {
    background-size: auto, 75%, 72%;
    background-position: center, -125% 29%, 190% 28%;
  }
  .hero h1 { font-size: 36px; }

  /* SPECS */
  .specs { padding: 60px 20px; }
  .specs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .specs-image {
    width: 100%;
    order: -1;
  }
  .specs-left { order: 0; }
  .specs-right { order: 1; }

  /* CONTACT */
  .contact-section { padding: 60px 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row.two-col { flex-direction: column; }

  /* GENERAL PADDING */
  .features { padding: 60px 20px; }
  .how { padding: 60px 20px; }
  .pricing { padding: 60px 20px; }
  footer { padding: 32px 20px; }
}
