/* Bitstream Dynamics — website styles. Locked brand: navy #0B1622, teal #27E0C8, Ubuntu. */
:root {
  --navy:      #0B1622;
  --navy-2:    #0F1D2C;
  --panel:     #13273a;
  --teal:      #27E0C8;
  --teal-dim:  #1fb8a6;
  --slate:     #8FA3B0;
  --ink:       #EEF3F6;
  --line:      rgba(143,163,176,0.18);
  --maxw:      1120px;
  --radius:    14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
section { padding: 96px 0; scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.lead { color: var(--slate); font-size: 20px; max-width: 640px; }

/* ---------- header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,22,34,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.nav .brand { display: flex; align-items: center; }
.nav .brand img { height: 50px; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--slate); font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--ink); }
.nav .cta-mini {
  background: var(--teal); color: var(--navy); font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 8px;
}
.nav .cta-mini:hover { background: #4defd9; color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 130px;
  background: var(--navy) center/cover no-repeat;
  background-image:
    linear-gradient(90deg, rgba(11,22,34,0.96) 0%, rgba(11,22,34,0.72) 48%, rgba(11,22,34,0.34) 100%),
    url("assets/hero_bg_dark.png");
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 0 0 22px; max-width: 800px; }
.hero .accent { color: var(--teal); }
.hero .lead { font-size: 21px; max-width: 680px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: 16px; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #4defd9; color: var(--navy); }
.btn-ghost { border: 1px solid var(--slate); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- generic section head ---------- */
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(27px, 3.4vw, 38px); margin: 0 0 14px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card .num { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
.card h3 { font-size: 18px; margin: 12px 0 10px; }
.card p { color: var(--slate); font-size: 16px; margin: 0; }

.alt { background: var(--navy-2); }

/* ---------- product (soft-switching drives) track ---------- */
.card.product { border-top: 3px solid var(--teal); }
.card.product h3 { font-size: 20px; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 999px; padding: 5px 12px;
}
.track-note {
  color: var(--slate); font-size: 15px; margin-top: 26px;
  border-left: 2px solid var(--teal); padding-left: 16px;
}

/* ---------- who / why lists ---------- */
.stack { display: grid; gap: 18px; }
.stack .row {
  border-left: 2px solid var(--teal);
  padding: 4px 0 4px 20px;
}
.stack .row strong { color: var(--ink); }
.stack .row span { color: var(--slate); }

/* ---------- technology figures ---------- */
.figs { display: grid; grid-template-columns: 1fr; gap: 34px; margin-top: 10px; }
.fig {
  background: var(--navy-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.fig img { width: 100%; }
.fig figcaption { color: var(--slate); font-size: 15px; padding: 16px 22px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center; }
.about-grid p { color: var(--slate); }
.about-grid img { border-radius: var(--radius); border: 1px solid var(--line); }
.photo-cap { color: var(--slate); font-size: 12px; margin-top: 10px; font-style: italic; }
.founder { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.founder h3 { font-size: 21px; margin: 0 0 2px; }
.founder .founder-title { color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 12px; }

/* ---------- contact ---------- */
.contact { background: var(--navy-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
form { display: grid; gap: 14px; }
label { font-size: 14px; color: var(--slate); display: grid; gap: 6px; }
input, textarea {
  background: var(--navy); border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; padding: 12px 14px; font: inherit; font-size: 15px; width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }
.contact .meta { color: var(--slate); }
.contact .meta a { font-weight: 600; }

/* ---------- note cards (insights) ---------- */
.note-card { display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, transform .08s ease; }
.note-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.note-card h3 { color: var(--ink); font-size: 19px; margin: 0; }
.note-card p { color: var(--slate); font-size: 15px; margin: 0; flex: 1; }
.note-card .readmore { color: var(--teal); font-weight: 700; font-size: 14px; }

/* ---------- article / reading pages ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 72px 32px 96px; }
.article .eyebrow { margin-bottom: 16px; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 16px; line-height: 1.14; }
.article .byline { color: var(--slate); font-size: 15px; margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article .byline + p { font-size: 20px; line-height: 1.55; color: var(--ink); margin-bottom: 26px; }
.article h2 { font-size: 25px; margin: 42px 0 12px; }
.article p, .article li { color: #C6D2DA; }
.article p { margin: 0 0 18px; }
.article ul { padding-left: 22px; margin: 0 0 18px; }
.article li { margin: 0 0 8px; }
/* text stays a narrow reading column; figures break out wider so detail is legible */
.article figure { width: min(1000px, 92vw); margin: 38px 0 38px 50%; transform: translateX(-50%); }
.article figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.article figcaption { color: var(--slate); font-size: 14px; margin-top: 10px; max-width: 720px; margin-left: auto; margin-right: auto; }
.article .back { display: inline-block; margin-top: 8px; color: var(--teal); font-weight: 700; }
.article .cta-box { margin-top: 46px; padding: 24px 26px; background: var(--navy-2); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); }
.article .cta-box p { margin: 0 0 6px; color: var(--ink); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.foot img { height: 40px; opacity: 0.92; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--slate); font-size: 14px; }
.foot-links a:hover { color: var(--teal); }
.foot-meta { color: var(--slate); font-size: 14px; margin-top: 18px; }
.foot-note { font-size: 13px; margin: 8px 0 0; max-width: 660px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav ul { display: none; }
  .menu-toggle { display: block; }
  .nav ul.open {
    display: flex; flex-direction: column; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--navy-2); border-bottom: 1px solid var(--line); padding: 18px 28px; gap: 18px;
  }
}
@media (max-width: 560px) {
  .grid.cols-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .article { padding: 48px 22px 64px; }
}
