/* Azzalinko Technologies — www.azzalinko.tech
   Palette: graphite ink, warm off-white text, one acid-lime signal accent.
   Type: Geist (UI/body), Instrument Serif italic (voice), Geist Mono (labels). */

@font-face { font-family: "Geist"; src: url(/fonts/Geist-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-normal.woff2) format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --ink: #0a0c0f;
  --ink-2: #101318;
  --ink-3: #161a21;
  --line: #232830;
  --line-2: #3a414d;
  --text: #ecebe6;
  --muted: #9ba1ab;
  --faint: #7d838d;
  --signal: #d4f35b;
  --signal-dim: #d4f35b33;
  --danger: #ff6b5b;
  --ok: #7ee2a8;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 22px;
  background: var(--signal); color: var(--ink); border: 1px solid var(--signal); border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px #d4f35b80; }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ── Nav ───────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: #0a0c0fee; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-sub { color: var(--muted); font-weight: 400; margin-left: .35em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 42% 62% at 76% 50%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 42% 62% at 76% 50%, #000 25%, transparent 78%);
  opacity: .55;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-dim); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
h1 { font-size: clamp(38px, 4.9vw, 62px); line-height: 1.04; letter-spacing: -0.045em; }
.h1-line { display: block; white-space: nowrap; }
h1 em { color: var(--signal); font-size: 1.1em; letter-spacing: -0.02em; line-height: .95; }
.lede { margin-top: 28px; max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.topology { margin: 0; }
.topology svg { width: 100%; height: auto; overflow: visible; }
.topology figcaption { margin-top: 14px; font: 400 13px/1.4 var(--mono); color: var(--muted); text-align: center; letter-spacing: .02em; }
.links path, .links use { fill: none; stroke: var(--line-2); stroke-width: 1.3; }
.links.denied use { stroke: #ff6b5b; stroke-opacity: .45; stroke-dasharray: 2 5; }
.deny-x path { stroke: #ff6b5b; stroke-width: 2.4; stroke-linecap: round; }
.links.hot path, .links.hot use { stroke: var(--signal); stroke-opacity: .55; stroke-dasharray: 3 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.node rect { fill: var(--ink-2); stroke: var(--line-2); stroke-width: 1.2; }
.node text { fill: var(--text); font: 500 13px var(--mono); letter-spacing: .1em; text-anchor: middle; dominant-baseline: middle; }
.node.edge rect { stroke: var(--signal); fill: #141a0c; }
.node.edge text { fill: var(--signal); }
.node.ai rect { stroke: #8fd3ff66; }
.node.ext rect { stroke-dasharray: 3 3; }
.node.ext text { fill: var(--muted); }
.policy text { fill: #a3a9b3; font: 400 12.5px var(--mono); letter-spacing: .02em; }
.policy text.deny { fill: #ff8a7d; }
.packets circle { fill: var(--signal); filter: drop-shadow(0 0 4px #d4f35b); }
.packets.blocked circle { fill: var(--danger); filter: drop-shadow(0 0 4px #ff6b5b); }

/* ── Sections ──────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 140px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.label { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.04em; max-width: 18ch; }
h2 em { color: var(--signal); }

/* Services: numbered editorial rows, not a card grid */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 150px minmax(0, .9fr) minmax(0, 1.3fr); gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); transition: background .3s ease; }
.service:hover { background: linear-gradient(90deg, transparent, var(--ink-2) 30%, transparent); }
.svc-num { font: 400 13px/1 var(--mono); color: var(--faint); padding-top: 12px; }
.service:hover .svc-num { color: var(--signal); }
.svc-title h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.svc-for { margin-top: 10px; font-size: 15px; color: var(--muted); }
.svc-body > p { color: #c9cad0; font-size: 16.5px; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 400 12.5px/1 var(--mono); color: #b3b8c0; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; }

/* ── Work / case study ─────────────────────────────── */
.work { background: radial-gradient(ellipse 60% 50% at 80% 30%, #d4f35b0d, transparent 70%), var(--ink); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { border-radius: 15px; box-shadow: 0 0 0 1px #ffffff14, 0 10px 30px -10px #000; }
.app-name { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.app-kind { color: var(--muted); font-size: 14.5px; }
.case-lede { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--text); letter-spacing: -0.015em; margin-bottom: 18px; }
.case-copy > p:not(.case-lede) { color: #c0c2c8; font-size: 16.5px; }
.facts { margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 12.5px/1.6 var(--mono); color: #8d939d; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 15px; color: var(--text); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; position: relative; transition: transform .15s ease; }
a.store:hover { transform: translateY(-2px); }
.store img { height: 50px; width: auto; }
.store-soon img { filter: grayscale(1); opacity: .45; }
.soon { position: absolute; top: -13px; right: -8px; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--muted); font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; }
.text-link { font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link:hover { color: var(--signal); border-color: var(--signal); }

.phones { position: relative; height: clamp(480px, 50vw, 660px); }
.phone {
  position: absolute; margin: 0; width: 44%; aspect-ratio: 390/844; border-radius: 34px; overflow: hidden;
  background: #000; padding: 7px; box-shadow: 0 0 0 1px #ffffff1f, 0 30px 80px -20px #000, 0 0 0 7px #16191e inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.p-mid { left: 28%; top: 0; z-index: 3; }
.p-left { left: 3%; top: 9%; z-index: 2; transform: rotate(-5deg); filter: brightness(.82); }
.p-right { right: 3%; top: 9%; z-index: 1; transform: rotate(5deg); filter: brightness(.82); }

/* ── Contact ───────────────────────────────────────── */
.contact-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy h2 { margin: 18px 0 24px; }
.contact-copy > p { color: var(--muted); max-width: 30em; }
.contact-notes { list-style: none; padding: 0; margin: 28px 0 0; color: var(--faint); font: 400 13px/1.9 var(--mono); }
.contact-notes li::before { content: "— "; color: var(--line-2); }
.contact-notes a { color: var(--muted); }

.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field > span em { font: 400 11px var(--mono); text-transform: none; letter-spacing: 0; color: var(--faint); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--ink); color: var(--text);
  border: 1px solid #4a525f; border-radius: var(--r); font: 400 16px/1.4 var(--sans);
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%239ba1ab' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-dim); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { font-size: 14.5px; color: var(--muted); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.form.sent { border-color: #7ee2a855; }

/* ── Footer ────────────────────────────────────────── */
.footer { padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; color: var(--faint); font-size: 14px; }
.brand-foot { font-size: 15px; color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Reveal on scroll ──────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .h1-line { white-space: normal; }
  h1 { font-size: clamp(38px, 8vw, 62px); }
  .topology { max-width: 520px; width: 100%; justify-self: center; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .service { grid-template-columns: 56px 1fr; gap: 16px 20px; }
  .svc-body { grid-column: 2; }
  .case { grid-template-columns: 1fr; }
  .phones { max-width: 520px; width: 100%; margin: 0 auto; height: clamp(420px, 110vw, 620px); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); cursor: pointer; }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 20px; background: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .brand-sub { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .service { grid-template-columns: 1fr; }
  .svc-num { padding-top: 0; }
  .svc-body { grid-column: auto; }
  .policy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .packets { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* polish pass */
.eyebrow .dot { margin-left: 4px; }  /* keep the halo inside the text column */
@media (max-width: 720px) {
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
