/* Soni Technologies — site styles. Brand: ink navy + saffron amber. */
:root {
  --ink: #0b1220;
  --ink-2: #121b2e;
  --ink-line: #223049;
  --amber: #f5a524;
  --amber-strong: #9a5b00; /* amber for text on light backgrounds (AA) */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #566074;
  --line: #e4e7ee;
  --on-ink: #e8ecf4;
  --on-ink-muted: #a3aec4;
  --radius: 14px;
  --maxw: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root:not([data-theme="light"]) {
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --amber-strong: #f5a524;
    --bg: #0b1220;
    --surface: #121b2e;
    --text: #e8ecf4;
    --muted: #a3aec4;
    --line: #223049;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--ink-line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 18px; letter-spacing: -.01em; }
.brand-text span { font-size: 10.5px; letter-spacing: .2em; color: var(--on-ink-muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--on-ink-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink-line); color: var(--on-ink); border-radius: 10px; width: 44px; height: 44px; 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; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffb73d; }
.btn-ghost { border-color: var(--ink-line); color: var(--on-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--on-ink-muted); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: 14.5px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { background: radial-gradient(900px 420px at 85% -10%, rgba(245, 165, 36, .18), transparent 60%), linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--on-ink); padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 56px 56px; opacity: .22; mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.hero h1 { font-size: clamp(36px, 6.2vw, 64px); max-width: 15ch; color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--on-ink-muted); max-width: 60ch; margin: 22px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--on-ink-muted); }
.hero-meta span::before { content: "•"; color: var(--amber); margin-right: 9px; }

/* Proof strip */
.proof { background: var(--ink-2); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 26px 22px; border-left: 1px solid var(--ink-line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item b { display: block; font-size: clamp(26px, 3.2vw, 36px); color: #fff; letter-spacing: -.02em; }
.proof-item span { font-size: 14px; color: var(--on-ink-muted); }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-strong); margin-bottom: 12px; font-weight: 600; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 16px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Work */
.work { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-metric b { display: block; font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -.03em; color: var(--amber-strong); line-height: 1; }
.case-metric span { font-size: 14px; color: var(--muted); }
.case h3 { font-size: 22px; }
.case .who { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.case p { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 28px; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.client { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.client .region { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-strong); font-weight: 600; }
.client h3 { font-size: 20px; margin: 4px 0 6px; }
.client p { color: var(--muted); margin: 0; font-size: 16px; }

/* Engagement + process */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.model h3 { font-size: 20px; }
.model ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.model li { margin-bottom: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; margin-top: 56px; padding: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 2px solid var(--amber); padding-top: 16px; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--amber-strong); font-weight: 700; font-size: 14px; }
.steps h4 { font-size: 18px; margin: 6px 0; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Stack */
.stack { background: var(--ink); color: var(--on-ink); }
.stack .kicker { color: var(--amber); }
.stack .section-head p { color: var(--on-ink-muted); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stack-col h3 { font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: 12px; }
.stack-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-col li { padding: 7px 13px; border: 1px solid var(--ink-line); border-radius: 999px; font-size: 14.5px; background: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts div:last-child { padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--on-ink); text-align: center; }
.contact h2 { font-size: clamp(30px, 4.6vw, 46px); color: #fff; max-width: 18ch; margin: 0 auto .4em; }
.contact p { color: var(--on-ink-muted); max-width: 54ch; margin: 0 auto 30px; font-size: 18px; }
.contact .cta-row { justify-content: center; }
.contact .mail { margin-top: 26px; font-family: var(--mono); font-size: 15px; color: var(--on-ink-muted); }
.contact .mail a { color: var(--amber); text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 34px 0; border-top: 1px solid var(--ink-line); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; align-items: center; }
.foot a { color: var(--on-ink-muted); text-underline-offset: 3px; }
.foot a:hover { color: #fff; }
.foot-links { display: flex; gap: 20px; }

/* Legal pages */
.legal { padding: 64px 0 84px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 940px) {
  .grid-3, .models, .stack-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 8px 20px 18px; }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--ink-line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
  .nav-links .btn { margin-top: 10px; width: 100%; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--ink-line); }
  .proof-item:nth-child(-n+2) { border-top: 0; }
  .proof-item:nth-child(odd) { padding-left: 0; }
  .grid-3, .models, .stack-grid, .clients, .steps { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 12px; }
  .cta-row .btn { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
