/* Mehank Solutions: "Violet Aura" design system.
   Self-hosted fonts (SIL OFL 1.1). No external requests. CSS-only motion,
   disabled for visitors who prefer reduced motion. */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/sora-latin-var.woff2') format('woff2-variations'),
       url('/assets/fonts/sora-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2-variations'),
       url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --abyss: #150A1F;
  --abyss-deep: #0F0717;
  --abyss-raised: #1D1129;
  --violet: #9B5DE5;
  --orchid: #E85FC0;
  --gold: #F5C97B;
  --text-primary: #F3EEF9;
  --text-secondary: #C9BEDA;
  --text-muted: #9A8FB2;
  --glass: rgba(255,255,255,0.035);
  --glass-strong: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.09);
  --violet-border: rgba(155,93,229,0.45);
  --grad: linear-gradient(120deg, var(--violet), var(--orchid));
  --max-width: 1140px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--abyss);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1 0 auto; }

h1, h2, h3, .brand-name, .product-name {
  font-family: var(--font-head);
  letter-spacing: -0.015em;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Nav -------------------------------------------------------------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(18,9,27,0.74);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.mark { display: block; flex-shrink: 0; }
.brand-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.brand-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
nav.links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
nav.links a { text-decoration: none; color: var(--text-secondary); transition: color 0.15s ease; }
nav.links a:hover { color: var(--text-primary); }
nav.links a.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--violet-border);
  background: rgba(155,93,229,0.14);
  color: var(--text-primary);
  font-weight: 600;
}
nav.links a.nav-cta:hover { background: rgba(155,93,229,0.26); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  nav.links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--abyss-raised);
    box-shadow: 0 18px 30px -12px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0s linear 0.25s;
  }
  nav.links.open { max-height: 420px; visibility: visible; transition: max-height 0.25s ease; }
  nav.links a { padding: 15px 24px; border-top: 1px solid var(--glass-border); }
  nav.links a.nav-cta { margin: 12px 24px 16px; text-align: center; border-top: 1px solid var(--violet-border); }
}

/* -- Shared section chrome --------------------------------------------- */
section { position: relative; padding: 96px 0; }
.band {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orchid);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orchid);
  box-shadow: 0 0 10px 2px rgba(232,95,192,0.6);
}
h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 760px;
  text-wrap: balance;
}
.lede { font-size: 17px; color: var(--text-secondary); max-width: 660px; margin: 0 0 44px; }
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* -- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(155,93,229,0.75);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(232,95,192,0.75); }
.btn-ghost { background: var(--glass); border-color: var(--glass-border); color: var(--text-primary); }
.btn-ghost:hover { background: var(--glass-strong); }

