/* Color/scale tokens now come from the shared theme.css (light + dark). The
   names below (--red, --black, --ink, --gray, --light, --line, --maxw) are kept
   as compatibility aliases there, so the rules in this file are unchanged. */

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--red);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header img.logo { height: 46px; width: auto; display: block; }
.nav a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-left: 28px;
  letter-spacing: .3px;
}
.nav a:hover { color: var(--red); text-decoration: none; }
.nav a.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
}
.nav a.nav-cta:hover { background: var(--brand-hover); color: #fff; }
.site-header .nav { display: flex; align-items: center; flex-wrap: wrap; }
.nav [data-theme-toggle] { margin-left: 22px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #15151a 0%, #0e0e10 100%);
  color: #fff;
  padding: 84px 0 92px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 720px;
}
.hero h1 .accent { color: var(--red); }
.hero .eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.hero-product h1 { max-width: 780px; }
.hero .hero-meta {
  margin-top: 30px; color: #8c8c95; font-size: 14px; letter-spacing: .2px;
}
.hero p.lead {
  margin-top: 20px;
  font-size: 19px;
  color: #c9c9cf;
  max-width: 640px;
}
.hero .tagline {
  margin-top: 28px;
  font-style: italic;
  color: #8c8c95;
  font-size: 15px;
}
.btns { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-ghost { border: 1px solid #44444c; color: #fff; }
.btn-ghost:hover { border-color: var(--red); color: #fff; text-decoration: none; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.4px; margin-top: 8px; }
.section-intro { margin-top: 14px; max-width: 680px; color: var(--gray); font-size: 17px; }

/* Services grid */
.grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card .ico {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(206,17,38,.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 2; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--gray); font-size: 15px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-grid p { color: var(--gray); font-size: 17px; margin-top: 16px; }
.about-grid p:first-child { margin-top: 0; }
.stat-box { background: var(--black); color: #fff; border-radius: 12px; padding: 34px; text-align: center; }
.stat-box .num { font-size: 46px; font-weight: 800; color: var(--red); line-height: 1; }
.stat-box .label { margin-top: 8px; color: #c9c9cf; font-size: 15px; }
.stat-box hr { border: none; border-top: 1px solid #2a2a30; margin: 24px 0; }

/* Contact strip */
.contact-strip { background: var(--black); color: #fff; text-align: center; }
.contact-strip h2 { color: #fff; }
.contact-strip p { color: #c9c9cf; margin-top: 14px; font-size: 17px; }
.contact-methods { margin-top: 30px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.contact-methods .item { font-size: 16px; }
.contact-methods .item span { display: block; color: #8c8c95; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-methods .item a { color: #fff; font-weight: 700; }
.contact-methods .item a:hover { color: var(--red); }

/* Support page */
.support-hero { background: var(--black); color: #fff; padding: 64px 0; border-bottom: 3px solid var(--red); }
.support-hero h1 { font-size: 36px; font-weight: 800; }
.support-hero p { margin-top: 12px; color: #c9c9cf; max-width: 620px; font-size: 17px; }
.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.support-card { border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.support-card h3 { font-size: var(--text-xl); font-weight: 700; }
.support-card p { color: var(--gray); margin-top: 8px; font-size: 15px; }
.support-card .big { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 14px; display: block; }
.hours { margin-top: 14px; color: var(--gray); font-size: 15px; }

/* How it works — steps */
.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--gray); font-size: 15px; }

/* OctoHub section + flow infographic */
.octohub {
  background: linear-gradient(180deg, #15151a 0%, #0e0e10 100%);
  color: #fff;
}
.octohub h2 { color: #fff; }
.octohub .lead2 {
  margin-top: 14px; max-width: 700px; color: #c9c9cf; font-size: 17px;
}

.flow {
  margin-top: 52px;
  display: flex; align-items: stretch; justify-content: center; gap: 10px;
}
.flow-stage {
  flex: 1 1 0; min-width: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid #2a2a30;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.flow-stage.hub {
  border-color: var(--red);
  background: rgba(206,17,38,.08);
  box-shadow: 0 0 0 1px rgba(206,17,38,.25), 0 14px 40px rgba(206,17,38,.12);
}
.flow-h { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.flow-stage.hub .flow-h { color: var(--red); font-size: 22px; }
.flow-sub { margin-top: auto; padding-top: 14px; color: #8c8c95; font-size: 13px; }

.device-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px;
  margin: 18px 0 6px;
}
.dev { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #c9c9cf; font-size: 12px; }
.dev svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.8; }

.hub-ico { margin: 18px 0 6px; }
.hub-ico svg {
  width: 96px; height: auto; stroke: var(--red); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.hub-ico svg .led { fill: var(--red); stroke: none; }

.cloud-ico { margin: 16px 0 6px; }
.cloud-ico svg { width: 64px; height: 64px; stroke: #fff; fill: none; stroke-width: 1.5; }

.flow-arrow { flex: 0 0 46px; align-self: center; }
.flow-arrow svg { width: 46px; height: 24px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-arrow svg path.line { stroke-dasharray: 5 5; animation: flowdash 1s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -10; } }

.octohub-cta { margin-top: 40px; }
@media (prefers-reduced-motion: reduce) {
  .flow-arrow svg path.line { animation: none; }
}

/* Trust row (for business) */
.trust-row {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.trust-item .trust-h { font-weight: 800; font-size: 16px; color: var(--ink); }
.trust-item p { margin-top: 8px; color: var(--gray); font-size: 14px; }

/* Secondary services */
.svc-list {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px;
}
.svc { padding-left: 18px; border-left: 3px solid var(--red); }
.svc h3 { font-size: 16px; font-weight: 700; }
.svc p { margin-top: 6px; color: var(--gray); font-size: 14px; }

/* History timeline */
.timeline { list-style: none; position: relative; margin-top: 12px; }
.tl-item { position: relative; padding: 0 0 32px 88px; }
.tl-item::before {
  content: ""; position: absolute; left: 63px; top: 12px; bottom: 0;
  width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-item::after {
  content: ""; position: absolute; left: 57px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red);
}
.tl-now::after { background: var(--red); box-shadow: 0 0 0 4px rgba(206,17,38,.15); }
.tl-year {
  position: absolute; left: 0; top: 2px; width: 48px; text-align: right;
  font-weight: 800; font-size: 18px; color: var(--red);
}
.tl-body h3 { font-size: 18px; font-weight: 700; }
.tl-body p { margin-top: 6px; color: var(--gray); font-size: 15.5px; }

/* Structure note */
.structure-note {
  margin-top: 24px; background: var(--light);
  border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px;
}
.structure-note h2 { margin-top: 6px; }
.structure-note p { color: var(--gray); font-size: 16px; margin-top: 12px; }

/* Ghost button on light backgrounds */
.btn-ghost-dark { border: 1px solid var(--line); color: var(--ink); margin-left: 12px; }
.btn-ghost-dark:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* Footer */
.site-footer { background: #0a0a0c; color: #8c8c95; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer img { height: 30px; opacity: .9; }
.site-footer a { color: #b9b9c0; }
.site-footer .legal { color: #6a6a72; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .support-cards { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; gap: 6px; }
  .flow-stage { max-width: 420px; width: 100%; margin: 0 auto; }
  .flow-sub { margin-top: 14px; }
  .flow-arrow { transform: rotate(90deg); margin: 2px auto; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 33px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .nav { display: flex; flex-wrap: wrap; gap: 6px 0; justify-content: flex-end; }
  .nav a { margin-left: 16px; font-size: 14px; }
  .site-header img.logo { height: 38px; }
}
