/* ============================================================
   DairyTech Solutions Ltd — Website Stylesheet
   Brand: Deep Teal (#00B3B1), Charcoal (#1A1A2E), Amber (#F5A623), White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #00B3B1;
  --teal-dark:   #0D7377;
  --teal-deep:   #085F63;
  --charcoal:    #1A1A2E;
  --charcoal-2:  #16213E;
  --charcoal-3:  #0F3460;
  --amber:       #F5A623;
  --amber-dark:  #D4891A;
  --white:       #FFFFFF;
  --off-white:   #F8FAFA;
  --grey-light:  #E8F4F4;
  --grey-mid:    #9AACAC;
  --text-dark:   #1A1A2E;
  --text-body:   #2D3748;
  --font-head:   'Nunito', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.20);
  --transition:  all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-dark); }

.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }
.text-white { color: var(--white); }
.text-muted { color: var(--grey-mid); }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--grey-mid);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 179, 177, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(0, 179, 177, 0.15);
}

.nav-links .nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 24px;
  margin-left: 8px;
}

.nav-links .nav-cta:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(13,115,119,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 179, 177, 0.15);
  border: 1px solid rgba(0, 179, 177, 0.4);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero h1 span {
  color: var(--teal);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 700px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 179, 177, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--charcoal);
  border-color: var(--amber);
}

.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body { padding: 32px; }

/* ---- Stat Cards ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card-value {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.stat-card-desc {
  font-size: 0.8rem;
  color: var(--grey-mid);
  line-height: 1.5;
}

/* ---- Section Backgrounds ---- */
.bg-dark {
  background: var(--charcoal);
  color: var(--white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--white);
}

.bg-dark .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.bg-teal {
  background: var(--teal-deep);
  color: var(--white);
}

.bg-teal h1, .bg-teal h2, .bg-teal h3 {
  color: var(--white);
}

.bg-off-white { background: var(--off-white); }
.bg-grey-light { background: var(--grey-light); }

/* ---- Problem Section ---- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.problem-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.problem-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.fact-item {
  background: rgba(0, 179, 177, 0.08);
  border: 1px solid rgba(0, 179, 177, 0.2);
  border-radius: var(--radius);
  padding: 20px;
}

.fact-value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 4px;
}

.fact-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ---- Solution / AXIS Models ---- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.model-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.model-card.featured {
  border-color: var(--teal);
  position: relative;
}

.model-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--amber);
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-header {
  background: var(--charcoal);
  padding: 28px;
  text-align: center;
}

.model-name {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.model-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.model-price {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}

.model-body {
  padding: 28px;
}

.model-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-light);
  font-size: 0.875rem;
}

.model-spec:last-child { border-bottom: none; }

.model-spec-label {
  color: var(--grey-mid);
  font-weight: 500;
}

.model-spec-value {
  font-weight: 700;
  color: var(--text-dark);
}

/* ---- Technology Section ---- */
.tech-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 48px 0;
  position: relative;
}

.tech-process::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--charcoal);
  border: 3px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.process-step h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
  letter-spacing: 0.05em;
}

.comparison-table th:first-child {
  background: var(--teal-deep);
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: top;
}

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

.comparison-table tr:nth-child(even) td {
  background: var(--off-white);
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--text-dark);
}

.check { color: var(--teal); font-weight: 700; }
.cross { color: #E53E3E; font-weight: 700; }

/* ---- Market Section ---- */
.market-chart-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 48px;
}

.revenue-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 280px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.revenue-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.revenue-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.8s ease;
  position: relative;
  min-height: 4px;
}

.revenue-bar.pre-rev {
  background: linear-gradient(180deg, #4A5568 0%, #2D3748 100%);
  height: 4px !important;
}

.revenue-bar-value {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
  text-align: center;
}

.revenue-bar-year {
  font-size: 0.75rem;
  color: var(--grey-mid);
  margin-top: 8px;
  font-weight: 600;
}

/* ---- Team Section ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.team-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
}

.team-avatar-initials {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.6;
}

.team-info {
  padding: 28px;
}

.team-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---- Investors Section ---- */
.invest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.invest-highlight {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--charcoal-3) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}

