/* ============================================================
   Cousin Tytus llc — Computer Systems Design and Integration
   Theme: DARK near-black + PLASMA-MAGENTA circuit-board system
   ============================================================ */

:root {
  --bg: #0B0E14;
  --surface: #131722;
  --surface-inner: #1A1F2E;
  --hairline: #232A3A;
  --sep: #3A4255;
  --trace: #2A3144;
  --grid-line: #171C28;
  --magenta: #D6336C;
  --magenta-label: #4A1026;
  --heading: #F2F4F8;
  --text: #C6CCD6;
  --muted: #A6ADBB;
  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0B0E14;
  color: #C6CCD6;
  font-size: 16px;
  line-height: 1.7;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ============ Header / Crumb-trail nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0B0E14;
  border-bottom: 1px solid #232A3A;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px -18px #0B0E14;
}

.crumb-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-chip {
  width: 26px;
  height: 26px;
  background-color: #D6336C;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-node {
  width: 8px;
  height: 8px;
  background-color: #F2F4F8;
  border-radius: 50%;
}

.brand-word {
  color: #F2F4F8;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.breadcrumbs a {
  color: #A6ADBB;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding-bottom: 3px;
}

.breadcrumbs a:hover {
  color: #F2F4F8;
  border-bottom: 2px solid #D6336C;
  padding-bottom: 1px;
}

.breadcrumbs .sep {
  color: #3A4255;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  background: #131722;
  border: 1px solid #3A4255;
  color: #F2F4F8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle:hover {
  border-color: #D6336C;
  color: #D6336C;
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background-color: #D6336C;
  color: #0B0E14;
  border: 1px solid #D6336C;
}

.btn-primary:hover {
  background-color: #E14A7F;
  border-color: #E14A7F;
}

.btn-secondary {
  background-color: transparent;
  color: #F2F4F8;
  border: 1px solid #F2F4F8;
}

.btn-secondary:hover {
  background-color: #131722;
  border-color: #D6336C;
}

/* ============ Typographic stat hero ============ */

.stat-hero {
  background-color: #0B0E14;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 64px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 47px, #171C28 47px, #171C28 48px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 47px, #171C28 47px, #171C28 48px);
  background-size: 48px 48px;
}

.circuit-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #D6336C;
  z-index: 1;
}

.circuit-node-1 { top: 16%; left: 9%; }
.circuit-node-2 { top: 32%; right: 12%; }
.circuit-node-3 { top: 10%; left: 46%; }
.circuit-node-4 { bottom: 24%; left: 28%; }
.circuit-node-5 { bottom: 12%; right: 32%; }
.circuit-node-6 { top: 48%; left: 76%; }

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow-chip {
  display: inline-block;
  background-color: #D6336C;
  color: #0B0E14;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
}

.hero-title {
  color: #F2F4F8;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 30px 0 24px;
}

.hero-title .accent {
  color: #D6336C;
}

.hero-sub {
  color: #C6CCD6;
  font-size: 18px;
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 36px;
}

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

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 68px;
  border-top: 1px solid #2A3144;
  border-bottom: 1px solid #2A3144;
}

.stat-cell {
  padding: 30px 22px;
  border-right: 1px solid #2A3144;
}

.stat-cell:first-child {
  border-left: 1px solid #2A3144;
}

.stat-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  color: #D6336C;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A6ADBB;
  font-weight: 700;
}

/* ============ Duo panels ============ */

.duo-panels {
  background-color: #0B0E14;
  padding: 96px 24px 72px;
  border-top: 1px solid #232A3A;
}

.duo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
}

.duo-left {
  position: sticky;
  top: 90px;
  align-self: start;
}

.node-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.node-square {
  width: 10px;
  height: 10px;
  background-color: #D6336C;
  flex: 0 0 auto;
}

.node-eyebrow .label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A6ADBB;
  font-weight: 700;
}

