:root {
  --sky: #08192b;
  --deep: #04101d;
  --panel: #0c2035;
  --line: rgba(255,255,255,.12);
  --text: #f6f9fc;
  --muted: #aab9c8;
  --accent: #59bdf3;
  --accent-2: #a6e4ff;
  --white: #ffffff;
  --dark-text: #102031;
  --light-bg: #eef4f8;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark-text);
  background: var(--light-bg);
  line-height: 1.65;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 760px;
  color: var(--text);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 72% 20%, rgba(87,188,242,.24), transparent 30%),
    linear-gradient(160deg, rgba(5,20,35,.75), rgba(4,13,24,.98)),
    repeating-linear-gradient(115deg, transparent 0 80px, rgba(255,255,255,.025) 81px 82px),
    #071829;
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -130px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(#263746, #0e1822);
  border-top: 3px solid rgba(255,255,255,.4);
  transform: rotate(-3deg);
}
.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .24em;
}
.brand-mark {
  font-size: 1.35rem;
  letter-spacing: -.04em;
  font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; }
.nav-links a:hover { color: var(--white); }
.nav-download {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.7rem;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 95px;
}
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: .85;
  letter-spacing: -.075em;
  max-width: 800px;
}
.hero-copy { max-width: 640px; margin: 30px 0; font-size: 1.15rem; color: #c2cfdb; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: #04223a; }
.primary:hover { background: var(--accent-2); }
.secondary { border: 1px solid var(--line); color: var(--white); background: rgba(255,255,255,.04); }
.large { min-height: 60px; padding-inline: 30px; }
.release-strip {
  margin-top: 90px;
  display: flex;
  gap: 55px;
  position: relative;
  z-index: 4;
}
.release-strip div { display: grid; gap: 3px; }
.release-strip span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-plane {
  position: absolute;
  width: min(950px, 72vw);
  right: -130px;
  top: 90px;
  opacity: .15;
  transform: rotate(-5deg);
}
.hero-plane path { fill: #d7efff; }

.section { padding: 105px 0; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading h2, .download-box h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.two-column { display: grid; grid-template-columns: 1.5fr .8fr; gap: 70px; align-items: start; }
.lead { font-size: 1.35rem; line-height: 1.5; margin-top: 0; }
.info-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.info-card h3 { margin-top: 0; }

.dark-section { background: var(--deep); color: var(--text); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.feature-number { color: var(--accent); font-weight: 800; font-size: .75rem; letter-spacing: .15em; }
.feature-card h3 { margin: 40px 0 10px; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }

.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 22px;
  background: white;
  border-radius: 14px;
  padding: 26px;
  border: 1px solid #dce6ec;
}
.step-number { font-size: 1.8rem; color: #7d97aa; font-weight: 800; }
.step h3 { margin: 0 0 5px; }
.step p { margin: 0; }
code {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e9f0f4;
  overflow-wrap: anywhere;
}
.warning {
  margin-top: 22px;
  padding: 20px 24px;
  border-left: 4px solid #f2a340;
  background: #fff5e6;
}

.tutorial-section { background: #dfe9ef; }
.tutorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tutorial-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 35px rgba(13,42,61,.08);
}
.tutorial-icon { font-size: 2rem; }
.tutorial-card h3 { font-size: 1.35rem; }
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0778b4;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tutorial-details { display: none; padding-top: 14px; }
.tutorial-details.open { display: block; }
.tutorial-details ol { padding-left: 20px; }

.document-grid { display: grid; gap: 12px; }
.document-card {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid #d8e3e9;
  border-radius: 14px;
  background: white;
  text-decoration: none;
}
.document-card:hover { border-color: var(--accent); }
.doc-type {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: #e6f5fd;
  color: #0a78af;
  font-weight: 900;
  font-size: .75rem;
}
.document-card h3, .document-card p { margin: 0; }
.document-card p { color: #647688; }
.arrow { font-size: 1.3rem; }

.download-section { padding: 0 0 100px; }
.download-box {
  padding: 55px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(89,189,243,.3), transparent 36%),
    var(--sky);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
.download-box p:not(.eyebrow) { color: var(--muted); max-width: 620px; }
.download-actions { display: grid; gap: 12px; min-width: 240px; }

footer { background: #030c14; color: var(--muted); padding: 42px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-content p { margin: 5px 0 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }

@media (max-width: 850px) {
  .menu-button { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    padding: 22px;
    background: #071829;
    border: 1px solid var(--line);
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .two-column, .feature-grid, .tutorial-grid { grid-template-columns: 1fr; }
  .release-strip { gap: 25px; flex-wrap: wrap; }
  .download-box { display: grid; }
  .download-actions { min-width: auto; }
  .hero-plane { width: 1000px; right: -500px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 26px, 1120px); }
  .hero { min-height: 820px; }
  .hero-content { padding-top: 75px; }
  .hero h1 { font-size: 4.1rem; }
  .section { padding: 75px 0; }
  .step { grid-template-columns: 1fr; }
  .download-box { padding: 34px 25px; }
  .footer-content { align-items: flex-start; flex-direction: column; }
}

.hero-photo{background:linear-gradient(90deg,rgba(3,14,25,.92) 0%,rgba(3,14,25,.72) 48%,rgba(3,14,25,.3) 100%),url("assets/images/a350-hero.jpg") center/cover no-repeat;}
.feature-card{display:flex;flex-direction:column}.feature-link{margin-top:auto;padding-top:24px;color:var(--accent);text-decoration:none;font-weight:800}.deep-dive-card{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:30px;padding:38px;border:1px solid rgba(89,189,243,.45);border-radius:var(--radius);background:linear-gradient(120deg,rgba(89,189,243,.15),rgba(255,255,255,.025));text-decoration:none}.deep-dive-card h3{font-size:2rem;margin:0}.deep-dive-card p{color:var(--muted)}
.tech-hero{min-height:520px;background:linear-gradient(90deg,rgba(3,14,25,.92),rgba(3,14,25,.58)),url("assets/images/a350-cockpit.jpg") center/cover;color:white}.tech-layout{display:grid;grid-template-columns:250px 1fr;gap:50px}.tech-nav{position:sticky;top:20px;align-self:start;background:white;border-radius:16px;padding:20px;box-shadow:0 12px 30px rgba(0,0,0,.08)}.tech-nav a{display:block;padding:8px 0;text-decoration:none;color:#516779;font-size:.9rem}.tech-section{scroll-margin-top:20px;background:white;border-radius:20px;overflow:hidden;margin-bottom:28px;box-shadow:0 15px 40px rgba(8,25,43,.08)}.tech-image{height:260px;background-size:cover;background-position:center}.tech-body{padding:36px}.tech-body h2{font-size:2.2rem;margin:0 0 12px}.tech-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.tech-panel{padding:20px;border-radius:14px;background:#eef4f8}.tech-panel h3{margin-top:0}.label{display:inline-block;margin-right:8px;padding:5px 9px;border-radius:999px;font-size:.68rem;font-weight:900;letter-spacing:.08em}.real{background:#d9f1ff;color:#075f8e}.mod{background:#fff0db;color:#9a5500}.limit{background:#e6e8eb;color:#4f5963}.test-box{margin-top:20px;border-left:4px solid var(--accent);padding:18px;background:#f0f9fe}.credits{font-size:.9rem;color:#647688}
@media(max-width:850px){.tech-layout{grid-template-columns:1fr}.tech-nav{position:static}.tech-grid{grid-template-columns:1fr}.deep-dive-card{display:grid}}


.sim-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}.sim-shot{margin:0;background:#071522;border:1px solid rgba(255,255,255,.12);border-radius:14px;overflow:hidden}.sim-shot img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.sim-shot figcaption{padding:12px 14px;color:#aab9c8;font-size:.9rem;line-height:1.45}@media(max-width:760px){.sim-gallery{grid-template-columns:1fr}}

/* Automatic installer */
.install-method {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}
.recommended-method {
  padding: 28px;
  background: linear-gradient(145deg, #07192b, #0b263e);
  color: var(--text);
  box-shadow: var(--shadow);
}
.method-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
}
.method-heading h3 { margin: 8px 0 0; font-size: 1.8rem; }
.method-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.install-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #04223a;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.compact-steps .step {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.11);
  color: var(--text);
}
.compact-steps .step-number { color: var(--accent); }
.compact-steps code { background: rgba(255,255,255,.1); color: var(--accent-2); }
.installer-details {
  padding: 34px;
  background: white;
  border: 1px solid #d8e3e9;
  border-radius: var(--radius);
}
.installer-details > h3 { margin-top: 0; font-size: 1.6rem; }
.installer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.installer-grid > div { padding: 20px; border-radius: 12px; background: #edf4f8; }
.installer-grid p { margin: 7px 0 0; color: #5e7181; }
.manual-install {
  margin-top: 22px;
  background: white;
  border: 1px solid #d8e3e9;
  border-radius: 14px;
  overflow: hidden;
}
.manual-install summary { padding: 20px 24px; cursor: pointer; font-weight: 800; }
.manual-body { padding: 0 26px 22px; }
.manual-body li + li { margin-top: 9px; }
.safe-warning { margin-top: 22px; }
@media (max-width: 760px) {
  .method-heading { display: grid; align-items: start; }
  .installer-grid { grid-template-columns: 1fr; }
  .recommended-method { padding: 18px; }
  .installer-details { padding: 24px; }
}


/* Live release-status components */
.document-static { cursor: default; }
.status-chip {
  justify-self: end;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e6f5fd;
  color: #0a78af;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.disabled-button {
  cursor: not-allowed;
  opacity: .82;
  text-align: center;
}
.release-update-box { border: 1px solid rgba(89,189,243,.32); }
@media (max-width: 560px) {
  .document-card { grid-template-columns: 56px 1fr; }
  .status-chip { grid-column: 2; justify-self: start; }
}

.tutorial-card-wide { grid-column: 1 / -1; }
.tutorial-details h4 { margin: 22px 0 8px; font-size: 1.02rem; }
.tutorial-details ul { padding-left: 21px; }
.tutorial-details li { margin-bottom: 7px; }
.tutorial-links { display: grid; gap: 9px; margin: 14px 0 20px; }
.tutorial-links a {
  display: block;
  padding: 11px 13px;
  border: 1px solid #c9dce7;
  border-radius: 10px;
  background: #edf7fc;
  color: #056fa8;
  font-weight: 800;
  text-decoration: none;
}
.tutorial-links a:hover { border-color: var(--accent); background: #e2f4fc; }
.tutorial-note, .education-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #eaf6fc;
  border-radius: 0 10px 10px 0;
}
.education-box { margin-top: 24px; }
.education-box h3 { margin-top: 0; }


.visual-showcase { background: #071829; color: var(--text); }
.visual-showcase .lead { color: var(--muted); max-width: 760px; }
.showcase-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.showcase-card { margin: 0; border-radius: 20px; overflow: hidden; background: #0c2035; border: 1px solid rgba(255,255,255,.12); }
.showcase-card img { display: block; width: 100%; height: 390px; object-fit: cover; }
.showcase-cockpit img { object-position: center; }
.showcase-card figcaption { padding: 18px 20px; color: #c2cfdb; }
.guide-button { margin-top: 22px; background: #0b78b4; color: white; width: fit-content; }
.guide-button:hover { background: #095f8e; }
@media (max-width: 850px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card img { height: 300px; }
}





.image-break {
  padding: 34px 0;
}
.image-break img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
}

.feature-audit {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid #d6e2e9;
  border-radius: 14px;
  background: #f4f8fa;
}
.feature-audit h3 { margin-top: 0; }
.feature-audit li { margin-bottom: 8px; }


/* Main-page showcase: use full-width images rather than cramped side-by-side cards */
.visual-showcase .showcase-grid {
  grid-template-columns: 1fr;
}
.visual-showcase .showcase-card.showcase-full {
  width: 100%;
}
.visual-showcase .showcase-cockpit-wide img {
  aspect-ratio: 16 / 7;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
}


/* Show the complete exterior aircraft without cropping */
.visual-showcase .showcase-exterior-contain {
  background: #050b12;
}
.visual-showcase .showcase-exterior-contain img {
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  object-position: center;
  background: #050b12;
}


/* Exterior showcase must display the complete source screenshot at natural ratio */
.visual-showcase .showcase-grid .showcase-card.showcase-exterior-natural {
  overflow: visible;
  background: #050b12;
}
.visual-showcase .showcase-grid .showcase-card.showcase-exterior-natural > img {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}


/* Single exterior showcase card restored to the original presentation size */
.visual-showcase .showcase-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.visual-showcase .showcase-card.showcase-exterior {
  width: 100%;
  overflow: hidden;
}
.visual-showcase .showcase-card.showcase-exterior > img {
  display: block;
  width: 100%;
  height: 390px !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
}


.tutorial-figure {
  margin: 18px 0;
}
.tutorial-figure img {
  display: block;
  width: min(100%, 700px);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #cbd9e1;
}
.tutorial-figure figcaption {
  margin-top: 9px;
  color: #5d7182;
  font-size: .92rem;
  text-align: center;
}


/* Technical chapter header images now sit directly below each section title */
.tech-section .tech-body > h2 + .tech-image {
  width: 100%;
  min-height: 300px;
  margin: 22px 0 28px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid #d7e2e8;
  overflow: hidden;
}

@media (max-width: 700px) {
  .tech-section .tech-body > h2 + .tech-image {
    min-height: 210px;
    margin: 18px 0 22px;
  }
}


.law-detail-panel {
  border-left: 4px solid var(--accent);
}
.control-law-shot img {
  object-fit: contain;
  background: #07111b;
}
