/*------------------------------------*/
/* HOME PAGE STYLES — Instrument Dark */
/* Syne · DM Sans · JetBrains Mono   */
/*------------------------------------*/

:root {
  --bg-base:        #07101C;
  --bg-surface:     #0C1828;
  --bg-card:        #0F1F30;
  --border:         rgba(56, 189, 248, 0.08);
  --border-bright:  rgba(56, 189, 248, 0.20);
  --accent-sky:     #38BDF8;
  --accent-amber:   #F59E0B;
  --text-primary:   #E8EFF7;
  --text-secondary: rgba(232, 239, 247, 0.60);
  --text-dim:       rgba(232, 239, 247, 0.22);
  --airspace-color: #34D399;
  --checkride-color:#F59E0B;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Base ─── */

body.home-page {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header / Hero ─── */

#home-header {
  background-image: url("assets/images/header-bg.jpg");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.home-header-overlay {
  position: relative;
  background: linear-gradient(
    170deg,
    rgba(7, 16, 28, 0.97) 0%,
    rgba(9, 20, 38, 0.95) 55%,
    rgba(7, 14, 24, 0.98) 100%
  );
  padding: 48px 0 100px;
  width: 100%;
  display: block;
}

.home-header-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-header-overlay::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.11) 0%, transparent 65%);
  pointer-events: none;
}

.home-logo-area {
  display: flex;
  align-items: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.6s ease both;
}

.home-brand-name {
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-left: 13px;
  letter-spacing: 0.03em;
}

.home-hero-content {
  text-align: center;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

.home-hero-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-sky);
  opacity: 0.75;
  margin-bottom: 22px;
  text-transform: uppercase;
  animation: fadeSlideUp 0.6s 0.05s ease both;
}

.home-hero-content h1 {
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
  font-size: 62px;
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  animation: fadeSlideUp 0.7s 0.12s ease both;
}

.home-hero-subtitle {
  color: var(--text-secondary);
  font-size: 19px;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.68;
  animation: fadeSlideUp 0.7s 0.22s ease both;
}

.home-hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s 0.32s ease both;
}

/* ── Shared Button Styles ─── */

.home-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--checkride-color);
  border: 1.5px solid var(--checkride-color);
  border-radius: 8px;
  color: #0A0600;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 13px 26px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.home-primary-btn:hover,
.home-primary-btn:focus {
  background-color: transparent;
  color: var(--checkride-color);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.22);
}

.home-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1.5px solid rgba(52, 211, 153, 0.45);
  border-radius: 8px;
  color: var(--airspace-color);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 13px 26px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.home-secondary-btn:hover,
.home-secondary-btn:focus {
  background-color: rgba(52, 211, 153, 0.07);
  border-color: var(--airspace-color);
  color: var(--airspace-color);
}

/* ── Hero Secondary Links ─── */

.home-hero-secondary-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  animation: fadeSlideUp 0.7s 0.40s ease both;
}

.home-hero-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.home-hero-link:hover,
.home-hero-link:focus {
  color: var(--text-primary);
}

.home-hero-dot {
  color: var(--text-dim);
  font-size: 12px;
}

/* ── Conversion Bridge ─── */

#home-bridge {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  display: block;
  float: left;
  width: 100%;
  padding: 64px 0;
}

.home-bridge-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.home-bridge-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.home-bridge-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 28px;
}

/* ── Final CTA Subtext ─── */

.home-cta-subtext {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: 420px;
  margin: 0 auto 36px;
}

/* ── Resource Button Styles ─── */

.home-resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  color: var(--accent-sky);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 13px 26px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.home-resource-btn:hover,
.home-resource-btn:focus {
  background-color: rgba(56, 189, 248, 0.07);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
}

/* ── Section Label ─── */

.home-section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent-sky);
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Flagship Section — Checkride ─── */

#home-flagship {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: block;
  float: left;
  width: 100%;
  padding: 90px 0;
}

.home-flagship-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.home-flagship-content {
  flex: 1;
  min-width: 0;
}

.home-flagship-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.home-flagship-content > p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 32px;
  max-width: 480px;
}

.home-flagship-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--checkride-color);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.home-flagship-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.home-flagship-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

.home-flagship-image {
  flex-shrink: 0;
  width: 260px;
  text-align: center;
}

.home-flagship-image img {
  max-height: 440px;
  width: auto;
  border-radius: 22px;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.60),
    0 8px 20px rgba(0, 0, 0, 0.38);
}