/* -- Hero -------------------------------------------------------------- */
.hero {
  padding: 112px 0 40px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 620px; height: 460px;
  left: -140px; top: -160px;
  background: rgba(155,93,229,0.38);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 520px; height: 420px;
  right: -160px; top: -60px;
  background: rgba(232,95,192,0.24);
  animation: drift-b 22s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
@keyframes drift-a { to { transform: translate(120px, 60px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-100px, 80px) scale(0.92); } }

.eyebrow--center { justify-content: center; }
.hero h1 {
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 auto 24px;
  background: linear-gradient(115deg, #FFFFFF 0%, #EBDDFB 40%, var(--orchid) 78%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text-primary);
  text-wrap: balance;
}
.hero p.sub { font-size: 18.5px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 38px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Signal: the brand wave stretched into the build process */
.signal { margin: 64px auto 0; padding: 0 12px; max-width: 1120px; }
.signal svg { display: block; width: 100%; height: auto; overflow: visible; }
.signal-base { fill: none; stroke: url(#g-signal); stroke-width: 2; opacity: 0.55; }
.signal-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 70 930;
  filter: drop-shadow(0 0 6px rgba(245,201,123,0.8));
  animation: pulse-flow 7s linear infinite;
}
@keyframes pulse-flow { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.signal-nodes circle {
  fill: var(--abyss);
  stroke: var(--orchid);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-glow 3.5s ease-in-out infinite;
}
.signal-nodes circle:nth-child(2) { animation-delay: 0.7s; }
.signal-nodes circle:nth-child(3) { animation-delay: 1.4s; }
.signal-nodes circle:nth-child(4) { animation-delay: 2.1s; }
.signal-nodes circle:nth-child(5) { animation-delay: 2.8s; }
@keyframes node-glow {
  0%, 100% { transform: scale(1); stroke: var(--orchid); }
  50% { transform: scale(1.35); stroke: var(--gold); }
}
.signal-labels text {
  fill: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* -- Services ---------------------------------------------------------- */
.services-grid, .industries-grid, .principles, .process, .engagements {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service { padding: 28px; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(155,93,229,0.16);
  box-shadow: inset 0 0 0 1px rgba(155,93,229,0.35);
}
.service h3 { font-size: 18px; margin: 18px 0 8px; }
.service p { margin: 0; font-size: 15px; color: var(--text-secondary); }

.service, .principle, .industry {
  position: relative;
  background: linear-gradient(160deg, rgba(155,93,229,0.09), rgba(255,255,255,0.02) 55%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service:hover, .principle:hover, .industry:hover {
  border-color: var(--violet-border);
  transform: translateY(-3px);
}

/* -- Process ----------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--orchid), var(--gold));
  opacity: 0.55;
}
.step { position: relative; }
.step-num {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--abyss);
  border: 2px solid var(--violet);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 0 0 6px var(--abyss), 0 0 24px rgba(155,93,229,0.55);
}
.step:nth-child(2) .step-num { border-color: #C25ED3; }
.step:nth-child(3) .step-num { border-color: var(--orchid); }
.step:nth-child(4) .step-num { border-color: var(--gold); }
.step h3 { font-size: 18px; margin: 20px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--text-secondary); }

/* -- Industries -------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.industry { padding: 22px 22px 24px; }
.industry h3 { font-size: 16px; margin: 0 0 6px; }
.industry p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.industry--open {
  background: transparent;
  border-style: dashed;
  border-color: rgba(245,201,123,0.4);
}
.industry--open h3 { color: var(--gold); }

/* -- Products ---------------------------------------------------------- */
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.product-card:hover { border-color: var(--violet-border); transform: translateY(-3px); }
.product-card--more { background: transparent; border-style: dashed; justify-content: center; }
.product-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(155,93,229,0.16);
  box-shadow: inset 0 0 0 1px rgba(155,93,229,0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.product-top { display: flex; align-items: center; gap: 14px; }
.product-name { font-weight: 700; font-size: 18px; margin: 0; }
.product-category {
  margin: 0;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.product-desc { font-size: 15px; color: var(--text-secondary); margin: 0; flex-grow: 1; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(245,201,123,0.12);
  border: 1px solid rgba(245,201,123,0.35);
  color: var(--gold);
  align-self: flex-start;
  text-decoration: none;
}
.status-pill--dev { background: var(--glass); border-color: var(--glass-border); color: var(--text-secondary); }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.status-pill--dev .dot { background: var(--text-muted); box-shadow: none; }
a.status-pill:hover { background: rgba(245,201,123,0.2); }

/* -- Principles -------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.principle { padding: 26px 24px; }
.principle h3 { font-size: 16.5px; margin: 14px 0 8px; }
.principle p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }

/* -- Start a project --------------------------------------------------- */
.start { padding-top: 40px; }
.start-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  padding: 52px;
  border-radius: 28px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(155,93,229,0.32), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, rgba(232,95,192,0.22), transparent 60%),
    var(--abyss-raised);
  border: 1px solid var(--violet-border);
  overflow: hidden;
}
.start-copy h2 { font-size: clamp(30px, 4.6vw, 46px); }
.start-copy > p { color: var(--text-secondary); font-size: 17px; margin: 0 0 28px; max-width: 520px; }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.start-copy > p.start-email { margin: 20px 0 0; font-size: 14.5px; color: var(--text-muted); }
.start-email a { color: var(--text-primary); text-decoration-color: var(--violet-border); text-underline-offset: 3px; word-break: break-word; }
.engagements { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.engagements li {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(15,7,23,0.55);
  border: 1px solid var(--glass-border);
}
.engagements h3 { font-size: 16px; margin: 0 0 4px; }
.engagements p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.copy-btn[data-state="done"] { border-color: rgba(245,201,123,0.5); color: var(--gold); }

/* -- Contact ----------------------------------------------------------- */
.contact-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 36px; }
.fact-label, .company-details dt {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact-email {
  display: inline-block;
  margin-top: 6px;
  font-size: 18px; font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--violet-border);
  word-break: break-word;
}
.contact-email:hover { border-bottom-color: var(--orchid); }
.contact-note { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }
.company-details { margin: 0; display: grid; gap: 14px; }
.company-details dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--text-primary); word-break: break-word; }
.company-details a { color: var(--text-secondary); }

/* -- Legal pages ------------------------------------------------------- */
.legal { padding: 64px 0 88px; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; line-height: 1.12; margin: 0 0 8px; }
.prose .meta { color: var(--text-muted); font-size: 14px; margin: 0 0 32px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; color: var(--text-primary); }
.prose p, .prose li { color: var(--text-secondary); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--text-primary); text-decoration-color: var(--violet-border); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orchid); }
.callout, .address-card {
  margin: 0 0 8px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--violet-border);
  background: rgba(155,93,229,0.08);
}
.callout p, .address-card p { margin: 0; }
.address-card { border-color: var(--glass-border); background: var(--glass); }

/* -- Simple centered page (404) ---------------------------------------- */
.hero--compact { padding: 140px 0 140px; }
.hero--compact h1 { font-size: clamp(36px, 6vw, 56px); }

/* -- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--glass-border); padding: 36px 0 48px; background: var(--abyss-deep); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-company { display: flex; flex-direction: column; gap: 3px; max-width: 640px; line-height: 1.55; }
.footer-copy { color: var(--text-secondary); margin-bottom: 2px; }
.footer-company a { color: var(--text-muted); text-decoration-color: rgba(255,255,255,0.2); text-underline-offset: 2px; word-break: break-word; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); }

/* -- Draft-build marker (never appears in a release build) ------------- */
.todo { color: var(--gold); font-style: italic; }

/* -- Responsive -------------------------------------------------------- */
@media (max-width: 1020px) {
  .industries-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .services-grid, .industries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .process::before { display: none; }
  .start-panel { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; gap: 32px; }
}
@media (max-width: 680px) {
  section { padding: 68px 0; }
  .hero { padding: 76px 0 24px; }
  .hero p.sub { font-size: 17px; }
  .signal { margin-top: 44px; }
  .signal-labels { display: none; }
  .services-grid, .industries-grid, .principles, .products-grid, .contact-card,
  .process { grid-template-columns: minmax(0, 1fr); }
  .process { row-gap: 28px; }
  .step { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; }
  .step-num { grid-row: span 2; }
  .step h3 { margin: 8px 0 6px; }
  .start-panel { padding: 32px 22px; border-radius: 22px; }
  .start-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .hero h1 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
