:root {
  --bg: #070b14;
  --surface: rgba(13, 19, 32, 0.9);
  --surface-2: rgba(255, 255, 255, 0.03);
  --text: #edf4ff;
  --muted: #95a7ba;
  --muted-2: #6f8196;
  --blue: #00aaff;
  --cyan: #00ffcc;
  --danger: #ff5f7a;
  --warning: #ffbd59;
  --success: #00d78a;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --wrap: min(1260px, calc(100% - 32px));

  --route: #800020;
  --tower: #cfcfcf;
  --relief: #e2d4d8;
  --pro-body: #ececec;
  --pro-line: #d0d0d0;
  --card-white: #ffffff;
  --card-line: #e6e6e6;
  --card-text: #111111;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 170, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #05070d 0%, #060810 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(6, 8, 16, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand.small {
  font-size: 0.92rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,255,204,0.45), 0 0 18px rgba(0,255,204,0.45);
  animation: pulse 2.8s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes pulse {
  0%,100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,255,204,0.45), 0 0 18px rgba(0,255,204,0.45);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 0 10px rgba(0,255,204,0), 0 0 30px rgba(0,255,204,0.6);
  }
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.topnav a,
.footer-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.topnav a:hover,
.footer-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.topnav a.active {
  color: var(--cyan);
}

.session-badge {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,204,0.16);
  color: var(--cyan);
  background: rgba(0,255,204,0.06);
  font-size: 0.85rem;
  white-space: nowrap;
}

.nubik-logo-floating {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 120;
  width: 50px;
  pointer-events: none;
}

