/* ===========================================================
   Bhasruti — IT solutions site
   Design tokens + layout + motion system
   =========================================================== */
:root {
  --ink:        #070810;
  --ink-2:      #0d0f1e;
  --surface:    #12142a;
  --surface-2:  #171a33;
  --line:       rgba(255,255,255,0.08);
  --line-2:     rgba(255,255,255,0.14);
  --fg:         #eceef7;
  --muted:      #9aa0bb;
  --muted-2:    #6f7591;

  --indigo:     #7b6cff;
  --cyan:       #34e0e6;
  --lime:       #b6f36b;

  --grad-brand: linear-gradient(120deg, #8b7bff 0%, #6fd0ff 55%, #52f0d8 100%);

  --text-eyebrow: 0.78rem;
  --text-hero:  clamp(2.6rem, 1.2rem + 6vw, 6.2rem);
  --text-h2:    clamp(2rem, 1.3rem + 2.6vw, 3.3rem);
  --text-h3:    clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --text-lead:  clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);

  --space-sec:  clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --dur:        520ms;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); background: var(--ink); color: var(--fg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--fg); padding: 0.7rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-brand); box-shadow: 0 0 14px rgba(111,208,255,0.6);
  will-change: transform;
}

/* ---------- Ambient aurora ---------- */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.30;
  will-change: transform;
}
.glow .g1 { width: 60vmax; height: 60vmax; top: -22vmax; right: -14vmax; background: radial-gradient(circle at center, var(--indigo), transparent 68%); animation: drift1 26s var(--ease) infinite alternate; }
.glow .g2 { width: 46vmax; height: 46vmax; bottom: -18vmax; left: -12vmax; background: radial-gradient(circle at center, var(--cyan), transparent 68%); animation: drift2 32s var(--ease) infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vmax, 5vmax) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(7vmax, -4vmax) scale(1.1); } }

/* ---------- Shared ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: var(--text-eyebrow); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: 0.7; }

.grad { background: var(--grad-brand); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad.shimmer { animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 220% 0; } }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.98rem; padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn-primary { background: var(--grad-brand); color: #08101a; box-shadow: 0 10px 30px -12px rgba(111,208,255,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(111,208,255,0.75); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in oklab, var(--ink) 72%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; color: #08101a; font-weight: 800; font-family: var(--mono); font-size: 0.95rem; box-shadow: 0 6px 18px -8px rgba(111,208,255,0.7); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { position: relative; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color var(--dur) var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur) var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 0.5rem; color: var(--fg); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease); }
  .nav-links a { width: 100%; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav[data-open="true"] .nav-links { max-height: 340px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero + canvas ---------- */
.hero { position: relative; padding: clamp(3.5rem, 2rem + 8vw, 7rem) 0 var(--space-sec); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-mask { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 70% 10%, transparent 40%, var(--ink) 92%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.8rem; font-size: 0.82rem; color: var(--muted); border: 1px solid var(--line-2); padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(255,255,255,0.02); }
.hero-badge .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: var(--text-hero); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 15ch; margin-bottom: 1.5rem; }
.hero p.lead { font-size: var(--text-lead); color: var(--muted); max-width: 52ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.5rem; }

/* ---------- Trust marquee ---------- */
.trust { display: flex; flex-direction: column; gap: 1rem; }
.trust > span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.marquee { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-weight: 700; font-size: 1.05rem; color: var(--muted); letter-spacing: -0.01em; opacity: 0.8; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.sec { padding-block: var(--space-sec); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.sec-head h2 { font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin: 1rem 0; }
.sec-head p { color: var(--muted); font-size: var(--text-lead); }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.card { position: relative; background: linear-gradient(160deg, var(--surface), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; overflow: hidden; transition: transform 220ms var(--ease), border-color var(--dur) var(--ease); transform-style: preserve-3d; }
.card .sheen { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity var(--dur) var(--ease); background: radial-gradient(300px circle at var(--mx,50%) var(--my,0%), rgba(123,108,255,0.18), transparent 60%); pointer-events: none; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--dur) var(--ease); }
.card:hover { border-color: transparent; }
.card:hover::after, .card:hover .sheen { opacity: 1; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(123,108,255,0.14); border: 1px solid var(--line-2); margin-bottom: 1.2rem; color: var(--cyan); transition: transform var(--dur) var(--ease); }
.card:hover .ico { transform: translateZ(30px) scale(1.06); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.card .tags span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.5rem; }
.card.wide { grid-column: span 3; }
.card.third { grid-column: span 2; }
@media (max-width: 900px) { .card.wide, .card.third { grid-column: span 3; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .card.wide, .card.third { grid-column: span 1; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink-2); padding: 2rem 1.5rem; }
.stat .num { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding-top: 2.4rem; }
.step .no { position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); background: var(--grad-brand); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.step h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step::before { content: ""; position: absolute; top: 17px; left: 44px; right: -0.75rem; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.step:last-child::before { display: none; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::before { display: none; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote { background: linear-gradient(160deg, var(--surface-2), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 1.5rem + 3vw, 3.6rem); position: relative; overflow: hidden; }
.quote .qmark { font-family: var(--mono); font-size: 5rem; line-height: 0.6; color: var(--indigo); opacity: 0.4; }
.quote blockquote { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; max-width: 40ch; margin: 1rem 0 1.6rem; }
.quote cite { font-style: normal; color: var(--muted); font-size: 0.95rem; }
.quote cite b { color: var(--fg); font-weight: 600; }

/* ---------- CTA / contact ---------- */
.cta { background: linear-gradient(140deg, rgba(123,108,255,0.16), rgba(52,224,230,0.10)); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px); padding: clamp(2.2rem, 1.5rem + 4vw, 4.5rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.cta h2 { font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1rem; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; }
.cta .contact-line { font-family: var(--mono); font-size: 0.9rem; color: var(--cyan); }
form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.field input, .field textarea { background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; color: var(--fg); font-family: var(--sans); font-size: 0.95rem; width: 100%; transition: border-color var(--dur) var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.field textarea { resize: vertical; min-height: 90px; }
form .btn-primary { justify-content: center; }
.form-note { font-size: 0.78rem; color: var(--muted-2); }
@media (max-width: 780px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; margin-top: var(--space-sec); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; margin-bottom: 2.5rem; }
.foot-brand { max-width: 34ch; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 0.8rem; }
.foot-cols { display: flex; gap: clamp(2rem, 1rem + 4vw, 5rem); flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem; }
.foot-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 0.3rem 0; transition: color var(--dur) var(--ease); }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1.8rem; color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Reduced motion: stop all non-essential animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow span, .hero-badge .pip, .grad.shimmer, .marquee-track { animation: none !important; }
  .btn, .card, .nav-links, .card .ico { transition: none; }
  .progress { display: none; }
}
