/* ============ VajraDevs — style.css ============ */
:root {
  --bg: #0a0a14;
  --bg-alt: #0e0e1c;
  --surface: #14142400;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eceafb;
  --muted: #9b98b8;
  --primary: #8b7bff;
  --primary-2: #6d5cff;
  --accent: #f0b24a;
  --teal: #5eead4;
  --grad: linear-gradient(120deg, #8b7bff, #5eead4 55%, #f0b24a);
  --radius: 18px;
  --nav-h: 72px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1150px, 92%);
  margin-inline: auto;
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.10), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .4s;
  opacity: 0;
}
body.has-mouse .cursor-glow { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.35);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links a.nav-cta {
  color: #0c0c16;
  background: var(--grad);
  font-weight: 600;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}
#particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -350px; left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(109, 92, 255, .22), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.typed-wrap {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 3px; height: .95em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .98rem;
  cursor: pointer;
  border: 0;
  transition: transform .25s, box-shadow .25s, filter .25s, background .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #0c0c16;
  background: var(--grad);
  box-shadow: 0 8px 30px rgba(139, 123, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139, 123, 255, .45); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-full { width: 100%; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num, .stat-plus {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .03em;
}

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2; opacity: .55; transition: opacity .3s;
}
.scroll-hint:hover { opacity: 1; }
.mouse {
  display: block; width: 24px; height: 38px;
  border: 2px solid var(--muted); border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--muted);
  transform: translateX(-50%);
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; z-index: 2; }
.section-alt {
  background:
    radial-gradient(1000px 500px at 80% 0%, rgba(109, 92, 255, .07), transparent 60%),
    var(--bg-alt);
}
.section-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-eyebrow {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: border-color .3s, background .3s, transform .15s ease-out, box-shadow .3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: rgba(139, 123, 255, .45);
  background: rgba(139, 123, 255, .06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.card-icon {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(139, 123, 255, .12);
  border: 1px solid rgba(139, 123, 255, .2);
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.18rem; font-weight: 700;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.card-tag {
  font-size: .78rem;
  color: var(--teal);
  letter-spacing: .04em;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.product {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.product:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 178, 74, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.product-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.product-emoji { font-size: 2rem; }
.badge {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.badge-live { color: var(--teal); background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3); }
.badge-soon { color: var(--accent); background: rgba(240, 178, 74, .1); border: 1px solid rgba(240, 178, 74, .3); }
.product h3 {
  font-family: var(--font-head);
  font-size: 1.12rem; font-weight: 700; margin-bottom: 8px;
}
.product p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.product-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.product-bar span {
  display: block; height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--grad);
  transition: width 1.2s cubic-bezier(.22,.9,.35,1);
}
.product.in-view .product-bar span { width: var(--w); }
.product-note { text-align: center; margin-top: 44px; color: var(--muted); }
.product-note a { color: var(--primary); font-weight: 600; }
.product-note a:hover { text-decoration: underline; }

/* ---------- Industries marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 10px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 600;
  white-space: nowrap;
  transition: border-color .3s, color .3s;
}
.marquee-track span:hover { border-color: var(--primary); color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.about-text .section-title { text-align: left; }
.about-text .section-eyebrow { text-align: left; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text strong { color: var(--text); }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about-points li {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: .95rem;
}
.about-points strong { color: var(--text); }

.about-visual { display: grid; place-items: center; }
.vajra-gem {
  position: relative;
  width: min(300px, 70vw);
  animation: floaty 5.5s ease-in-out infinite;
}
.gem-pulse {
  position: absolute; inset: -20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 123, 255, .18), transparent 70%);
  animation: pulse 3.4s ease-in-out infinite;
  z-index: -1;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
@keyframes pulse {
  0%, 100% { opacity: .5; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-form {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  display: grid; gap: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field span {
  font-size: .85rem; font-weight: 500;
  color: var(--muted); letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, .25);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-alt); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 123, 255, .18);
}
.field input.invalid, .field textarea.invalid { border-color: #ff7b7b; }
.form-hint { font-size: .8rem; color: var(--muted); text-align: center; }

.contact-side { display: grid; gap: 20px; }
.email-card {
  padding: 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(240, 178, 74, .12), transparent 55%),
    var(--card);
  border: 1px solid var(--card-border);
  text-align: center;
}
.email-label { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.email-addr {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  word-break: break-all;
}
.email-addr:hover { filter: brightness(1.2); }
.btn-copy { padding: 10px 22px; font-size: .88rem; }
.side-note {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.side-note h4 {
  font-family: var(--font-head);
  font-size: .95rem; margin-bottom: 6px;
}
.side-note p { color: var(--muted); font-size: .88rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 0 40px;
  background: var(--bg-alt);
  position: relative; z-index: 2;
}
.footer-inner { text-align: center; display: grid; gap: 16px; justify-items: center; }
.footer-brand { font-size: 1.4rem; }
.footer-tag { color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .25s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: .8rem; opacity: .7; margin-top: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 26px;
  border-radius: 999px;
  background: #1c1c30;
  border: 1px solid rgba(139, 123, 255, .4);
  color: var(--text);
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); right: 0;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, 80vw);
    padding: 18px;
    gap: 8px;
    background: rgba(12, 12, 22, .97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    border-radius: 0 0 0 20px;
    transform: translateX(110%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { text-align: center; padding: 12px; }
  .nav-links a.nav-cta { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
