/* James Networks — electronic steampunk network front site */

:root {
  --bg: #0a0c10;
  --bg-elevated: #12161c;
  --bg-soft: #1a1510;
  --surface: rgba(242, 193, 78, 0.05);
  --surface-strong: rgba(46, 196, 182, 0.08);
  --border: rgba(196, 149, 78, 0.22);
  --border-strong: rgba(242, 193, 78, 0.38);
  --text: #f3ebe0;
  --text-muted: #b8a894;
  --text-soft: #7d7264;
  --accent: #2ec4b6;
  --accent-strong: #1a9e92;
  --accent-dim: rgba(46, 196, 182, 0.14);
  --gold: #f2c14e;
  --copper: #c4783a;
  --brass: #d4a84b;
  --iron: #1c1f26;
  --success: #3dcf8e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --max: 1120px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.96) 45%, rgba(10, 12, 16, 0.98) 100%),
    radial-gradient(1000px 500px at 90% -5%, rgba(46, 196, 182, 0.08), transparent 55%),
    radial-gradient(800px 480px at -5% 30%, rgba(196, 120, 58, 0.06), transparent 50%),
    url("assets/bg-steampunk.jpg");
  background-size: auto, auto, auto, cover;
  background-attachment: fixed, fixed, fixed, fixed;
  background-position: center;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #7dd3fc;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04101c;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top promo — Cipher Ladder */
.top-promo {
  background: linear-gradient(90deg, rgba(46, 196, 182, 0.16), rgba(242, 193, 78, 0.14), rgba(110, 168, 255, 0.14));
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.top-promo-inner {
  padding: 0.45rem 1rem;
}

.top-promo-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass, #f2c14e);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

.top-promo-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 16, 0.82);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(242, 193, 78, 0.45),
    0 0 18px rgba(46, 196, 182, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  background: #0b1220;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 650;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brass), var(--gold) 45%, #ffe09a);
  color: #1a1206 !important;
  box-shadow:
    0 10px 28px rgba(242, 193, 78, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(242, 193, 78, 0.5);
}

.btn-primary:hover {
  color: #1a1206 !important;
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--border-strong);
  color: var(--text) !important;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text) !important;
  box-shadow: 0 0 20px rgba(46, 196, 182, 0.2);
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(10, 12, 16, 0.96) 0%, rgba(10, 12, 16, 0.88) 42%, rgba(10, 12, 16, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.35), rgba(10, 12, 16, 0.92)),
    url("assets/hero-steampunk.jpg") center / cover no-repeat;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: auto auto -20% 40%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(242, 193, 78, 0.35);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.accent-text {
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold), #ffe6a0 50%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.lead.tight {
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.hero-panel,
.about-panel {
  background: linear-gradient(165deg, rgba(28, 24, 18, 0.9), rgba(12, 14, 18, 0.94));
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(242, 193, 78, 0.08);
}

.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 40px rgba(242, 193, 78, 0.12);
  min-height: 280px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, 0.55));
  pointer-events: none;
}

.viz-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 0 1.25rem;
}

.viz-frame img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.viz-frame.tall img {
  height: 200px;
}

.viz-frame.banner {
  margin: 0 0 1.5rem;
}

.viz-frame.banner img {
  height: min(22vw, 180px);
  object-position: center;
}

.section-visual-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

.panel-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}

.hero-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 600;
}

.hero-panel h2 em {
  font-style: italic;
  color: var(--accent);
}

.hero-panel p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.panel-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.92), rgba(10, 12, 16, 0.96)),
    url("assets/section-alt-bg.jpg") center / cover no-repeat;
  border-block: 1px solid var(--border);
}

.section-alt > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.about-grid h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1.15rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.apps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-lg {
  margin-top: 1.25rem;
}

.card,
.app-card {
  background:
    linear-gradient(165deg, rgba(28, 22, 14, 0.72), rgba(12, 14, 18, 0.78));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(242, 193, 78, 0.06);
}

.card:hover,
.app-card:hover {
  border-color: var(--border-strong);
  background:
    linear-gradient(165deg, rgba(40, 30, 16, 0.8), rgba(14, 18, 22, 0.85));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(46, 196, 182, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(242, 193, 78, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.35);
  box-shadow: 0 0 12px rgba(46, 196, 182, 0.15);
}

.card h3,
.app-card h3,
.feature-copy h3,
.nested-card h4,
.about-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.card p,
.app-card p,
.feature-copy > p,
.nested-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.card-placeholder,
.app-placeholder {
  border-style: dashed;
  opacity: 0.92;
}

.tag {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.28);
}

.tag-pwa {
  color: #9ff5ea;
  background: rgba(46, 196, 182, 0.12);
  border-color: rgba(46, 196, 182, 0.32);
}

.status-pill {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
}

/* Feature venture */
.feature-card {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.1), transparent 42%),
    linear-gradient(200deg, rgba(46, 196, 182, 0.08), transparent 55%),
    rgba(14, 16, 20, 0.78);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(242, 193, 78, 0.05);
}