.nubik-logo-floating img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-section {
  padding: 28px 0;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-panel {
  padding: clamp(24px, 4vw, 34px);
}

.hero-panel {
  overflow: hidden;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.section-tag {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.08;
}

.section-copy,
.panel-lead,
.dashboard-lead,
.inline-note,
.auth-copy,
.verification-hint,
.skygrid-hero-copy {
  color: var(--muted);
  line-height: 1.85;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skygrid-highlight {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(0,255,204,0.06);
  border: 1px solid rgba(0,255,204,0.16);
  color: var(--text);
  line-height: 1.8;
}

.access-alert {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,189,89,0.08);
  border: 1px solid rgba(255,189,89,0.28);
  color: #ffd98c;
  line-height: 1.8;
}

.skygrid-page-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  align-items: start;
}

.skygrid-info-card,
.skygrid-auth-card,
.tutorial-card {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.hero-bullets {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.hero-bullets li {
  color: var(--muted);
  line-height: 1.72;
}

.hero-inline-actions,
.inline-actions,
.verify-inline-actions,
.tutorial-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-inline-actions {
  margin-top: 18px;
}

.auth-card.single {
  width: 100%;
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 20px;
}

.auth-title {
  margin: 0;
  font-size: 1.2rem;
}

.auth-tabs.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-tab {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-tab:hover,
.auth-tab.active {
  color: var(--text);
  border-color: rgba(0,170,255,0.3);
  background: rgba(0,170,255,0.08);
}

.auth-panel {
  display: none;
  gap: 14px;
}

.auth-panel.active {
  display: grid;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(6,10,18,0.8);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: 0.2s ease;
}

.input:focus {
  border-color: rgba(0,170,255,0.3);
  box-shadow: 0 0 0 4px rgba(0,170,255,0.08);
}

.input::placeholder {
  color: var(--muted-2);
}

.verification-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,170,255,0.06);
  border: 1px solid rgba(0,170,255,0.14);
}

.verification-box-head h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.verification-box-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.btn,
.secondary-btn,
.ghost-btn,
.flight-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  font-weight: 700;
}

.btn {
  color: #00131e;
  background: linear-gradient(135deg, var(--cyan), #64ffd5);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.secondary-btn {
  background: rgba(0,170,255,0.1);
  color: var(--cyan);
  border-color: rgba(0,170,255,0.18);
}

.secondary-btn:hover {
  background: rgba(0,170,255,0.16);
}

.ghost-btn {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: rgba(255,255,255,0.08);
}

.ghost-btn:hover {
  background: rgba(255,255,255,0.07);
}

.full-width {
  width: 100%;
}

.message-box {
  display: none;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.55;
}

.message-box.show {
  display: block;
}

.message-box.success {
  color: #dfffee;
  background: rgba(0,215,138,0.12);
  border-color: rgba(0,215,138,0.3);
}

.message-box.error {
  color: #ffd8e0;
  background: rgba(255,95,122,0.1);
  border-color: rgba(255,95,122,0.28);
}

.message-box.info {
  color: #dceeff;
  background: rgba(0,170,255,0.1);
  border-color: rgba(0,170,255,0.26);
}

.mode-showcase-grid,
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mode-showcase-card {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.mode-showcase-card p,
.tutorial-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.mode-mini-pill,
.access-summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,170,255,0.08);
  border: 1px solid rgba(0,170,255,0.16);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.compat-center-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.centered-table {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.26);
  overflow: hidden;
}

.dji-compat-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.dji-compat-header h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.dji-compat-header p {
  margin: 0;
  font-size: 1.02rem;
  opacity: 0.92;
}

.dji-table-wrapper {
  overflow-x: auto;
  padding: 20px;
}

.dji-compat-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.dji-compat-table thead {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
  color: white;
}

.dji-compat-table th,
.dji-compat-table td {
  border: 1px solid #bfc4ca;
}

.dji-compat-table th {
  padding: 15px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.dji-compat-table th:first-child {
  text-align: left;
  padding-left: 20px;
  min-width: 220px;
}

.dji-compat-table td {
  padding: 12px 10px;
  text-align: center;
  color: #222;
}

.dji-compat-table td:first-child {
  text-align: left;
  padding-left: 20px;
  font-weight: 500;
  color: #333;
  background: #f8f9fa;
}

.dji-compat-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.dji-check,
.dji-no,
.dji-warning {
  font-size: 1.4rem;
  font-weight: bold;
}

.dji-check {
  color: #4caf50;
}

.dji-no {
  color: #f44336;
}

.dji-warning {
  color: #ff9800;
}

.dji-note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 30px;
  border-radius: 5px;
  color: #333;
}

.dji-note strong {
  color: #856404;
}

.dji-note ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.dashboard-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.justify-right {
  justify-content: flex-end;
  width: 100%;
}

.flight-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.flight-card {
  display: grid;
  gap: 0;
  background: var(--card-white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.flight-card.pro {
  background: var(--pro-body);
  border-color: var(--pro-line);
}

.flight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
  border-color: #d0d0d0;
}

.flight-card-top {
  min-height: 122px;
  display: grid;
  place-items: center;
  padding: 16px 12px 12px;
  background: transparent;
}

.flight-card-body {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
  color: var(--card-text);
}

.flight-card-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(128,0,32,.06);
  color: #555;
  border: 1px solid rgba(128,0,32,.14);
  font-size: .76rem;
  font-weight: 700;
}

.flight-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.flight-card p {
  margin: 0;
  color: #555;
  font-size: .88rem;
  line-height: 1.52;
  min-height: 72px;
}

.flight-card-cta {
  margin-top: 4px;
  min-height: 42px;
  width: 100%;
  background: var(--route);
  color: #fff;
  border-color: var(--route);
  border-radius: 10px;
  font-size: .88rem;
}

.card-anim-svg {
  width: 56px;
  height: 56px;
  display: block;
  overflow: visible;
  color: var(--route);
}

.route-track {
  stroke: var(--route);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tower-shape {
  fill: var(--tower);
}

.relief-shape {
  fill: var(--relief);
  stroke: none;
  opacity: 0.55;
}

.drone-mark {
  color: var(--route);
}

.persp {
  transform: perspective(160px) rotateX(22deg);
  transform-origin: center bottom;
}

.planner-header-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.planner-clean-frame iframe {
  display: block;
  width: 100%;
  min-height: 78vh;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

footer {
  padding: 8px 0 42px;
}

.footer-panel {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-copy p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 1100px) {
  .skygrid-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .topnav {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --wrap: min(100% - 16px, calc(100% - 16px));
  }

  .session-badge {
    display: none;
  }

  .hero-inline-actions,
  .inline-actions,
  .verify-inline-actions,
  .tutorial-cta-row,
  .planner-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-showcase-grid,
  .tutorial-grid,
  .flight-cards-grid {
    grid-template-columns: 1fr;
  }

  .dji-compat-header h2 {
    font-size: 1.45rem;
  }

  .dji-compat-table th,
  .dji-compat-table td {
    padding: 8px 5px;
    font-size: 0.85rem;
  }

  .dji-compat-table th:first-child,
  .dji-compat-table td:first-child {
    min-width: 150px;
    padding-left: 10px;
  }
}
