/* ============================================
   HangarOps — Aviation Maintenance Platform
   Design System v1.0
   ============================================ */

/* --- Variables --- */
:root {
  --navy-950: #060e18;
  --navy-900: #0f1923;
  --navy-800: #162233;
  --navy-700: #1e3349;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --red-500: #ef4444;
  --green-500: #22c55e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }

/* --- Typography --- */
.text-hero { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.text-h2    { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.text-h3    { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.text-lead  { font-size: 1.125rem; line-height: 1.7; color: var(--slate-600); }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.navbar.scrolled {
  background: rgba(15, 25, 35, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-logo svg { flex-shrink: 0; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--navy-200);
}

.btn-outline-dark:hover {
  background: var(--slate-100);
  border-color: var(--navy-700);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 60%, #0d2035 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-300);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--amber-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  font-size: 1.125rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--slate-600);
}

.hero-note strong { color: var(--slate-400); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dashboard mockup card */
.dashboard-card {
  background: rgba(22, 35, 51, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  backdrop-filter: blur(12px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-200);
}

.dashboard-card-dot {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-500);
}

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

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

.dash-label {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.dash-value {
  font-size: 0.85rem;
  font-weight: 700;
}

.dash-status-ok { color: var(--green-500); }
.dash-status-warn { color: var(--amber-400); }
.dash-status-alert { color: var(--red-500); }

.dash-meta {
  font-size: 0.7rem;
  color: var(--slate-600);
}

.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ad-badge-critical { background: rgba(239,68,68,0.15); color: var(--red-500); }
.ad-badge-upcoming { background: rgba(245,158,11,0.15); color: var(--amber-400); }
.ad-badge-ok { background: rgba(34,197,94,0.1); color: var(--green-500); }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 24px rgba(15, 25, 35, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg { color: var(--amber-400); }

.feature-card h3 {
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--slate-600);
  font-size: 0.9rem;
  line-height: 1.65;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-500);
  margin-top: 1rem;
  padding: 0.25rem 0.625rem;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 4px;
}

/* --- Compliance Section --- */
.compliance-section {
  background: var(--navy-950);
  color: var(--white);
}

.compliance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.compliance-section .section-eyebrow { color: var(--amber-400); }
.compliance-section h2 { color: var(--white); margin-bottom: 1.25rem; }
.compliance-section h2 span { color: var(--amber-400); }
.compliance-section p { color: var(--slate-400); line-height: 1.7; margin-bottom: 2rem; }

.compliance-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compliance-check {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.compliance-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.compliance-check-icon svg { color: var(--green-500); }

.compliance-check-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.125rem;
}

.compliance-check-text span {
  font-size: 0.825rem;
  color: var(--slate-400);
  line-height: 1.5;
}

.compliance-visual {
  display: grid;
  gap: 1rem;
}

.ad-card {
  background: rgba(22, 35, 51, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.125rem 1.25rem;
  transition: border-color 0.2s;
}

.ad-card:hover { border-color: rgba(255,255,255,0.15); }

.ad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.ad-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-400);
  letter-spacing: 0.04em;
}

.ad-card-desc {
  font-size: 0.825rem;
  color: var(--slate-200);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.ad-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-due {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.ad-due strong { color: var(--white); }

/* --- Trust / Social Proof --- */
.trust-section { background: var(--slate-100); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.trust-stat {
  text-align: center;
  padding: 1.5rem;
}

.trust-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.trust-stat-label {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap;
}

.trust-logo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-logo-item {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.04em;
}

/* --- Testimonials --- */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.75rem;
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--navy-800);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber-400);
}

.testimonial-meta strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-950) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
  opacity: 0.5;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--slate-400);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-small {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* --- Pricing Preview --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card.featured {
  border-color: var(--amber-500);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber-500);
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.pricing-desc {
  font-size: 0.825rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.pricing-price .amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.04em;
}

.pricing-price .period {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--navy-800);
}

.pricing-features li svg { color: var(--green-500); flex-shrink: 0; }

/* --- Footer --- */
.footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-200);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.85rem;
  color: var(--slate-400);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a { color: var(--slate-600); transition: color 0.15s; }
.footer-bottom-links a:hover { color: var(--slate-300); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .compliance-inner { gap: 3rem; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .compliance-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .navbar-links { display: none; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- Misc Utilities --- */
.divider { height: 1px; background: var(--slate-200); border: none; }
.text-amber { color: var(--amber-500); }
.text-navy { color: var(--navy-900); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }