
:root {
  --bti-purple: #5E41A2;
  --bti-violet: #8B6BC7;
  --deep-charcoal: #1D1B24;
  --soft-lavender: #D9D0EF;
  --pure-white: #FFFFFF;
  --mist: #F5F3F8;
  --steel: #6B6875;
  --success: #2E7D5B;
  --warning: #A85D00;
  --bg-dark: #121019;
  --card-dark: #1A1724;
  --border-dark: #2F2A3F;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: #E2DFEC;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-txt {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--pure-white);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 23, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  padding: 0.75rem 1.5rem;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-sym {
  width: 16px;
  height: 16px;
  background: var(--bti-purple);
  border-radius: 4px;
}

.brand-txt {
  font-size: 1.1rem;
  color: var(--pure-white);
}

.brand-txt span {
  color: var(--soft-lavender);
  font-weight: 400;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: #A09BB5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1A1724 0%, #121019 100%);
  border-bottom: 1px solid var(--border-dark);
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  background: rgba(94, 65, 162, 0.2);
  border: 1px solid rgba(139, 107, 199, 0.4);
  color: var(--soft-lavender);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero .sub {
  font-size: 1.15rem;
  color: #A09BB5;
  max-width: 750px;
  margin: 0 auto 2rem auto;
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.kpi {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.kpi .num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--pure-white);
}

.kpi .lbl {
  font-size: 0.85rem;
  color: #A09BB5;
  font-weight: 500;
}

/* Main Container */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.sec {
  margin-bottom: 4.5rem;
}

.sec-badge {
  display: inline-block;
  color: var(--bti-violet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.sec h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.sec .lead {
  font-size: 1.05rem;
  color: #A09BB5;
  max-width: 850px;
  margin-bottom: 2rem;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.table-custom th {
  background: #221E30;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--soft-lavender);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-custom td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(47, 42, 63, 0.6);
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr.highlight-row {
  background: rgba(94, 65, 162, 0.12);
  font-weight: 600;
}

/* Cards & Grids */
.cards3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: var(--bti-purple);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--pure-white);
}

.card p {
  color: #A09BB5;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--bti-purple);
  color: var(--pure-white);
  box-shadow: 0 4px 14px rgba(94, 65, 162, 0.4);
}

.btn-primary:hover {
  background: #7351c4;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--pure-white);
  border: 1px solid var(--border-dark);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #A09BB5;
}

/* CAD embed container */
.cad-container {
  background: #FFFFFF;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cad-container object {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--steel);
}

footer strong {
  color: var(--pure-white);
}
