/* Teebeetech landing page — tokens from TEE-402 approved design spec */

:root {
  --brand-navy: #0b2440;
  --brand-navy-deep: #081c33;
  --brand-navy-panel: #0e2a4a;
  --brand-navy-grid: #1e3e63;
  --brand-gold: #c9a227;
  --brand-gold-light: #e8c766;
  --brand-gold-dark: #8f6f14;
  --brand-gold-highlight: #f0d68a;
  --ink: #10233b;
  --text-sub: #4e5d73;
  --text-on-dark: #f4f1e8;
  --text-on-dark-sub: #93a5bd;
  --text-on-dark-mute: #7e92ac;
  --terminal-text: #eaeff7;
  --surface-alt: #f7f5ef;
  --surface-gold-tint: #f6efdb;
  --hairline: #e5e2d9;
  --muted-wordmark: #9aa3af;
  --success: #188038;
  --oct-bar: #28507e;
  --newsprint-ink: #1b1814;
  --newsprint-rule: #c9bfa8;
  --newsprint-mute: #8a8272;
  --newsprint-card-top: #fbf8f1;
  --newsprint-card-bottom: #f1ebdd;

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-wordmark: "Space Grotesk", sans-serif;

  --container: 1240px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin: 0 0 16px;
}

.eyebrow--dark {
  color: var(--brand-gold-light);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--brand-navy);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(11, 36, 64, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--hairline);
}

.btn-secondary:hover {
  border-color: var(--brand-navy);
}

.btn-gold {
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
}

.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* Nav */

.site-header {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.wordmark .tech {
  color: var(--brand-gold);
}

.wordmark--sm {
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

.hero {
  text-align: center;
  padding: 114px 24px 72px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(38px, 6vw, 74px);
  letter-spacing: -2.2px;
  color: var(--brand-navy);
  line-height: 1.08;
  margin: 0 auto;
  max-width: 900px;
}

.hero-keyline {
  width: 340px;
  max-width: 60vw;
  height: 5px;
  border-radius: 2.5px;
  margin: 28px auto;
  background: linear-gradient(90deg, var(--brand-gold-light), var(--brand-gold));
}

.hero-sub {
  font-size: 19px;
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Product window */

.hero-proof {
  max-width: 1092px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.window {
  position: relative;
  margin-bottom: 44px;
}

.window-clip {
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 40px 80px -30px rgba(11, 36, 64, 0.25);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--hairline);
}

.window-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-sub);
  background: var(--surface-alt);
  padding: 4px 20px;
  border-radius: 12px;
}

.window-body {
  display: flex;
  flex-wrap: wrap;
}

.window-side {
  width: 216px;
  flex-shrink: 0;
  background: var(--surface-alt);
  padding: 28px 18px;
}

.window-side-item {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.window-side-item.active {
  background: var(--surface-gold-tint);
  color: var(--brand-navy);
  font-weight: 600;
}

.window-main {
  flex: 1;
  min-width: 280px;
  padding: 26px 28px;
  position: relative;
}

.window-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.window-main-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  margin: 0;
  color: var(--ink);
}

.chart-card {
  border: 1.25px solid var(--hairline);
  border-radius: 10px;
  padding: 18px 20px 10px;
  margin-bottom: 18px;
}

.chart-card-label {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-sub);
  margin: 0 0 14px;
}

.chart-svg {
  width: 100%;
  height: auto;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  border: 1.25px solid var(--hairline);
  border-radius: 10px;
  padding: 16px 18px;
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 650;
  color: var(--brand-navy);
  display: block;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-sub);
}

.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.25px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 12px 30px -12px rgba(11, 36, 64, 0.25);
}

.toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast .title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.toast .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-sub);
}

.toast--build {
  left: 24px;
  bottom: -30px;
}

.toast--deploy {
  right: 24px;
  bottom: -30px;
}

/* From our studio */

.studio-strip {
  text-align: center;
  padding: 96px 24px 88px;
}

.studio-strip .eyebrow {
  text-align: center;
  color: var(--text-on-dark-mute);
  letter-spacing: 3px;
}

.studio-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.studio-logos span {
  color: var(--muted-wordmark);
  font-size: 22px;
}

.studio-logos .sl-teebeemail {
  font-family: var(--font-wordmark);
  font-weight: 500;
}

.studio-logos .sl-news {
  font-family: var(--font-serif);
  font-size: 26px;
}

.studio-logos .sl-oct {
  font-family: var(--font-mono);
  font-size: 20px;
}

/* Services */

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  color: var(--brand-navy);
  margin: 0 0 12px;
}

.section-head--dark h2 {
  color: var(--text-on-dark);
}

.section-head p {
  font-size: 17px;
  color: var(--text-sub);
  margin: 0;
  max-width: 640px;
}

.section-head--dark p {
  color: var(--text-on-dark-sub);
}

.section-head--center {
  text-align: center;
}

.section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

.services {
  padding: 88px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.service-card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-gold-dark);
  display: block;
  margin-bottom: 18px;
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  border: 1.25px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--brand-navy);
  margin-bottom: 34px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 19px;
  color: var(--brand-navy);
  margin: 0 0 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0;
}

/* How it works (dark band) */

.how-it-works {
  background: var(--brand-navy-deep);
  background-image: radial-gradient(
    ellipse 1440px 600px at 50% 0%,
    rgba(201, 162, 39, 0.13),
    rgba(201, 162, 39, 0) 60%
  );
  padding: 96px 0 108px;
  position: relative;
  overflow: hidden;
}

.terminal {
  background: var(--brand-navy-panel);
  border: 1.5px solid var(--brand-navy-grid);
  border-radius: 12px;
  margin-top: 48px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-bottom: 1px solid var(--brand-navy-grid);
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-navy-grid);
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-on-dark-mute);
}

