/* ============================================================
   MATTHEWS.XYZ — Computer Systems Design & Related Services
   Dark theme — electric lime + violet on near-black charcoal
   ============================================================ */

:root {
  --bg: #0B0E14;
  --bg-soft: #0F141F;
  --surface: #151B2A;
  --surface-2: #1A2234;
  --line: #252E44;
  --text: #E8EAED;
  --muted: #9BA5B7;
  --accent: #C6F63E;
  --accent-2: #7B6CFF;
  --accent-ink: #0B0E14;
  --danger: #FF5C7A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  color: #FFFFFF;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Floating pill navigation ---------- */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  z-index: 1000;
  box-shadow: 0 18px 40px #000000;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.navbar .brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 4px #1a2234, 0 0 18px var(--accent);
}

.navbar .brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background-color: var(--surface-2);
}

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px #000000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
}

/* ---------- Hero — asymmetric two column ---------- */
.hero-section {
  padding: 150px 0 80px;
  background:
    radial-gradient(1000px 500px at 82% -10%, #1b2040 0%, transparent 60%),
    radial-gradient(700px 420px at 12% 110%, #14241a 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--surface);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-grid h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 22px 0 20px;
  letter-spacing: -0.02em;
}

.hero-grid h1 .hl {
  color: var(--accent);
}

.hero-grid h1 .hl2 {
  color: var(--accent-2);
}

.hero-copy {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px #000000;
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background-color: var(--surface-2);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-trust .t-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust .t-item b {
  color: var(--text);
}

/* Console mockup */
.console {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px #000000;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background-color: var(--surface-2);
}

.console-bar .c {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.console-bar .c.r { background-color: #FF5C7A; }
.console-bar .c.y { background-color: #F5C242; }
.console-bar .c.g { background-color: #4ADE80; }

.console-bar .path {
  margin-left: 8px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
}

.console-body {
  padding: 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.8;
}

.console-body .ln {
  display: block;
  white-space: nowrap;
}

.console-body .c-prompt { color: var(--accent); }
.console-body .c-cmd { color: #FFFFFF; }
.console-body .c-ok { color: #4ADE80; }
.console-body .c-dim { color: var(--muted); }
.console-body .c-violet { color: #B3A6FF; }

/* floating chips over console */
.chip {
  position: absolute;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 16px 34px #000000;
}

.chip .val {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
}

.chip .lbl {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-wrap {
  position: relative;
}

.chip-a { top: -26px; right: -18px; }
.chip-b { bottom: -24px; left: -22px; }

/* ---------- Metrics strip ---------- */
.metrics-section {
  padding: 64px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.metric .num .plus {
  color: var(--accent-2);
}

.metric .cap {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Numbered capabilities ---------- */
.capabilities-section {
  padding: 96px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 60px;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

.cap-list {
  display: grid;
  gap: 0;
}

.cap-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.cap-row:first-child {
  border-top: 1px solid var(--line);
}

.cap-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.cap-row h3 {
  font-size: 1.35rem;
}

.cap-row p {
  color: var(--muted);
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cap-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Comparison table ---------- */
.comparison-section {
  padding: 96px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background-color: var(--surface-2);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.compare-table thead th.hl-col {
  background-color: #14201a;
  color: var(--accent);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  color: var(--muted);
  font-weight: 600;
}

.compare-table .no {
  color: #6b7488;
}

.compare-table .yes {
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Statement band ---------- */
.statement-section {
  padding: 110px 0;
  background: linear-gradient(120deg, #10141f 0%, #121a14 60%, #131022 100%);
  text-align: center;
}

.statement-section blockquote {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto;
}

.statement-section blockquote .em {
  color: var(--accent);
}

.statement-section .attrib {
  margin-top: 26px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Process timeline ---------- */
.process-section {
  padding: 96px 0;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.tl-step {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tl-item h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.tl-item p {
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Bento offerings ---------- */
.offerings-section {
  padding: 96px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.bento-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
}

.bento-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.bento-card.big {
  grid-column: span 4;
}

.bento-card.med {
  grid-column: span 2;
}

.bento-card.wide {
  grid-column: span 6;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row .ic {
  color: var(--accent);
  font-size: 1.3rem;
}

.contact-row .lbl {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.contact-row .val {
  font-weight: 700;
  color: #FFFFFF;
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input, .field textarea {
  width: 100%;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-news {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.footer-news-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-news h3 {
  font-size: 1.4rem;
}

.footer-news p {
  color: var(--muted);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .chip-a { right: 8px; }
  .chip-b { left: 8px; }

  .cap-row {
    grid-template-columns: 60px 1fr;
  }
  .cap-row p {
    grid-column: 2;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.big,
  .bento-card.med {
    grid-column: span 6;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    gap: 6px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .cap-row {
    grid-template-columns: 1fr;
  }
  .cap-row p {
    grid-column: 1;
  }
  .tl-item {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding-top: 120px;
  }
}
