/* Flight Viewer — landing page (based on the Flight Dashboard LP) */
:root {
  --bg: #050811;
  --bg-alt: #0a1224;
  --panel: #0e1a33;
  --line: rgba(148, 197, 255, 0.14);
  --text: #e6edf7;
  --muted: #9fb0c8;
  --accent: #ffb547;
  --accent-2: #4cc2ff;
  --warm: #fbbf24;
  --radius: 16px;
  --font: 'Noto Sans JP', 'Outfit', system-ui, sans-serif;
  --display: 'Outfit', 'Noto Sans JP', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ffb547, #f97316);
  color: #1a0f00; box-shadow: 0 8px 28px rgba(255, 150, 40, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 150, 40, .5); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 17, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M23.5 6.5l-4.6 4.6-11-3.2-1.6 1.6 8.9 4.9-4.2 4.2-3-.6-1.2 1.2 3.4 2.2 2.2 3.4 1.2-1.2-.6-3 4.2-4.2 4.9 8.9 1.6-1.6-3.2-11 4.6-4.6c.9-.9.9-2.1 0-2.9-.8-.8-2-.8-2.9 0z' fill='%23ffb547'/%3E%3C/svg%3E") center / 20px no-repeat,
    linear-gradient(135deg, #0b1730, #050811);
  box-shadow: inset 0 0 0 1px rgba(255,181,71,.5);
}
.logo-text { font-family: var(--display); font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font: 600 13px var(--font); cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 40%; transform: scale(1.04); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,17,.96) 0%, rgba(5,8,17,.88) 42%, rgba(5,8,17,.2) 72%, rgba(5,8,17,0) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-rain {
  position: absolute; inset: -20% 0 0; opacity: .22; pointer-events: none;
  background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(160,220,255,.55) 22px 23px, transparent 23px 64px);
  animation: rain 1.1s linear infinite;
}
@keyframes rain { to { transform: translate(-22px, 120px); } }
@media (prefers-reduced-motion: reduce) { .hero-rain { animation: none; } }
.hero-content { position: relative; padding: 96px 0 72px; max-width: 1180px; }
.hero-content > * { max-width: 640px; }
.eyebrow, .kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--accent);
  margin: 0 0 14px; font-weight: 600;
}
.hero h1 {
  font-family: var(--display); font-weight: 900; line-height: 1.2; margin: 0 0 22px;
  font-size: clamp(36px, 6vw, 64px); letter-spacing: -.01em;
}
.accent {
  background: linear-gradient(90deg, #ffb547, #ffd38a 55%, #4cc2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; color: #c8d5e8; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.platforms { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 26px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; color: #fff; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 {
  font-family: var(--display); font-weight: 800; margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.3;
}
.section-lead { color: var(--muted); max-width: 760px; margin: 0 0 56px; font-size: 16px; }

.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .shot { order: 2; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.45); background: #000; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); background: var(--panel); }
.shot.wide { margin-top: 48px; }
.num { font-family: var(--mono); color: var(--accent); font-size: 14px; font-weight: 600; }
.feature h3 { font-family: var(--display); font-size: 26px; margin: 6px 0 14px; line-height: 1.35; }
.feature p { color: #c3cfe0; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .3); color: #ffe2b0;
}

/* Layers split */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spec li { display: grid; gap: 2px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.spec b { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.spec li > span { color: var(--muted); font-size: 14px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }

/* Cards */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tech { padding: 24px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tech h3 { margin: 0 0 8px; font-size: 18px; }
.tech p { margin: 0; color: var(--muted); font-size: 15px; }

/* Platforms */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.platform h3 { font-family: var(--display); font-size: 26px; margin: 0 0 16px; }
.platform ul { list-style: none; padding: 0; margin: 0 0 24px; }
.platform li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.platform li span { color: var(--muted); }
.platform li strong { text-align: right; }
.note { color: var(--muted); font-size: 14px; margin: 28px 0 14px; }
.warn {
  font-size: 14px; color: #fde68a; margin: 0;
  padding: 16px 20px; border-radius: 12px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3);
}

/* CTA */
.cta {
  padding: 110px 0; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,170,255,.22), transparent 60%), var(--bg);
}
.cta h2 { font-family: var(--display); font-size: clamp(28px, 4.4vw, 46px); margin: 0 0 32px; line-height: 1.35; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.credits { color: var(--muted); font-size: 12.5px; max-width: 640px; margin: 14px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Manual pages ---------- */
.manual { padding: 48px 0 96px; max-width: 900px; }
.manual h1 { font-family: var(--display); font-size: clamp(26px, 4vw, 36px); line-height: 1.35; }
.manual h2 { font-family: var(--display); margin-top: 40px; }
.manual h3 { margin-top: 32px; }
.manual table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.manual th, .manual td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.manual th { background: var(--panel); }
.manual code { font-family: var(--mono); font-size: .9em; background: var(--panel); padding: 2px 6px; border-radius: 6px; }
.manual kbd {
  font-family: var(--mono); font-size: .85em; padding: 1px 7px; border-radius: 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel);
}
.manual blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--warm); background: rgba(251,191,36,.07); color: #fde68a; }
.manual hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .feature, .feature.reverse, .split { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .shot { order: 0; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .tech-grid, .platform-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .logo-text { display: none; }
  .hero { min-height: auto; }
  .hero-content { padding: 64px 0 48px; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,8,17,.97) 20%, rgba(5,8,17,.7)); }
  .section { padding: 72px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .btn-lg { width: 100%; }
  .platform li { flex-direction: column; gap: 2px; }
  .platform li strong { text-align: left; }
}