.terminal-body {
  padding: 32px 32px 36px;
  font-family: var(--font-mono);
  font-size: 15.5px;
  line-height: 2.1;
}

.terminal-body .prompt {
  color: var(--brand-gold-light);
  font-weight: 500;
}

.terminal-body .cmd {
  color: var(--terminal-text);
}

.terminal-body .out {
  color: var(--text-on-dark-sub);
}

.terminal-body .live {
  color: var(--brand-gold-highlight);
  font-weight: 500;
}

.terminal-body .cursor {
  color: var(--brand-gold-light);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.pipeline {
  margin-top: 64px;
  position: relative;
}

.pipeline-line {
  height: 2.5px;
  border-radius: 1.25px;
  background: linear-gradient(90deg, var(--brand-gold-light), var(--brand-gold));
  margin: 0 8px;
}

.pipeline-steps {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pipeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-navy-deep);
  border: 2px solid var(--brand-gold);
}

.pipeline-step.is-last .pipeline-dot {
  border-color: var(--brand-gold-highlight);
}

.pipeline-step span.label {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 2px;
  color: var(--terminal-text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--brand-navy-grid);
}

.metric {
  text-align: center;
  border-left: 1px solid var(--brand-navy-grid);
  padding: 4px 12px;
}

.metric:first-child {
  border-left: none;
}

.metric .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  color: var(--brand-gold-light);
  display: block;
}

.metric .label {
  font-size: 14px;
  color: var(--text-on-dark-sub);
  margin-top: 6px;
}

/* Selected work */

.work {
  padding: 96px 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: var(--radius-sm);
  border: 1.25px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-card-media {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.work-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.work-card-footer h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 18px;
  color: var(--brand-navy);
  margin: 0 0 4px;
}

.work-card-footer p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
}

.work-card-footer .arrow {
  color: var(--brand-gold-dark);
  font-size: 18px;
}

/* teebeemail card */

.media-teebeemail {
  background: #fdfcfa;
  padding: 0;
  font-size: 13px;
}

.media-teebeemail .tb-bar {
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-wordmark);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-teebeemail .tb-bar .badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-gold-light);
}

.media-teebeemail ul {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
}

.media-teebeemail li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}

.media-teebeemail li:last-child {
  border-bottom: none;
}

.media-teebeemail .from {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
  font-size: 13px;
}

.media-teebeemail .from::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gold);
  flex-shrink: 0;
}

.media-teebeemail .subj {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-left: 15px;
}

/* Tee Bee News card */

.media-news {
  background: linear-gradient(180deg, var(--newsprint-card-top), var(--newsprint-card-bottom));
  padding: 22px 18px;
  position: relative;
}

.media-news .masthead {
  font-family: var(--font-serif);
  font-size: 26px;
  text-align: center;
  color: var(--newsprint-ink);
  margin: 0 0 6px;
}

.media-news .rule {
  border: none;
  border-top: 1.25px solid var(--newsprint-rule);
  margin: 0 0 3px;
}

.media-news .rule.thin {
  border-top-width: 0.75px;
  margin-bottom: 14px;
}

.media-news .headline {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--newsprint-ink);
  margin: 0;
  line-height: 1.3;
  max-width: 62%;
}

.media-news .lines {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 60%;
}

.media-news .lines span {
  height: 5px;
  border-radius: 2.5px;
  background: var(--newsprint-rule);
  opacity: 0.8;
}

.media-news .photo {
  position: absolute;
  right: 18px;
  top: 66px;
  width: 116px;
  height: 78px;
  border-radius: 3px;
  background: rgba(27, 24, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-news .photo span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gold);
  opacity: 0.55;
  display: block;
}

.media-news .meta {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--newsprint-mute);
}

/* OCT card */

.media-oct {
  background: var(--brand-navy-deep);
  color: var(--terminal-text);
  padding: 18px 18px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-oct .oct-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-navy-grid);
  margin-bottom: 14px;
}

.media-oct .oct-head b {
  font-size: 15px;
  font-weight: 500;
}

.media-oct .oct-head span {
  font-size: 11.5px;
  color: var(--text-on-dark-mute);
}

.oct-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-navy-grid);
}

.oct-bars i {
  flex: 1;
  background: var(--oct-bar);
  border-radius: 3px;
  display: block;
}

.oct-bars i.hi {
  background: var(--brand-gold);
}

.media-oct .oct-stat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brand-gold-light);
  margin: 12px 0 4px;
}

.media-oct .oct-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--text-on-dark-mute);
}

/* CTA */

.cta {
  margin: 0 auto 120px;
  max-width: var(--container);
  padding: 0 24px;
}

.cta-card {
  background: var(--brand-navy);
  background-image: radial-gradient(
    ellipse 900px 400px at 50% 0%,
    rgba(201, 162, 39, 0.13),
    rgba(201, 162, 39, 0) 60%
  );
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: -1.5px;
  color: var(--text-on-dark);
  margin: 0 0 18px;
}

.cta-card p {
  font-size: 16.5px;
  color: var(--text-on-dark-sub);
  max-width: 560px;
  margin: 0 auto 34px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 60px;
}

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

.footer-row .contact {
  font-size: 13px;
  color: var(--text-sub);
}

/* Responsive */

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

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

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .metric:nth-child(3) {
    border-left: none;
  }

  .pipeline {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }

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

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .btn-sm {
    display: none;
  }

  .window-side {
    width: 100%;
  }

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

  .toast {
    display: none;
  }

  .studio-logos {
    gap: 32px;
  }

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

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

  .cta-card {
    padding: 56px 24px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