.duo-left h2 {
  color: #F2F4F8;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.duo-left > p {
  color: #C6CCD6;
  margin-bottom: 18px;
}

.tag-list {
  list-style: none;
  margin-top: 8px;
}

.tag-list li {
  padding: 15px 0;
  border-bottom: 1px solid #232A3A;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #A6ADBB;
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.node-dot {
  width: 6px;
  height: 6px;
  background-color: #D6336C;
  border-radius: 50%;
  flex: 0 0 auto;
}

.duo-right {
  display: flex;
  flex-direction: column;
}

.duo-block {
  padding: 40px 0 48px;
  border-bottom: 1px solid #232A3A;
}

.duo-block:last-child {
  border-bottom: none;
}

.circuit-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.circuit-marker .node-square {
  width: 8px;
  height: 8px;
}

.trace-line {
  height: 1px;
  flex: 0 0 64px;
  background-color: #2A3144;
}

.duo-block h3 {
  color: #F2F4F8;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.duo-block p {
  color: #C6CCD6;
  margin-bottom: 16px;
}

.mini-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 20px;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #A6ADBB;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============ Metric band ============ */

.metric-band {
  background-color: #D6336C;
  padding: 74px 24px;
}

.metric-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
  text-align: center;
  padding: 16px 14px;
  border-right: 1px solid #0B0E14;
}

.metric-cell:last-child {
  border-right: none;
}

.metric-num {
  display: block;
  font-size: 50px;
  font-weight: 800;
  color: #0B0E14;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4A1026;
  font-weight: 700;
}

/* ============ Statement band ============ */

.statement-band {
  background-color: #0B0E14;
  padding: 96px 24px;
  border-top: 1px solid #232A3A;
}

.statement-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.statement-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background-color: #D6336C;
}

.statement-text {
  color: #F2F4F8;
  font-size: 27px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.statement-text em {
  color: #D6336C;
  font-style: normal;
}

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

.cta-band {
  background-color: #131722;
  padding: 84px 24px;
  border-top: 1px solid #232A3A;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  color: #F2F4F8;
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.cta-inner p {
  color: #C6CCD6;
  font-size: 17px;
  margin-bottom: 32px;
}

/* ============ Link-row footer ============ */

.link-row-footer {
  background-color: #0B0E14;
  border-top: 1px solid #232A3A;
  padding: 46px 24px 56px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

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

.footer-links .sep {
  color: #3A4255;
}

.footer-links a {
  color: #A6ADBB;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.footer-links a:hover {
  color: #F2F4F8;
  text-decoration: underline;
  text-decoration-color: #D6336C;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-legal {
  color: #A6ADBB;
  font-size: 13px;
  line-height: 1.9;
}

.footer-legal a {
  color: #A6ADBB;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #F2F4F8;
  text-decoration: underline;
  text-decoration-color: #D6336C;
}

/* ============ Secondary page hero ============ */

.page-hero {
  background-color: #0B0E14;
  position: relative;
  overflow: hidden;
  padding: 76px 24px 60px;
  border-bottom: 1px solid #232A3A;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 47px, #171C28 47px, #171C28 48px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 47px, #171C28 47px, #171C28 48px);
  background-size: 48px 48px;
}

.page-hero .hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #F2F4F8;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  margin: 26px 0 20px;
  max-width: 20ch;
}

.page-hero .lede {
  color: #C6CCD6;
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
}

/* ============ Services page ============ */

.services-list {
  background-color: #0B0E14;
  padding: 40px 24px 64px;
}

.services-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.service-item {
  padding: 44px 0;
  border-bottom: 1px solid #232A3A;
}

.service-item:last-child {
  border-bottom: none;
}

.service-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}

.service-num {
  color: #D6336C;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.service-item h2 {
  color: #F2F4F8;
  font-size: 27px;
  line-height: 1.25;
}

.service-item p {
  color: #C6CCD6;
  max-width: 860px;
  margin-top: 12px;
}

.service-item p + p {
  margin-top: 12px;
}

/* ============ Process section ============ */

.process-section {
  background-color: #131722;
  padding: 84px 24px;
  border-top: 1px solid #232A3A;
}

.process-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.process-inner h2 {
  color: #F2F4F8;
  font-size: 34px;
  margin-bottom: 10px;
}

.process-inner > p {
  color: #C6CCD6;
  max-width: 720px;
  margin-bottom: 8px;
}

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

.process-step {
  border-top: 3px solid #D6336C;
  padding-top: 20px;
}

.step-num {
  color: #D6336C;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.process-step h3 {
  color: #F2F4F8;
  font-size: 20px;
  margin: 10px 0;
}

.process-step p {
  color: #C6CCD6;
  font-size: 15px;
}

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

.contact-section {
  background-color: #0B0E14;
  padding: 76px 24px;
}

.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.contact-form-panel {
  background-color: #131722;
  border: 1px solid #232A3A;
  padding: 38px;
}

.contact-form-panel h2 {
  color: #F2F4F8;
  font-size: 28px;
  margin-bottom: 12px;
}

.panel-intro {
  color: #C6CCD6;
  margin-bottom: 26px;
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: block;
  color: #A6ADBB;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background-color: #1A1F2E;
  border: 1px solid #3A4255;
  color: #F2F4F8;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #D6336C;
}

.form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  color: #C6CCD6;
  font-size: 14px;
  line-height: 1.6;
}