/* Emphasized venture (e.g. NetNudge) */
.feature-card.feature-highlight {
  border-color: rgba(242, 193, 78, 0.55);
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.18), transparent 45%),
    linear-gradient(200deg, rgba(46, 196, 182, 0.12), transparent 58%),
    rgba(16, 14, 12, 0.88);
  box-shadow:
    0 0 40px rgba(242, 193, 78, 0.14),
    var(--shadow),
    inset 0 0 0 1px rgba(242, 193, 78, 0.12);
  position: relative;
}

.feature-card.feature-highlight::before {
  content: "Highlighted";
  position: absolute;
  top: -0.65rem;
  left: 1.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold), var(--brass));
}

.feature-bullets {
  margin: 1rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.system-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
}

.system-chips span {
  display: inline-block;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 149, 78, 0.22);
  letter-spacing: 0.01em;
}

.feature-bullets li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.feature-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.aside-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  font-weight: 600;
}

.nested-card {
  flex: 1;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.nested-card h4 {
  font-size: 1.1rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.placeholder-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ── League Night billiards (host-location pool hall) ── */
.htb {
  --htb-felt: #0f4a32;
  --htb-felt-bright: #1a7a52;
  --htb-felt-deep: #0a2e20;
  --htb-wood: #2a1810;
  --htb-wood-mid: #3d2418;
  --htb-amber: #e8a84a;
  --htb-amber-soft: rgba(232, 168, 74, 0.18);
  --htb-ivory: #f5f0e6;
  --htb-cream: #d9cfc0;
  --htb-muted: #b8a994;
  --htb-soft: #8a7a68;
  --htb-surface: rgba(245, 240, 230, 0.05);
  --htb-border: rgba(232, 168, 74, 0.16);
  --htb-border-strong: rgba(232, 168, 74, 0.35);
  --htb-ball-red: #c43c3c;
  position: relative;
  overflow: hidden;
  color: var(--htb-ivory);
  background:
    linear-gradient(180deg, rgba(18, 12, 10, 0.94) 0%, rgba(12, 22, 18, 0.96) 55%, rgba(10, 28, 20, 0.97) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 168, 74, 0.12), transparent 55%);
  border-block: 1px solid rgba(15, 74, 50, 0.45);
}

.htb-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 320px at 50% -5%, rgba(232, 168, 74, 0.14), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(15, 74, 50, 0.35), transparent 60%);
}

/* Soft felt grain, not tech grid */
.htb-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.htb-inner {
  position: relative;
  z-index: 1;
}

.htb-head {
  max-width: 40rem;
}

.htb .htb-eyebrow,
.htb-eyebrow {
  color: var(--htb-amber);
  letter-spacing: 0.14em;
}

.htb .section-head h2,
.htb-head h2 {
  font-family: "Outfit", var(--font);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--htb-ivory);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.htb .section-lead {
  color: var(--htb-muted);
}

/* Full-bleed league hall hero */
.htb-hero-panel {
  position: relative;
  display: block;
  margin-bottom: 2.25rem;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--htb-border-strong);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(232, 168, 74, 0.08);
}

.htb-hero-visual {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  min-height: 280px;
  background: var(--htb-wood);
}

.htb-hero-visual img {
  width: 100%;
  height: min(42vw, 380px);
  min-height: 260px;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

.htb-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 1.75rem 1.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(12, 10, 8, 0.55) 35%,
    rgba(12, 10, 8, 0.92) 100%
  );
}

.htb-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--htb-amber);
}

.htb-hero-copy h3 {
  margin: 0 0 0.55rem;
  font-family: "Outfit", var(--font);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--htb-ivory);
  max-width: 28rem;
}

.htb-hero-copy p {
  margin: 0 0 1rem;
  color: var(--htb-cream);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 36rem;
}

.htb-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.htb-pill-row li {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--htb-ivory);
  background: rgba(15, 74, 50, 0.55);
  border: 1px solid rgba(26, 122, 82, 0.45);
}

.htb-split-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.15rem;
  font-family: "Outfit", var(--font);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--htb-amber);
}

.htb-split-hardware {
  margin-top: 2rem;
}

.htb-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 168, 74, 0.45), transparent);
}

.htb-grid {
  margin-bottom: 0.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.htb-card {
  background:
    linear-gradient(165deg, rgba(42, 24, 16, 0.75), rgba(14, 28, 22, 0.88));
  border: 1px solid var(--htb-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(232, 168, 74, 0.08);
}

.htb-card:hover {
  border-color: var(--htb-border-strong);
  background:
    linear-gradient(165deg, rgba(55, 32, 20, 0.85), rgba(15, 48, 36, 0.92));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(26, 122, 82, 0.2);
  transform: translateY(-2px);
}

.htb-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Outfit", var(--font);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--htb-ivory);
}

.htb-card p {
  margin: 0;
  color: var(--htb-muted);
  font-size: 0.94rem;
}

.htb-card-thumb {
  margin: -0.15rem -0.15rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(15, 74, 50, 0.4);
  height: 120px;
  background: var(--htb-felt-deep);
}

.htb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.htb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a2018;
  background: var(--htb-felt-bright);
}

