:root {
  --pink: #ff71ce;
  --cyan: #01cdfe;
  --purple: #b967ff;
  --yellow: #fffb96;
  --magenta: #ff2cdf;
  --accent: #01cdfe;
  --accent-2: #b967ff;
  --bg-deep: #140a2e;
  --bg-darker: #0a0518;
  --bg-panel: #1c1140;
  --text: #ece6ff;
  --muted: #b5a8d8;
  --line: rgba(185, 103, 255, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse at top, var(--bg-panel) 0%, var(--bg-deep) 50%, var(--bg-darker) 100%);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--pink); }

::selection { background: var(--accent); color: var(--bg-darker); }

h1, h2, h3, h4 { font-family: "Sarpanch", sans-serif; font-weight: 400; }

/* ---------- SCANLINES OVERLAY ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0) 4px
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
}
.scanlines::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 65%, rgba(0,0,0,0.35) 100%);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(10, 5, 24, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.nav__brand {
  font-family: "Sarpanch", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 1.5px;
}
.dot { color: var(--accent); }

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}
.nav__links a {
  position: relative;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color .25s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }

.nav__phone {
  margin-left: auto;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color .25s;
}
.nav__phone:hover { color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(64px + 40px) 24px 40px;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 45vh;
  z-index: 2;
  background: linear-gradient(rgba(0,0,0,0) 0%, var(--bg-deep) 100%);
  perspective: 200px;
  transform-style: preserve-3d;
}
.hero__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(185, 103, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 103, 255, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(72deg);
  transform-origin: center bottom;
  opacity: 0.55;
  animation: grid-scroll 2.6s linear infinite;
}
.hero__grid::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,5,24,0) 0%, rgba(10,5,24,0.6) 80%, var(--bg-darker) 100%);
}
@keyframes grid-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: clamp(170px, 40vh, 680px);
  height: auto;
  display: block;
  margin: 0 auto 22px;
  flex-shrink: 0;
}

.hero__tagline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 auto 10px;
  max-width: 620px;
}

.hero__sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 620px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s, filter .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.btn:active { transform: translateY(0); }
.btn--glow { box-shadow: 0 6px 24px rgba(1, 205, 254, 0.3); }
.btn--glow:hover { box-shadow: 0 8px 32px rgba(185, 103, 255, 0.45); }

.btn--submit {
  border: none;
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 16px;
  padding: 15px 48px;
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 6px 24px rgba(1, 205, 254, 0.28);
}
.btn--submit:hover { box-shadow: 0 8px 32px rgba(185, 103, 255, 0.4); color: #fff; }
.btn--submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ---------- SECTIONS ---------- */
section { padding: 96px 24px; position: relative; }

.section-title {
  font-family: "Sarpanch", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 44px);
  text-align: center;
  letter-spacing: 1.5px;
  margin-bottom: 56px;
  color: var(--text);
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section-title--alt { color: var(--text); }

/* ---------- SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: rgba(28, 17, 64, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 26px;
  text-align: left;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 205, 254, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.service-card h3 {
  font-family: "Sarpanch", sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.service-card p { color: var(--muted); font-size: 16px; }

/* ---------- WHY ---------- */
.why { background: linear-gradient(180deg, transparent, rgba(20, 10, 46, 0.5), transparent); }
.why__list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: grid; gap: 16px;
}
.why__list li {
  padding: 18px 24px;
  background: rgba(28, 17, 64, 0.5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 16px;
  color: var(--muted);
}
.why__list strong { color: var(--text); font-weight: 600; }

/* ---------- QUOTE FORM ---------- */
.quote {
  background: radial-gradient(ellipse at 50% 0%, rgba(1, 205, 254, 0.08) 0%, transparent 70%);
}
.quote__panel {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(28, 17, 64, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}
.quote__intro {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 16px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.8px;
  color: var(--text);
}
.req { color: var(--pink); }
.opt { color: var(--muted); font-size: 12px; font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--text);
  background: rgba(10, 5, 24, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(181, 168, 216, 0.45); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(10, 5, 24, 0.9);
  box-shadow: 0 0 0 3px rgba(1, 205, 254, 0.15);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 44, 223, 0.15);
}

.form__status {
  grid-column: 1 / -1;
  text-align: center;
  min-height: 22px;
  font-size: 15px;
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: var(--pink); }

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #050210 100%);
  border-top: 1px solid var(--line);
  padding: 56px 24px 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: var(--muted);
}
.footer__brand {
  font-family: "Sarpanch", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 1.5px;
}
.footer h4 {
  font-family: "Sarpanch", sans-serif;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.8px;
  font-size: 14px;
  text-transform: uppercase;
}
.footer__legal {
  text-align: center;
  font-size: 13px;
  color: rgba(181, 168, 216, 0.5);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .nav { flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px; height: 104px; }
  .nav__brand { font-size: 15px; }
  .nav__links { position: static; transform: none; justify-content: center; gap: 18px; flex-wrap: wrap; }
  .nav__links a { padding: 6px 2px; font-size: 15px; }
  .nav__phone { margin-left: 0; font-size: 14px; }
  .hero { padding: calc(104px + 32px) 20px 32px; }
  .hero__tagline { font-size: 19px; }
  .hero__sub { font-size: 16px; margin-bottom: 30px; }
  .form { grid-template-columns: 1fr; }
  .quote__panel { padding: 32px 22px; }
  .section-title { margin-bottom: 40px; }
  section { padding: 72px 18px; }
  body { font-size: 16px; }
}

@media (max-width: 480px) {
  .nav { padding: 8px 14px; height: 100px; }
  .nav__brand { font-size: 14px; letter-spacing: 1px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 14px; }
  .nav__phone { font-size: 13px; }
  .hero { padding: calc(100px + 28px) 16px 28px; }
  .hero__tagline { font-size: 18px; }
  .hero__sub { font-size: 15px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .quote__panel { padding: 26px 18px; }
  section { padding: 60px 16px; }
  .footer__grid { gap: 24px; }
  .footer { padding: 44px 18px 24px; }
}

/* ---------- NO HOVER ON TOUCH ---------- */
@media (hover: none) {
  .nav__links a:hover { color: var(--text); }
  .nav__links a:hover::after { width: 0; }
  .nav__phone:hover { color: var(--text); }
  .btn:hover { transform: none; filter: none; color: #fff; }
  .btn--glow:hover { box-shadow: 0 6px 24px rgba(1, 205, 254, 0.3); }
  .btn--submit:hover { box-shadow: 0 6px 24px rgba(1, 205, 254, 0.28); color: #fff; }
  .service-card:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }
}