/* ============================================================
   SCUTI SYSTEMS LLC — Design Tokens
   ============================================================ */
:root {
  /* Colors */
  --bg-dark: #060a14;
  --bg-dark-2: #0b1220;
  --bg-panel: #0f1830;
  --navy: #23225a;
  --lime: #8cc63f;
  --teal: #0ea5a0;
  --gradient: linear-gradient(135deg, #8cc63f 0%, #3fae72 45%, #0ea5a0 100%);
  --surface: #f4f6f8;
  --surface-2: #ffffff;
  --ink: #12162a;
  --ink-soft: #4b5468;
  --line-soft: rgba(140, 198, 63, 0.18);
  --muted-on-dark: #93a0b8;
  --white: #ffffff;

  /* Type */
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --max-w: 1180px;
  --radius: 10px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

p { line-height: 1.65; margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #08130d;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(14, 165, 160, 0.55); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(18,22,42,0.2);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--teal); color: var(--teal); }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 10, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted-on-dark);
  margin-top: 2px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient);
}
.nav-cta { display: flex; align-items: center; gap: 24px; white-space: nowrap; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--muted-on-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--gradient);
  color: #08130d;
  font-weight: 600;
}

.nav-mobile-only { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); }

/* ============================================================
   Trace signature element (fiber / data trace motif)
   ============================================================ */
.trace-divider {
  width: 100%;
  height: 64px;
  display: block;
  margin: 0;
}
.trace-line {
  fill: none;
  stroke: url(#traceGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.55;
  animation: traceFlow 6s linear infinite;
}
@keyframes traceFlow {
  to { stroke-dashoffset: -180; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(120% 160% at 15% -10%, #0e2233 0%, var(--bg-dark) 55%), var(--bg-dark);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 70% at 30% 30%, black, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  margin-top: 18px;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--muted-on-dark);
  max-width: 560px;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  font-weight: 600;
}
.hero-stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 4px;
}

/* subpage hero (shorter) */
.page-hero {
  background: radial-gradient(120% 160% at 85% -10%, #0e2233 0%, var(--bg-dark) 55%), var(--bg-dark);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); color: var(--white); margin-top: 16px; }
.page-hero p.lead { margin-top: 16px; color: var(--muted-on-dark); font-size: 17px; max-width: 620px; }

/* ============================================================
   Sections (generic)
   ============================================================ */
section { padding: 96px 0; }
.section-dark { background: var(--bg-dark-2); color: var(--white); }
.section-panel { background: var(--bg-panel); color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 16px; }
.section-dark .section-head p, .section-panel .section-head p { color: var(--muted-on-dark); margin-top: 16px; }
section:not(.section-dark):not(.section-panel) .section-head p { color: var(--ink-soft); margin-top: 16px; }

/* ============================================================
   Service cards
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(18,22,42,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(14, 165, 160, 0.35);
  border-color: var(--line-soft);
}
.service-card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card .icon-badge svg { width: 24px; height: 24px; stroke: #08130d; }
.service-card h3 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
}
.service-card p { color: var(--ink-soft); font-size: 14.5px; }
.service-card ul { margin-top: 16px; }
.service-card ul li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--teal);
}
.service-card .tag {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
}

/* dark variant service card (for services page detail blocks) */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.service-detail:first-of-type { border-top: none; padding-top: 0; }
.service-detail.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.service-detail-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.1em;
}
.service-detail h3 {
  font-size: 28px;
  color: var(--white);
  margin-top: 12px;
}
.service-detail p.desc {
  color: var(--muted-on-dark);
  margin-top: 16px;
  font-size: 15.5px;
}
.service-detail ul { margin-top: 22px; display: grid; gap: 12px; }
.service-detail ul li {
  font-size: 14.5px;
  color: #d3d9e6;
  padding-left: 22px;
  position: relative;
}
.service-detail ul li::before {
  content: "▸";
  position: absolute;
  left: 0; top: -1px;
  color: var(--lime);
  font-size: 13px;
}

/* ============================================================
   Support matrix table
   ============================================================ */
.matrix-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(18,22,42,0.1); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
table.matrix th, table.matrix td { padding: 18px 22px; text-align: left; }
table.matrix thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(18,22,42,0.03);
  border-bottom: 1px solid rgba(18,22,42,0.1);
}
table.matrix tbody td { color: var(--ink-soft); border-bottom: 1px solid rgba(18,22,42,0.08); background: var(--surface-2); }
table.matrix tbody td:first-child { color: var(--ink); font-weight: 600; font-family: var(--font-display); }
table.matrix tbody tr:last-child td { border-bottom: none; }

/* dark-section variant (used when .matrix-wrap sits inside .section-dark/.section-panel) */
.section-dark .matrix-wrap, .section-panel .matrix-wrap { border-color: rgba(255,255,255,0.08); }
.section-dark table.matrix thead th, .section-panel table.matrix thead th {
  background: rgba(255,255,255,0.03);
  border-bottom-color: rgba(255,255,255,0.1);
}
.section-dark table.matrix tbody td, .section-panel table.matrix tbody td {
  color: #cfd6e4;
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.06);
}
.section-dark table.matrix tbody td:first-child, .section-panel table.matrix tbody td:first-child { color: var(--white); }

/* ============================================================
   Testimonial / marketing quote blocks
   ============================================================ */
.copy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.copy-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 30px 26px;
  border-left: 3px solid var(--teal);
}
.copy-card .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.copy-card h4 { font-size: 17px; margin-top: 12px; color: var(--ink); }
.copy-card p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--bg-dark);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); color: var(--white); max-width: 520px; }
.cta-band p { color: var(--muted-on-dark); margin-top: 12px; max-width: 480px; }

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  background: var(--bg-dark);
  color: var(--muted-on-dark);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 34px; }
.footer-brand-text { font-family: var(--font-display); color: var(--white); font-weight: 700; font-size: 17px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   About page specific
   ============================================================ */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.value-card { padding: 28px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid rgba(18,22,42,0.06); }
.value-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--teal); }
.value-card h4 { margin-top: 10px; font-size: 17px; }
.value-card p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 40px;
}
.contact-card h3 { font-size: 20px; color: var(--ink); }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(18,22,42,0.08);
}
.contact-row:first-of-type { border-top: none; margin-top: 24px; padding-top: 0; }
.contact-row .icon-badge {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .icon-badge svg { width: 18px; height: 18px; stroke: #08130d; }
.contact-row .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-row .value { font-size: 16px; margin-top: 4px; font-weight: 600; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid rgba(18,22,42,0.15);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--surface);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   Utility
   ============================================================ */
.mono { font-family: var(--font-mono); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .service-grid, .copy-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .about-block, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
  .service-detail.reverse .service-detail-media { order: 0; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
}

@media (max-width: 1020px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px 32px;
    gap: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary, .nav-cta .btn-outline { display: none; }
  .nav-mobile-only { display: inline-flex; }
}

@media (max-width: 460px) {
  .nav-logo-text span { display: none; }
}

@media (max-width: 720px) {
  .service-grid, .copy-grid, .value-grid, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .trace-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Scroll reveal + mobile nav open state
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

