*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --beyond-black: #07070E;
  --void-dark: #0E0E1A;
  --surface: #13131F;
  --panel: #1A1A2E;
  --purple: #7B2FFF;
  --cyan: #00F5D4;
  --lime: #B8FF57;
  --pink: #FF2D78;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,0.62);
  --dim: rgba(255,255,255,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--beyond-black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: opacity 0.25s; }
a:hover { opacity: 0.8; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 48px;
  background: rgba(7,7,14,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-right { justify-self: end; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.logo span { font-weight: 300; color: var(--cyan); }
.nav-mid { display: flex; gap: 32px; align-items: center; }
.nav-mid a {
  color: var(--muted); font-size: 13px;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.15s;
}
.nav-mid a:hover { color: var(--white); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang {
  display: flex; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px; overflow: hidden;
}
.lang button {
  background: transparent; border: none;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; padding: 6px 10px;
  cursor: pointer; transition: all 0.15s;
  text-transform: uppercase;
}
.lang button:hover { color: rgba(255,255,255,0.6); }
.lang button.on { background: rgba(123,47,255,0.15); color: var(--white); }
.lang button + button { border-left: 1px solid rgba(255,255,255,0.05); }
.nav-cta {
  width: 140px; padding: 9px 0; border-radius: 6px;
  background: var(--purple); color: var(--white) !important;
  font-weight: 500; font-size: 13px;
  font-family: inherit; border: none; cursor: pointer;
  transition: box-shadow 0.25s;
  text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(123,47,255,0.4); }

/* ── MOBILE MENU ── */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── LAYOUT ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 140px 32px 80px;
}
.hero::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(123,47,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 740px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 24px;
}
.hero h1 .acc { color: var(--cyan); }
.hero-sub {
  font-size: 18px; color: var(--muted); line-height: 1.65;
  max-width: 560px; margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-p {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 30px; border-radius: 6px;
  background: var(--purple); color: var(--white);
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(123,47,255,0.4); }
.btn-g {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 30px; border-radius: 6px;
  background: transparent; color: var(--white);
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: border-color 0.2s;
}
.btn-g:hover { border-color: var(--cyan); }
.scroll-hint {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.2); font-size: 11px;
  text-transform: uppercase; letter-spacing: 2px;
}
.scroll-dot {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(0,245,212,0.5), transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,47,255,0.2), rgba(0,245,212,0.2), transparent);
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--purple);
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 14px;
  text-align: center;
}
.sec-desc {
  font-size: 16px; color: var(--muted); line-height: 1.6;
  max-width: 540px; margin: 0 auto;
}

/* ── ABOUT BLOCK ── */
.about-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.03);
  border-radius: 12px; overflow: hidden;
}
.about-feat {
  background: var(--void-dark); padding: 32px 24px;
  text-align: center; transition: background 0.25s;
}
.about-feat:hover { background: var(--surface); }
.about-feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 18px;
}
.about-feat h4 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.about-feat p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── SERVICES GRID ── */
.svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.03);
  border-radius: 12px; overflow: hidden;
}
.svc-card {
  background: var(--void-dark); padding: 40px 28px;
  text-align: center; transition: background 0.25s; cursor: default;
  display: flex; flex-direction: column; align-items: center;
}
.svc-card:hover { background: var(--surface); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; font-size: 22px; flex-shrink: 0;
}
.svc-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.svc-card .tg {
  display: inline-block; margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--cyan);
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid rgba(0,245,212,0.12);
  flex-shrink: 0;
}

/* ── PRODUCT CARD ── */
.prod-card {
  background: var(--surface); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.03);
  overflow: hidden; display: grid;
  grid-template-columns: 1fr 1fr; position: relative;
}
.prod-card::after {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,245,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.prod-info {
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.prod-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(0,245,212,0.07);
  font-size: 12px; color: var(--cyan); font-weight: 500;
  margin-bottom: 20px; width: fit-content;
}
.prod-badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cyan);
}
.prod-name { font-size: 40px; font-weight: 700; margin-bottom: 14px; }
.prod-desc { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 32px; }
.prod-visual {
  background: var(--panel); display: flex;
  align-items: center; justify-content: center;
  position: relative; min-height: 340px;
}
.prod-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(123,47,255,0.1) 0%, transparent 50%),
    linear-gradient(225deg, rgba(0,245,212,0.07) 0%, transparent 50%);
}
.prod-visual span {
  position: relative; font-size: 48px; font-weight: 700;
  color: rgba(255,255,255,0.05);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.form { display: flex; flex-direction: column; gap: 20px; }
.form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px; display: block;
}
.form input, .form textarea {
  width: 100%; padding: 14px 16px;
  background: var(--void-dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px; color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; outline: none;
  transition: border-color 0.2s;
}
.form input:focus, .form textarea:focus { border-color: var(--purple); }
.form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status {
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px; display: none;
}
.form-status.success {
  display: block;
  background: rgba(184,255,87,0.08);
  border: 1px solid rgba(184,255,87,0.2);
  color: var(--lime);
}
.form-status.error {
  display: block;
  background: rgba(255,45,120,0.08);
  border: 1px solid rgba(255,45,120,0.2);
  color: var(--pink);
}
.cinfo { padding-top: 8px; }
.cinfo-block { margin-bottom: 32px; }
.cinfo-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.2);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px;
}
.cinfo-val { font-size: 16px; }

/* ── FOOTER ── */
footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.03);
}
footer p { font-size: 13px; color: rgba(255,255,255,0.18); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-tag, .hero h1, .hero-sub, .hero-btns, .scroll-hint {
  animation: fadeUp 0.7s ease both;
}
.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-btns { animation-delay: 0.3s; }
.scroll-hint { animation-delay: 0.5s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .prod-card { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-mid { display: none; }
  .menu-toggle { display: block; }
  .wrap { padding: 0 24px; }
  .hero { padding: 120px 24px 60px; }
  .svc-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
}
