/* ===== SRM GLOBAL TECH — design tokens ===== */
:root {
  --ink-900: #07142b;
  --ink-800: #0b1e3f;
  --ink-700: #122a52;
  --ink-600: #1a365d;     /* primary brand */
  --ink-500: #2f5fb2;
  --ink-400: #4a7bc9;
  --ink-300: #8fb0e1;
  --ink-200: #cfdcf0;
  --ink-100: #e6edf8;
  --ink-050: #f3f6fc;

  --paper: #fbfaf7;       /* warm off-white */
  --paper-2: #f5f3ec;
  --line: #e5e1d6;
  --line-2: #d4cebd;
  --text: #131722;
  --text-soft: #475064;
  --text-faint: #7a839a;

  --amber: #e89028;        /* CTA accent */
  --amber-2: #c9731a;
  --green: #1f8a5b;

  --shadow-sm: 0 1px 0 rgba(11, 30, 63, 0.04), 0 2px 6px rgba(11, 30, 63, 0.04);
  --shadow-md: 0 2px 8px rgba(11, 30, 63, 0.06), 0 12px 28px rgba(11, 30, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 30, 63, 0.18);

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1280px;
  --radius: 4px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Layout ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.row { display: flex; }
.col { display: flex; flex-direction: column; }

/* ===== Type ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; background: var(--amber);
  margin-right: 10px; vertical-align: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-800);
  font-weight: 700;
}
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.3; }
p { margin: 0; color: var(--text-soft); }
.mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink-600); color: white;
  border-color: var(--ink-700);
  box-shadow: 0 1px 0 #fff2 inset, 0 6px 16px -8px var(--ink-600);
}
.btn-primary:hover { background: var(--ink-700); }
.btn-amber {
  background: var(--amber); color: #1c1300;
  border-color: var(--amber-2);
  box-shadow: 0 1px 0 #fff8 inset, 0 8px 16px -10px var(--amber);
}
.btn-amber:hover { background: var(--amber-2); color: white; }
.btn-ghost {
  background: transparent; color: var(--ink-700);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink-600); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-arrow::after {
  content: "→"; font-family: var(--font-mono); font-weight: 400;
  transition: transform .15s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===== Form controls ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  font-family: var(--font-mono);
}
.field input, .field textarea, .field select {
  font: inherit; font-size: 14.5px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px rgba(47,95,178,0.15);
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: 12px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--ink-900);
  color: #cfd8e8;
  font-size: 12.5px;
  border-bottom: 1px solid #00000040;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
}
.topbar a { color: #e8edf6; }
.topbar .links { display: flex; gap: 18px; }
.topbar .pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 #4ade8088; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 #4ade8088; }
  70%  { box-shadow: 0 0 0 8px #4ade8000; }
  100% { box-shadow: 0 0 0 0 #4ade8000; }
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm strong { color: var(--ink-700); font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand .wm small { color: var(--ink-500); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px; font-family: var(--font-mono);}

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  position: relative;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .15s;
}
.nav-link:hover { color: var(--ink-700); }
.nav-link.active { color: var(--ink-800); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 2px; background: var(--amber);
}

/* ===== Hero / sections ===== */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.divider { height: 1px; background: var(--line); }

/* corner-bracket adornment used on hero/banners */
.bracketed { position: relative; }
.bracketed::before, .bracketed::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border-color: var(--ink-600);
}
.bracketed::before {
  top: -8px; left: -8px;
  border-top: 1.5px solid; border-left: 1.5px solid;
}
.bracketed::after {
  bottom: -8px; right: -8px;
  border-bottom: 1.5px solid; border-right: 1.5px solid;
}

/* grid background */
.grid-bg {
  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;
}
.grid-bg-dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-md);
}
.card .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-500); letter-spacing: 0.1em;
  margin-bottom: 12px; display: block;
}

/* Stat tiles */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.stat {
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display); font-size: 38px;
  font-weight: 700; color: var(--ink-700); letter-spacing: -0.03em;
  line-height: 1;
}
.stat .num small { font-size: 18px; color: var(--ink-500); margin-left: 4px; }
.stat .lbl { color: var(--text-soft); font-size: 13.5px; margin-top: 8px; }

/* Dark panel */
.dark {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #d9e2f1;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: white; }
.dark .eyebrow { color: var(--ink-300); }
.dark .eyebrow .dot { background: var(--amber); }
.dark p { color: #aebbd1; }
.dark .card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); color: #d9e2f1; }
.dark .card:hover { border-color: var(--ink-400); }
.dark .card p { color: #aebbd1; }

/* ===== Misc ===== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-soft);
  background: #fff;
}
.tag.green { color: var(--green); border-color: #b7d9c8; background: #effaf3; }
.tag.amber { color: var(--amber-2); border-color: #f1d6ad; background: #fdf5e8; }
.tag.red    { color: #b3261e; border-color: #f0c5c1; background: #fbe9e7; }
.tag.blue   { color: var(--ink-600); border-color: var(--ink-200); background: var(--ink-050); }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 56px 0; }

.kbd {
  display: inline-block; padding: 1px 6px;
  font-family: var(--font-mono); font-size: 11px;
  background: #fff; border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 4px;
  color: var(--text-soft);
}

/* Footer */
.foot {
  background: var(--ink-900);
  color: #aebbd1;
  padding: 64px 0 28px;
  font-size: 13.5px;
}
.foot a:hover { color: white; }
.foot h5 {
  color: white; font-size: 12px; letter-spacing: 0.16em;
  font-family: var(--font-mono); font-weight: 500;
  text-transform: uppercase; margin: 0 0 16px;
}
.foot .cols {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot .bottombar {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid #ffffff15;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-mono); font-size: 11.5px; color: #6f7d96;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