/* ── Support Section — Airspace ─── */

#home-support {
  background-color: var(--bg-base);
  border-bottom: 1px solid var(--border);
  display: block;
  float: left;
  width: 100%;
  padding: 80px 0;
}

.home-support-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.home-support-image {
  flex-shrink: 0;
  width: 180px;
  text-align: center;
}

.home-support-image img {
  max-height: 300px;
  width: auto;
  border-radius: 18px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

.home-support-content {
  flex: 1;
  min-width: 0;
}

.home-support-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.home-support-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--airspace-color);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.home-support-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.home-support-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 0;
}

/* ── Flow Section ─── */

#home-flow {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: block;
  float: left;
  width: 100%;
  padding: 88px 0;
}

.home-flow-header {
  text-align: center;
  margin-bottom: 56px;
}

.home-flow-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.022em;
  margin-bottom: 12px;
}

.home-flow-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-sky);
  opacity: 0.60;
  text-transform: uppercase;
}

.home-flow-steps {
  display: flex;
  align-items: flex-start;
}

.home-flow-step {
  flex: 1;
  text-align: center;
  padding: 0 28px;
}

.home-flow-number {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent-sky);
  opacity: 0.55;
  text-transform: uppercase;
  margin-bottom: 16px;
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 4px;
  padding: 3px 10px;
}

.home-flow-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.28;
}

.home-flow-step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.68;
}

.home-flow-arrow {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--accent-sky);
  opacity: 0.28;
  margin-top: 30px;
}

/* ── About ─── */

#home-about-me {
  background-color: var(--bg-base);
  display: block;
  float: left;
  width: 100%;
  padding: 80px 0;
}

.home-about-me-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.home-about-me-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.home-about-me-inner p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.76;
  margin-bottom: 14px;
}

.home-contact-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-sky);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.home-contact-link:hover,
.home-contact-link:focus {
  color: var(--accent-sky);
  opacity: 0.72;
}

.home-contact-link i { margin-right: 7px; }

/* ── Final CTA ─── */

#home-cta {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: block;
  float: left;
  width: 100%;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#home-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.home-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-sky);
  opacity: 0.70;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.home-cta-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 40px;
  line-height: 1.06;
}

.home-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Footer ─── */

#home-footer {
  background-color: var(--bg-base);
  border-top: 1px solid var(--border);
  display: block;
  float: left;
  width: 100%;
  padding: 28px 0;
}

.home-footer-inner { text-align: center; }
.home-footer-social { margin-bottom: 14px; }

.home-footer-social a {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 8px;
  transition: color 0.2s;
}

.home-footer-social a:hover { color: var(--text-primary); }
.home-footer-links { margin-bottom: 10px; }

.home-footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.2s;
}

.home-footer-links a:hover { color: var(--text-primary); }

.home-footer-sep {
  color: rgba(232, 239, 247, 0.13);
  margin: 0 8px;
  font-size: 13px;
}

.home-copy {
  color: rgba(232, 239, 247, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ── Responsive ─── */

@media (max-width: 991px) {
  .home-hero-content { padding: 0 20px; }
  .home-hero-content h1 { font-size: 44px; }
  .home-flagship-content h2 { font-size: 32px; }
  .home-support-content h2 { font-size: 28px; }
  .home-flow-header h2 { font-size: 30px; }
  .home-cta-inner h2 { font-size: 34px; }
  .home-flagship-inner { gap: 36px; }
  .home-support-inner { gap: 32px; }
}

@media (max-width: 767px) {
  .home-hero-content h1 { font-size: 34px; }
  .home-hero-subtitle { font-size: 16px; }
  .home-hero-buttons { flex-direction: column; align-items: center; }

  .home-flagship-inner { flex-direction: column-reverse; gap: 32px; }
  .home-flagship-image { width: 200px; }
  .home-flagship-content h2 { font-size: 26px; }

  .home-support-inner { flex-direction: column; gap: 24px; }
  .home-support-image { width: 160px; margin: 0 auto; }
  .home-support-content h2 { font-size: 24px; }

  .home-flow-steps { flex-direction: column; gap: 28px; }
  .home-flow-arrow { display: none; }
  .home-flow-step { padding: 0; }
  .home-flow-header h2 { font-size: 26px; }

  .home-cta-inner h2 { font-size: 28px; }
  .home-cta-buttons { flex-direction: column; align-items: center; }
}