.invest-highlight h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.invest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.invest-row:last-child { border-bottom: none; }

.invest-row-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.invest-row-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--amber);
}

.use-of-funds {
  margin-top: 32px;
}

.use-of-funds h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.fund-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fund-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.fund-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
}

.fund-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  min-width: 160px;
}

.fund-pct {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 40px;
  text-align: right;
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 179, 177, 0.1);
}

.form-control::placeholder { color: var(--grey-mid); }

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AACAC' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 179, 177, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal a:hover { color: var(--teal); }

/* ---- Dividers & Accents ---- */
.teal-rule {
  width: 48px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 24px;
}

.amber-rule {
  width: 48px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
}

.badge-teal {
  background: rgba(0, 179, 177, 0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(0, 179, 177, 0.3);
}

.badge-amber {
  background: rgba(245, 166, 35, 0.12);
  color: var(--amber-dark);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.badge-dark {
  background: rgba(26, 26, 46, 0.08);
  color: var(--charcoal);
  border: 1px solid rgba(26, 26, 46, 0.15);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .models-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  /* Disable backdrop-filter on mobile — major scroll jank source on iOS */
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(26, 26, 46, 0.99);
  }

  /* Promote scrollable sections to own compositor layer */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
  }

  /* Prevent fade-in transforms from causing layout thrashing */
  .fade-in {
    will-change: opacity, transform;
  }
  .fade-in.visible {
    will-change: auto;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(0,179,177,0.2);
  }

  /* Core named grids */
  .problem-grid { grid-template-columns: 1fr; }
  .problem-image { order: -1; }
  .models-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-process::before { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  /* All inline two-column grids collapse to single column */
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Model panel stacks vertically */
  .model-panel-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Small stat grids (2x2 data cards) stay 2-col but shrink */
  .two-col-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* Form name row stacks on mobile */
  .two-col-stats.two-col-form,
  div.two-col-stats:has(.form-group) {
    grid-template-columns: 1fr !important;
  }

  /* Prevent horizontal overflow */
  section, .container {
    overflow-x: hidden;
  }

  /* Tables scroll horizontally rather than overflow */
  .comparison-table, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 0.78rem;
  }

  /* Revenue bar chart shrinks */
  .revenue-bars {
    gap: 8px;
  }

  .revenue-bar-year {
    font-size: 0.7rem;
  }

  /* Model tabs wrap nicely */
  #modelTabs {
    gap: 8px;
  }

  .model-tab {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* Payback calculator results grid stays 2-col */
  #modelPanel .two-col-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Hero stat values font size */
  .hero-stat-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .problem-facts { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  /* On very small screens, 2x2 stat grids also stack */
  .two-col-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Section padding tighter */
  section { padding: 48px 0; }

  /* Reduce heading sizes */
  .section-title { font-size: 1.8rem; }

  h3 { font-size: 1.3rem; }

  /* Model panel left side padding */
  .model-panel-grid > div:first-child {
    padding: 28px 24px !important;
  }

  .model-panel-grid > div:last-child {
    padding: 28px 24px !important;
  }
}

/* ---- Scroll animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Regulatory badge strip ---- */
.reg-strip {
  background: rgba(0, 179, 177, 0.06);
  border: 1px solid rgba(0, 179, 177, 0.2);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.reg-strip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.reg-strip-text {
  font-size: 0.85rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

.reg-strip-text strong {
  color: var(--teal-dark);
}

/* ---- Two-entity notice ---- */
.entity-notice {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}

.entity-notice p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

.entity-notice strong { color: var(--amber-dark); }

/* ---- Model tab buttons ---- */
.model-tab {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid var(--grey-light);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-width: 160px;
  line-height: 1.4;
}

.model-tab:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,179,177,0.15);
}

.model-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,179,177,0.35);
  transform: translateY(-2px);
}

/* ---- Milestone timeline ---- */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(0,179,177,0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-year {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--grey-mid);
  margin: 0;
  line-height: 1.5;
}
