/* Sarvesh Software Solutions — styles matching the Figma "03 — Desktop Website" design */
:root {
  --bg: #050912;
  --bg-alt: #080d18;
  --card: #0b111d;
  --card-2: #0d1422;
  --border: #1a2334;
  --border-strong: #24324a;
  --text: #f5f7fb;
  --muted: #a3aec2;      /* raised from design grey for WCAG AA contrast on dark bg */
  --muted-2: #8d99ae;
  --primary: #3b82f6;
  --primary-hover: #2f6fe0;
  --cyan: #22d3ee;
  --radius: 14px;
  --container: 1240px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 9, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 46px; height: 30px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
.logo-text small { font-size: 8.5px; letter-spacing: 0.32em; color: var(--muted); margin-top: 6px; }
.main-nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
.main-nav a { font-size: 14px; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 0 28px; height: 52px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--card); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(32px, 4vw, 52px); margin-top: 18px; }
.section-lead { color: var(--muted); font-size: 16px; margin-top: 16px; max-width: 760px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-block; font-size: 12px; letter-spacing: 0.06em; color: var(--cyan); border: 1px solid var(--border-strong); background: rgba(34, 211, 238, 0.04); padding: 10px 14px; border-radius: 6px; text-transform: uppercase; }
.dot-label { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 12px; color: var(--cyan); letter-spacing: 0.06em; text-transform: uppercase; }
.dot-label::before { content: ""; width: 4px; height: 4px; background: var(--cyan); border-radius: 50%; }
.hero h1 { font-size: clamp(32px, 3.3vw, 46px); margin-top: 20px; line-height: 1.12; }
.hero .tagline { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 34px); color: var(--cyan); font-weight: 600; margin-top: 18px; }
.hero .lead { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 620px; }
.hero .lead-2 { color: var(--muted); font-size: 16px; margin-top: 16px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
.hero-strip { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 90px; padding: 26px 0; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.pillars { margin-top: 48px; }
.pillar { padding: 34px 28px 40px; }
.pillar .art { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.pillar .art svg { height: 120px; width: auto; }
.pillar h3 { font-size: 22px; margin-top: 14px; }
.pillar p { color: var(--muted); margin-top: 16px; font-size: 15.5px; }

.services { margin-top: 48px; }
.service { padding: 30px 28px; position: relative; display: flex; flex-direction: column; }
.service.featured { border-color: rgba(59, 130, 246, 0.55); }
.service .num { position: absolute; top: 26px; right: 26px; font-size: 12px; color: var(--muted-2); }
.service .icon { width: 26px; height: 26px; color: var(--cyan); }
.service h3 { font-size: 22px; margin-top: 26px; }
.service h3 a:hover { color: var(--cyan); }
.service p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.service ul { list-style: none; margin-top: 18px; }
.service li { position: relative; padding-left: 16px; color: #c8d0dd; font-size: 15px; margin: 9px 0; }
.service li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.card-link { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; }
.card-link:hover { color: #67e8f9; }
.card-link svg { width: 14px; height: 14px; }
.services-row-2 { margin-top: 24px; }

/* ---------- Architecture ---------- */
.arch-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: center; margin-top: 48px; }
.arch-copy h3 { font-size: 30px; }
.arch-copy p { color: var(--muted); margin-top: 18px; }
.arch-copy .big { font-size: 19px; }
.arch-copy .meta { font-size: 12px; color: var(--cyan); letter-spacing: 0.06em; margin-top: 22px; }
.blueprint { padding: 26px 30px 30px; }
.blueprint .eyebrow { font-size: 11px; }
.layers { list-style: none; margin-top: 14px; }
.layer { display: flex; align-items: center; gap: 22px; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; position: relative; }
.layer + .layer { margin-top: 26px; }
.layer + .layer::before { content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 18px; background: var(--primary); opacity: .7; }
.layer.active { border-color: rgba(34, 211, 238, 0.6); }
.layer .n { color: var(--cyan); font-size: 14px; font-weight: 600; min-width: 24px; }
.layer strong { display: block; font-size: 15px; font-weight: 600; }
.layer span { color: var(--muted); font-size: 14px; }

/* ---------- Projects ---------- */
.projects { margin-top: 48px; }
.project { overflow: hidden; display: flex; flex-direction: column; }
.project.featured { border-color: rgba(59, 130, 246, 0.55); }
.project .viz { height: 250px; border-bottom: 1px solid var(--border); position: relative; background: #070c16; }
.project .viz svg { width: 100%; height: 100%; }
.project .viz .lbl { position: absolute; left: 24px; font-size: 10px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }
.project .viz .lbl.top { top: 18px; }
.project .viz .lbl.bottom { bottom: 14px; }
.project .body { padding: 30px 24px 34px; display: flex; flex-direction: column; flex: 1; }
.project .eyebrow { font-size: 11px; font-weight: 600; }
.project h3 { font-size: 24px; margin-top: 14px; }
.project p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; list-style: none; }
.tags li { font-size: 11px; color: #9cc0ff; background: rgba(59, 130, 246, 0.14); border-radius: 4px; padding: 4px 9px; }
.project .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- Tech ---------- */
.tech { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; list-style: none; }
.tech li { display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 22px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: #c8d0dd; font-size: 15px; }
.tech svg { width: 22px; height: 22px; color: var(--muted); flex: none; }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; padding: 72px 64px; margin-top: 0; }
.about .rings { position: absolute; right: -60px; top: 40px; width: 560px; opacity: .55; pointer-events: none; }
.about > * { position: relative; }
.about p.eyebrow { color: var(--cyan); font-size: 12px; margin-top: 0; }
.about h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 18px; }
.about p { color: var(--muted); margin-top: 22px; max-width: 640px; font-size: 17px; }
.about h3 { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--cyan); text-transform: uppercase; margin-top: 28px; }
.about .vision { font-size: 19px; color: #c8d0dd; max-width: 1000px; margin-top: 16px; }
.about ul { list-style: none; margin-top: 16px; color: var(--muted); }
.about li { margin: 4px 0; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; list-style: none; }
.why li { border-top: 1px solid var(--border); padding-top: 26px; }
.why svg { width: 22px; height: 22px; color: var(--cyan); }
.why h3 { font-size: 22px; margin-top: 16px; }
.why p { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 14px; max-width: 980px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 18px; padding: 22px 30px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 18px; font-size: 24px; color: var(--cyan); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h2 { font-size: clamp(36px, 4.4vw, 58px); margin-top: 18px; }
.contact-copy > p { color: var(--muted); font-size: 18px; margin-top: 24px; max-width: 480px; }
.contact-meta { margin-top: 34px; }
.contact-meta dt { font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-top: 18px; }
.contact-meta dd { margin: 8px 0 0; font-size: 16px; }
.contact-meta dd a.email { color: var(--cyan); word-break: break-all; }
.contact-copy .btn { margin-top: 34px; }
.form-card { padding: 34px 32px 30px; }
.form-card h3 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: #070c16; border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 0 16px; height: 54px; width: 100%;
}
.field textarea { height: 130px; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3aec2' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: #7d889c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.form-card .btn { width: 100%; margin-top: 24px; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.form-status { font-size: 14px; margin-top: 10px; color: var(--cyan); min-height: 1em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.7fr 1.3fr 1.6fr; gap: 32px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 12px 0; font-size: 13.5px; color: var(--muted); }
.footer-grid li a:hover { color: var(--cyan); }
.footer-brand .tag { font-size: 16px; color: #c8d0dd; margin-top: 22px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 26px; font-size: 13px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 32px; margin-top: 26px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 80px 0 60px; border-bottom: 1px solid var(--border); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--cyan); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 28px; max-width: 900px; }
.page-hero .lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 760px; }
.page-hero .hero-actions { margin-top: 30px; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin-top: 30px; }
.prose p { color: var(--muted); margin-top: 16px; font-size: 16.5px; }
.prose ul { margin-top: 16px; padding-left: 20px; color: var(--muted); }
.prose li { margin: 8px 0; }
.prose a { color: var(--cyan); }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; padding: 0; }
.feature-list + .prose { margin-top: 56px; }
.hero-grid > *, .arch-grid > *, .contact-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
.feature-list li { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 0; }
.feature-list strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--text); }
.feature-list span { display: block; color: var(--muted); margin-top: 8px; font-size: 15px; }
.cta-band { margin-top: 70px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; margin: 0; }
.cta-band p { color: var(--muted); margin-top: 8px; }
.related { margin-top: 60px; }
.related h2 { font-size: 22px; }
.related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; }
.related a { display: inline-block; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 8px; font-size: 14px; color: #c8d0dd; }
.related a:hover { border-color: var(--cyan); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .arch-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav li a { display: block; padding: 14px 4px; font-size: 16px; }
  .header-cta { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .hero-strip { flex-direction: column; gap: 10px; margin-top: 56px; }
  .grid-3, .grid-2, .why, .feature-list { grid-template-columns: 1fr; }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .tech li { padding: 0 14px; font-size: 14px; }
  .about { padding: 44px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1 1 220px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
