/* ── Variables ── */
:root {
  --bg: hsl(220 20% 7%);
  --fg: hsl(0 0% 98%);
  --card: hsl(220 16% 12%);
  --primary: hsl(199 89% 48%);
  --primary-fg: hsl(220 20% 7%);
  --secondary: hsl(220 14% 16%);
  --secondary-fg: hsl(0 0% 90%);
  --muted: hsl(220 10% 60%);
  --border: hsl(220 14% 20%);
  --destructive: hsl(0 84% 60%);
  --light-bg: hsl(0 0% 96%);
  --light-fg: hsl(220 20% 12%);
  --light-muted: hsl(220 10% 45%);
  --radius: 0.5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.section-dark { background: var(--bg); color: var(--fg); }
.section-light { background: var(--light-bg); color: var(--light-fg); }

/* ── Typography ── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-desc {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.muted { color: var(--muted); line-height: 1.7; }
.text-primary { color: var(--primary); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }
.btn-lg { font-size: 1.125rem; padding: 1.25rem 2.5rem; }
.btn-full { width: 100%; }

/* ── Animation ── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fade-in-up .6s ease-out forwards; }

/* ── Hero ── */
.hero { min-height: 75vh; display: flex; align-items: center; }
.hero { padding: 4rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.logo {
  height: auto;
  width: min(320px, 90%);
  margin: 0 auto 2rem;
  display: block;
}
.hero-text h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-align: center;
}
.hero-sub {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}
.hero-text .btn-primary { margin: 0 auto 2rem; display: flex; max-width: fit-content; }
.hero-desc { color: var(--muted); max-width: 480px; text-align: center; margin: 0 auto; }
.hero-img img { width: 100%; border-radius: .75rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); aspect-ratio: 16/9; object-fit: cover; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-text h1,
  .hero-sub,
  .hero-desc { text-align: left; }
  .logo { margin-left: 0; width: min(340px, 100%); }
  .hero-text .btn-primary { margin-left: 0; }
}

/* ── Trust Bar ── */
.trust-bar { background: var(--secondary); padding: 2rem 0; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }
.trust-item span { font-size: .875rem; font-weight: 500; color: var(--secondary-fg); }
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Equipment Grid ── */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.equip-card {
  background: #fff;
  border: 1px solid hsl(220 14% 90%);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.equip-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.equip-img { aspect-ratio: 1/1; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.equip-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .3s; }
.equip-card:hover .equip-img img { transform: scale(1.05); }
.equip-name { padding: 1rem 1.25rem; font-weight: 600; font-size: 1rem; }
@media (min-width: 1024px) {
  .equip-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ── Applications ── */
.apps-list {
  list-style: none;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.apps-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  font-weight: 500;
}
.apps-list svg { color: var(--primary); flex-shrink: 0; }

/* ── Solutions ── */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.solution-card {
  background: #fff;
  border: 1px solid hsl(220 14% 90%);
  border-radius: .75rem;
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.solution-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.solution-icon { color: var(--primary); margin-bottom: 1rem; }
.solution-card h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: .5rem; }
.solution-card p { font-size: .9rem; line-height: 1.6; }
@media (min-width: 768px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Institutional ── */
.inst-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.inst-img { width: 100%; border-radius: .75rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 1024px) {
  .inst-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ── CTA Final ── */
.cta-section { position: relative; padding: 5rem 0 7rem; overflow: hidden; }
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsla(199,89%,48%,.18), hsla(199,89%,48%,.04));
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.modal-box h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: .25rem .5rem;
  border-radius: var(--radius);
  transition: color .2s;
}
.modal-close:hover { color: var(--fg); }

/* ── Form ── */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .875rem; font-weight: 500; }
.field input {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  padding: .625rem .875rem;
  transition: border-color .2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--primary); }
.field input.invalid { border-color: var(--destructive); }
.field-error { font-size: .8rem; color: var(--destructive); min-height: 1rem; }
