/* ============================================================
   AbbStaff — Computer Systems Design & Integration
   Homepage stylesheet
   Palette: midnight ink / coral flame / violet / mint
   ============================================================ */

:root {
  --bg: #0B1220;
  --bg-2: #0E1830;
  --surface: #16213A;
  --surface-2: #1B2947;
  --line: #243350;
  --line-soft: #1D2B47;
  --text: #EEF2FF;
  --muted: #9CA6C9;
  --muted-2: #6E7AA0;
  --accent: #FF5A3C;
  --accent-soft: #FF8A70;
  --accent-2: #8B7BFF;
  --accent-3: #3ED9A8;
  --nav-w: 280px;
}

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

html { 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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Layout shell (sidebar + content) ---------- */

.page-shell { margin-left: var(--nav-w); }

/* ---------- Sidebar navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: linear-gradient(180deg, #0B1220 0%, #0D1730 100%);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 34px 28px 30px;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #0B1220;
  letter-spacing: 0.5px;
}

.brand-text strong {
  display: block;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--text);
}

.brand-text span {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a .nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.nav-links a:hover .nav-dot,
.nav-links a.active .nav-dot {
  background: var(--accent);
  transform: scale(1.3);
}

.nav-cta {
  margin-top: 26px;
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #0B1220;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover { background: var(--accent-soft); transform: translateY(-2px); }

.nav-contact {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.9;
}

.nav-contact a { color: var(--muted); }
.nav-contact a:hover { color: var(--accent); }

/* ---------- Mobile top bar ---------- */

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 150;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0B1220;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-bar .brand-text strong { font-size: 17px; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 2px 0;
  transition: transform 0.2s ease;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #04060C;
  z-index: 180;
}

.nav-overlay.show { display: block; }

/* ---------- Section helpers ---------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 60%;
  height: 140%;
  background: linear-gradient(135deg, #1B2947 0%, #131F3A 100%);
  transform: skewX(-12deg);
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,90,60,0.14) 0%, rgba(139,123,255,0.14) 100%);
  transform: skewX(-12deg) translateX(30%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 110px 48px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 24px;
}

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

.hero-copy > p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--accent); color: #0B1220; }
.btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); }

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted-2);
}

.hero-trust .tick { color: var(--accent-3); font-weight: 700; }

.hero-visual {
  position: relative;
}

.system-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px rgba(4, 6, 12, 0.5);
}

.system-card.head {
  position: relative;
  z-index: 2;
}

.system-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.system-card .card-top strong { font-size: 15px; color: var(--text); }

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-3);
  background: #0E2A24;
  border-radius: 999px;
  padding: 4px 12px;
}

.pill-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-box {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
}

.metric-box .m-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.metric-box .m-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.metric-box .m-value.good { color: var(--accent-3); }

.sys-progress { margin-bottom: 4px; }

.sys-progress .p-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.p-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.p-bar i {
  display: block;
  height: 100%;
  width: 94%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.system-card.back {
  position: absolute;
  left: -34px;
  bottom: -30px;
  width: 72%;
  z-index: 1;
  transform: rotate(4deg);
  padding: 20px;
}

.system-card.back .mini-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.system-card.back .mini-list li:last-child { border-bottom: none; }
.system-card.back .mini-list .ok { color: var(--accent-3); font-weight: 700; }

/* ---------- Stats strip ---------- */

.stats-section {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
}

.stat-num .suffix { color: var(--accent-2); }

.stat-label {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
}

/* ---------- Capabilities (horizontal scroll) ---------- */

.capabilities-section { background: var(--bg); }

.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.cap-card {
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.cap-card:hover { border-color: var(--accent); transform: translateY(-6px); }

.cap-num {
  font-size: 46px;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
  margin-bottom: 18px;
}

.cap-card h3 { font-size: 20px; color: var(--text); margin-bottom: 12px; }
.cap-card p { font-size: 15px; color: var(--muted); }
.cap-card .cap-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ---------- Statement rows (The Difference) ---------- */

.difference-section { background: var(--bg-2); }

.statement-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}

.statement-row + .statement-row { border-top: 1px solid var(--line-soft); }

.statement-row.flip .statement-visual { order: 2; }

.statement-row h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.statement-row .lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 22px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-3);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #0B1220;
  border-bottom: 2px solid #0B1220;
  transform: rotate(-45deg);
}

.statement-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
}

.visual-big {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}

.visual-caption {
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Engagement model (numbered process) ---------- */

.process-section { background: var(--bg); }

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

.process-step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  right: 14px;
  top: 4px;
  font-size: 84px;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
}

.process-step h3 {
  position: relative;
  font-size: 19px;
  color: var(--text);
  margin-bottom: 12px;
  padding-top: 4px;
}

.process-step p { position: relative; font-size: 15px; color: var(--muted); }

/* ---------- Platform pillars (bento) ---------- */

.pillars-section { background: var(--bg-2); }

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

.bento-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 30px;
  transition: border-color 0.25s ease;
}

.bento-item:hover { border-color: var(--accent-2); }

.bento-item.span-3 { grid-column: span 3; }
.bento-item.span-2 { grid-column: span 2; }

.bento-item .b-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
  background: #1E2B4B;
}

.bento-item h3 { font-size: 19px; color: var(--text); margin-bottom: 10px; }
.bento-item p { font-size: 15px; color: var(--muted); }

/* ---------- Compare table ---------- */

.compare-section { background: var(--bg); }

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

.compare-table th,
.compare-table td {
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.compare-table thead th {
  background: var(--surface);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.compare-table thead th.highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0B1220;
}

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

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

.compare-table td.highlight-col { background: var(--surface); }

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

/* ---------- Outcomes ---------- */

.outcomes-section { background: var(--bg-2); }

.outcome-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 30px;
}

.outcome-card .o-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 16px;
}

.outcome-card p {
  font-size: 15px;
  color: var(--muted);
}

.outcome-card p strong { color: var(--text); }

/* ---------- Contact ---------- */

.contact-section { background: var(--bg); }

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

.contact-info h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

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

.contact-details li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
}

.contact-details .c-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-details .c-value { color: var(--text); font-weight: 600; }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; }

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

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

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

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

.form-status { font-size: 14px; color: var(--muted); margin-top: 14px; min-height: 20px; }
.form-status.ok { color: var(--accent-3); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #090E19;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 30px 0;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 15px; }

.footer-brand p { font-size: 14px; color: var(--muted-2); }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 13px; color: var(--muted-2); }

/* ---------- Scroll reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding: 72px 40px 72px; }
  .hero-visual { max-width: 560px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-item.span-3,
  .bento-item.span-2 { grid-column: span 2; }
}

@media (max-width: 980px) {
  .site-nav { transform: translateX(-100%); transition: transform 0.3s ease; }
  .site-nav.open { transform: translateX(0); }
  .page-shell { margin-left: 0; }
  .mobile-bar { display: flex; }
  .container { padding: 0 24px; }
  .statement-row { grid-template-columns: 1fr; gap: 32px; }
  .statement-row.flip .statement-visual { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .outcome-row { grid-template-columns: 1fr; }
  .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-item.span-3,
  .bento-item.span-2 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-inner { padding: 56px 20px 56px; }
  .section { padding: 64px 0; }
}
