/* BTH Software Solutions: brand tokens from the logo kit */
:root {
  --slate-950: #0e1d25;
  --slate-900: #142a35;
  --slate-800: #1b3846;
  --slate-700: #264d5f; /* logo background */
  --slate-600: #33657c;
  --line: rgba(160, 220, 240, 0.12);
  --line-strong: rgba(160, 220, 240, 0.22);

  --green: #00ff8f;
  --teal: #00d1c7;
  --blue: #00a1ff;
  --grad: linear-gradient(90deg, var(--green), var(--blue));
  --grad-soft: linear-gradient(135deg, rgba(0, 255, 143, 0.14), rgba(0, 161, 255, 0.14));

  --text: #eef6f9;
  --text-muted: #a9c0cb;
  --text-dim: #7894a1;

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--slate-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: rgba(0, 255, 143, 0.3);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8.4vw, 6.4rem);
}

h2 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
}

h3 {
  font-size: 1.65rem;
  line-height: 1.05;
}

p {
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--grad);
  color: var(--slate-950);
  box-shadow: 0 8px 30px -8px rgba(0, 200, 200, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(0, 200, 200, 0.75);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(0, 209, 199, 0.06);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 29, 37, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

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

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-name span {
  color: var(--text-dim);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(14, 29, 37, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav.open {
    background: rgba(14, 29, 37, 0.97);
  }

  .nav-links li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child a {
    border: 0;
    margin-top: 14px;
    text-align: center;
  }
}

/* ---------- Sections ---------- */
section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-alt {
  background: var(--slate-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(130px, 18vw, 190px);
  padding-bottom: clamp(70px, 10vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 161, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(0, 255, 143, 0.1), transparent 60%),
    linear-gradient(180deg, var(--slate-800) 0%, var(--slate-950) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 26px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual .glow {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 199, 0.35), transparent 65%);
  filter: blur(30px);
  animation: pulse 6s ease-in-out infinite;
}

.hero-visual .mark {
  position: relative;
  width: min(100%, 420px);
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(0, 209, 199, 0.35));
}

.orbit {
  position: absolute;
  inset: 4%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.orbit::before {
  top: 12%;
  left: 12%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.orbit::after {
  bottom: 6%;
  right: 22%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ---------- Product cards ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(38, 77, 95, 0.55), rgba(20, 42, 53, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 18px;
  align-content: start;
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.card:hover::after {
  opacity: 1;
}

.card .tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--teal);
}

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

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
}

.icon-box svg {
  width: 26px;
  height: 26px;
  stroke: url(#brandGrad);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.97rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 6px;
  justify-self: start;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 880px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* ---------- Platform split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 22px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
  margin-top: 10px;
}

.feature {
  display: grid;
  gap: 8px;
}

.feature .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.feature .icon-box svg {
  width: 22px;
  height: 22px;
}

.feature h4 {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 650;
}

.feature p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Chat demo window ---------- */
.window {
  background: var(--slate-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 209, 199, 0.05);
  overflow: hidden;
  font-size: 0.92rem;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(38, 77, 95, 0.35);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-600);
}

.window-bar .title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.agents {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.agents::-webkit-scrollbar {
  display: none;
}

.agent-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-size: 0.8rem;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.agent-pill.active {
  color: var(--slate-950);
  background: var(--grad);
  border-color: transparent;
  font-weight: 600;
}

.agent-pill.active .dot {
  background: var(--slate-950);
}

.chat {
  padding: 20px 16px;
  display: grid;
  gap: 14px;
  min-height: 330px;
  align-content: start;
}

.msg {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.5;
  animation: msgIn 0.4s ease both;
}

.msg.user {
  justify-self: end;
  background: var(--slate-700);
  border-bottom-right-radius: 4px;
}

.msg.bot {
  justify-self: start;
  background: rgba(0, 209, 199, 0.07);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.msg .who {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.cite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 6px 0 0;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  background: rgba(0, 255, 143, 0.08);
  border: 1px solid rgba(0, 255, 143, 0.22);
}

.chat-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.chat-foot b {
  color: var(--green);
  font-weight: 500;
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1s infinite;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- AIOS terminal ---------- */
.terminal {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  padding: 20px;
  color: var(--text-muted);
  min-height: 300px;
}

.terminal .p { color: var(--green); }
.terminal .c { color: var(--blue); }
.terminal .ok { color: var(--teal); }
.terminal .dim { color: var(--text-dim); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.pillar {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(38, 77, 95, 0.25);
}

.pillar b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 620px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(38, 77, 95, 0.22);
  display: grid;
  gap: 10px;
  align-content: start;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 1.35rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stack strip ---------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.stack span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.founder-badge {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 209, 199, 0.22), transparent 65%),
    var(--slate-800);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.founder-badge img {
  width: 62%;
}

.founder-badge .initials {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.founder-copy {
  display: grid;
  gap: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.stat {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .founder {
    grid-template-columns: 1fr;
  }

  .founder-badge {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% 100%, rgba(0, 161, 255, 0.18), transparent 70%),
    radial-gradient(600px 300px at 50% 0%, rgba(0, 255, 143, 0.1), transparent 70%),
    var(--slate-800);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta .lead {
  margin: 0 auto;
}

.cta .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--slate-950);
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

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

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

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

.slogan {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