.contact-info-panel h2 {
  color: #F2F4F8;
  font-size: 28px;
  margin-bottom: 22px;
}

.info-block {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #232A3A;
}

.info-block:last-child {
  border-bottom: none;
}

.info-block h3 {
  color: #F2F4F8;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.info-block p,
.info-block a {
  color: #C6CCD6;
  text-decoration: none;
  font-size: 15px;
}

.info-block a:hover {
  color: #F2F4F8;
  text-decoration: underline;
  text-decoration-color: #D6336C;
}

/* ============ FAQ accordion ============ */

.faq-section {
  background-color: #0B0E14;
  padding: 80px 24px 88px;
  border-top: 1px solid #232A3A;
}

.faq-inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq-inner h2 {
  color: #F2F4F8;
  font-size: 32px;
  margin-bottom: 34px;
  text-align: center;
}

.faq-item {
  background-color: #131722;
  border: 1px solid #232A3A;
  margin-bottom: 14px;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #F2F4F8;
  font-size: 16px;
  font-weight: 700;
  padding: 19px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-q::after {
  content: "+";
  color: #D6336C;
  font-size: 24px;
  font-weight: 700;
  flex: 0 0 auto;
}

.faq-item.open .faq-q::after {
  content: "-";
}

.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  color: #C6CCD6;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 22px 22px;
}

.faq-a p {
  color: #C6CCD6;
}

/* ============ Scroll reveal ============ */

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

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

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .hero-title {
    font-size: 42px;
  }

  .duo-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .duo-left {
    position: static;
  }

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

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

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

  .stat-cell {
    border-bottom: 1px solid #2A3144;
  }

  .metric-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .metric-cell {
    border-bottom: 1px solid #0B0E14;
  }

  .page-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 720px) {
  .crumb-nav {
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .breadcrumbs {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0 6px;
    border-top: 1px solid #232A3A;
    margin-top: 10px;
  }

  .breadcrumbs .sep {
    display: none;
  }

  .breadcrumbs.open {
    display: flex;
  }

  .breadcrumbs a {
    font-size: 16px;
    padding-bottom: 0;
  }

  .breadcrumbs a:hover {
    border-bottom: none;
    color: #D6336C;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-num {
    font-size: 36px;
  }

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

  .contact-form-panel {
    padding: 26px;
  }

  .statement-text {
    font-size: 20px;
  }

  .cta-inner h2 {
    font-size: 28px;
  }
}