.htb-domain {
  font-size: 0.78rem;
  color: var(--htb-soft);
  font-variant-numeric: tabular-nums;
}

.htb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 1.1rem;
  padding: 0;
  list-style: none;
}

.htb-meta li {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 550;
  color: var(--htb-cream);
  background: rgba(15, 74, 50, 0.35);
  border: 1px solid rgba(26, 122, 82, 0.3);
}

.btn-htb {
  background: linear-gradient(135deg, #2a9b68 0%, var(--htb-felt-bright) 45%, #0f4a32);
  color: var(--htb-ivory) !important;
  border-color: rgba(26, 122, 82, 0.55);
  box-shadow:
    0 10px 28px rgba(15, 74, 50, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: "Outfit", var(--font);
  font-weight: 600;
}

.btn-htb:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #3ab87a 0%, #1f8f5c 50%, #145c40);
  border-color: rgba(232, 168, 74, 0.4);
}

/* Hardware — pocket markers on felt */
.htb-hardware {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--htb-border-strong);
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(42, 24, 16, 0.9), transparent 50%),
    linear-gradient(200deg, rgba(15, 74, 50, 0.35), rgba(18, 12, 10, 0.92));
}

.htb-hardware-copy {
  padding: 1.5rem 1.5rem 1.5rem 1.6rem;
}

.htb-hardware-copy h3 {
  margin: 0 0 0.65rem;
  font-family: "Outfit", var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--htb-ivory);
}

.htb-hardware-copy > p {
  margin: 0;
  color: var(--htb-muted);
  font-size: 0.96rem;
}

.htb-hardware-panel {
  display: block;
  min-height: 200px;
  padding: 0;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--htb-border);
  background: var(--htb-felt-deep);
  position: relative;
}

.htb-hardware-panel img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.htb-hardware-spec {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--htb-ivory);
  letter-spacing: 0.02em;
  background: rgba(12, 10, 8, 0.72);
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 74, 0.25);
}

.htb-hardware-spec strong {
  color: var(--htb-amber);
  font-weight: 600;
}

/* Network card (ventures section) */
.htb-network-card {
  background:
    linear-gradient(165deg, rgba(42, 24, 16, 0.75), rgba(14, 28, 22, 0.9));
  border-color: rgba(26, 122, 82, 0.35);
  box-shadow: inset 0 1px 0 rgba(232, 168, 74, 0.08);
}

.htb-network-card:hover {
  border-color: rgba(232, 168, 74, 0.4);
  background:
    linear-gradient(165deg, rgba(55, 32, 20, 0.85), rgba(15, 48, 36, 0.95));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(15, 74, 50, 0.15);
}

.tag-htb {
  color: var(--htb-amber, #e8a84a);
  background: rgba(15, 74, 50, 0.35);
  border-color: rgba(26, 122, 82, 0.4);
}

/* Apps */
.app-featured {
  background:
    linear-gradient(160deg, rgba(242, 193, 78, 0.14), transparent 48%),
    linear-gradient(200deg, rgba(46, 196, 182, 0.1), transparent 60%),
    rgba(16, 14, 12, 0.85);
  border-color: rgba(242, 193, 78, 0.4);
  box-shadow: 0 0 32px rgba(242, 193, 78, 0.1);
}

.app-card .app-thumb {
  margin: -0.25rem -0.25rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.18);
  height: 120px;
}

.app-card .app-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #064e3b;
  background: var(--success);
}

.app-badge.muted {
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.15);
}

.app-domain {
  font-size: 0.78rem;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.app-meta li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

/* About / contact */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

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

.contact-list {
  list-style: none;
  margin: 1.1rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span:first-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 600;
}

.contact-list a,
.contact-list span:last-child {
  color: var(--text);
  font-weight: 500;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand strong {
  font-size: 1rem;
}

.footer-brand span,
.footer-copy {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-copy {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .feature-card,
  .about-grid,
  .card-grid.apps,
  .htb-hardware {
    grid-template-columns: 1fr;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .htb-hero-visual img {
    height: 240px;
    min-height: 220px;
  }

  .htb-hero-copy {
    position: relative;
    padding: 1.15rem 1.15rem 1.25rem;
    background: linear-gradient(180deg, rgba(18, 12, 10, 0.92), rgba(12, 22, 18, 0.96));
  }

  .htb-hardware-panel {
    border-left: none;
    border-top: 1px solid var(--htb-border);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--border);
  }

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

  .site-nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn {
    margin-top: 0.65rem;
    width: 100%;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .app-card,
  .htb-card {
    transition: none;
  }
}
