/* =========================================================
   ITSURYK LTD — design tokens
   Dark tech-industrial. One accent, spent carefully.
   ========================================================= */

:root {
  /* Color */
  --bg: #0a0d12;
  --bg-alt: #0d1117;
  --surface: #121821;
  --surface-2: #171f2b;
  --border: #232c39;
  --border-soft: #1a212c;

  --text: #e9edf3;
  --text-muted: #8d97a8;
  --text-faint: #838da0;

  --accent: #d9922f;
  --accent-strong: #f0a63f;
  --accent-ink: #0a0d12;
  --accent-soft: rgba(217, 146, 47, 0.12);
  --accent-line: rgba(217, 146, 47, 0.35);

  /* Type */
  --f-display: "Sora", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 3px;
  --nav-h: 76px;
}

/* =========================================================
   Reset & base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   Utility
   ========================================================= */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-soft);
}

.section--tight { padding: 64px 0; }
.section--noline { border-bottom: none; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head p { font-size: 1.05rem; }

.mono-num {
  font-family: var(--f-mono);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-strong); }

.btn-full { width: 100%; justify-content: center; }

/* =========================================================
   Header / nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 13, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
}
.logo .lg-it { color: var(--accent); }
.logo .lg-rest { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--accent);
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 28px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links a.is-active::after { display: none; }
  .nav-links.is-open {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(232,237,242,0.06) 1px, transparent 1px) 0 0/34px 34px,
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 78% 8%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { margin-bottom: 0.42em; }
@media (max-width: 560px) {
  .hero-break { display: none; }
  .hero h1 { font-size: clamp(2rem, 1.4rem + 5vw, 2.6rem); }
}
.hero .lede { font-size: 1.12rem; max-width: 46ch; margin-bottom: 2em; }
.hero .cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero .cta-row .text-link { font-family: var(--f-mono); font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color .15s ease, border-color .15s ease; }
.hero .cta-row .text-link:hover { color: var(--accent-strong); border-color: var(--accent-line); }

.hero-graphic { width: 100%; height: auto; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 380px; margin: 0 auto; }
}

/* Page hero (non-home pages) */

.page-hero {
  padding: 68px 0 64px;
  background:
    radial-gradient(circle at 1px 1px, rgba(232,237,242,0.055) 1px, transparent 1px) 0 0/34px 34px,
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .lede { max-width: 60ch; font-size: 1.05rem; }

/* =========================================================
   Cards / grids
   ========================================================= */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (max-width: 880px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

.tile {
  background: var(--surface);
  padding: 34px 28px;
  transition: background 0.15s ease;
}
.tile:hover { background: var(--surface-2); }

.tile .ic {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 20px;
}

.tile h3 { margin-bottom: 0.5em; }
.tile p { font-size: 0.94rem; }

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step .num {
  font-family: var(--f-mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.step p { font-size: 0.92rem; }

/* Service detail rows (services.html) */

.svc-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.svc-row:last-child { border-bottom: none; }
.svc-row .ic-lg {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.svc-row .tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  display: block;
}
.svc-includes { margin-top: 22px; }
.svc-includes li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
}
.svc-includes li:first-child { border-top: none; }
.svc-includes li i { color: var(--accent); font-size: 0.85rem; margin-top: 0.3em; }

@media (max-width: 780px) {
  .svc-row { grid-template-columns: 1fr; gap: 20px; }
}

/* Differentiators (about.html) */

.diff-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
@media (max-width: 780px) { .diff-list { grid-template-columns: 1fr; } }

/* Company fact panel */

.fact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
@media (max-width: 640px) { .fact-panel { grid-template-columns: 1fr; padding: 28px; } }
.fact-panel dt {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.fact-panel dd { margin: 0; font-size: 0.98rem; color: var(--text); }

/* =========================================================
   Pricing
   ========================================================= */

.rate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  margin-bottom: 20px;
}
@media (max-width: 880px) { .rate-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rate-grid { grid-template-columns: 1fr; } }

.rate-card {
  background: var(--surface);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.rate-card .tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.rate-card .price {
  font-family: var(--f-mono);
  font-size: 2.1rem;
  color: var(--accent-strong);
  line-height: 1;
  margin-bottom: 4px;
}
.rate-card .price span {
  font-size: 0.95rem;
  color: var(--text-faint);
  font-weight: 400;
}
.rate-card .unit {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.rate-card p { font-size: 0.9rem; margin-top: auto; }

.pricing-note {
  font-size: 0.9rem;
  color: var(--text-faint);
  border-left: 2px solid var(--accent-line);
  padding-left: 16px;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.98rem;
  padding: 0.85em 1em;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--surface-2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* honeypot — hidden from sighted users and hidden from screen readers,
   but present in the DOM for bots that auto-fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; }

.banner {
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  margin-bottom: 28px;
  border: 1px solid;
}
.banner--ok { background: rgba(79, 209, 197, 0.08); border-color: rgba(79, 209, 197, 0.35); color: #9fe6de; }
.banner--err { background: rgba(224, 90, 90, 0.08); border-color: rgba(224, 90, 90, 0.35); color: #f0a8a8; }

.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 1.2em; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.info-row:first-of-type { border-top: none; padding-top: 0; }
.info-row i { color: var(--accent); font-size: 0.95rem; margin-top: 0.25em; width: 16px; }
.info-row .lbl { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 3px; }
.info-row .val { font-size: 0.94rem; color: var(--text); }
.info-row .val a:hover { color: var(--accent-strong); }

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-alt);
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { max-width: 46ch; margin: 0 auto 2em; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 64px 0 32px;
  background: var(--bg-alt);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-top p { font-size: 0.9rem; max-width: 34ch; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 7px 0;
}
.footer-col a:hover { color: var(--accent-strong); }

/* =========================================================
   Hero graphic (inline SVG hub-and-spoke diagram)
   ========================================================= */

.flow-lines { animation: dashMove 3.4s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -140; } }

.node-pulse { animation: nodePulse 3.4s ease-in-out infinite; }
.node-pulse:nth-of-type(2) { animation-delay: 0.3s; }
@keyframes nodePulse {
  0%, 100% { stroke: var(--border); stroke-opacity: 1; }
  50% { stroke: var(--accent); stroke-opacity: 1; }
}

/* =========================================================
   Reveal on scroll (progressive enhancement only)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}
