:root {
  color-scheme: dark;
  --bg: #060913;
  --surface: #111b2f;
  --surface-soft: #152644;
  --text: #edf2ff;
  --muted: #adc7df;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #070a12 0%, #05070c 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 18, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
}

.brand-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #030712;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.25);
}

.button--secondary {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
  border-color: rgba(125, 211, 252, 0.32);
}

.button--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-panel {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 25%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 20%),
    linear-gradient(175deg, rgba(8, 15, 30, 0.95), rgba(5, 8, 14, 0.98));
  pointer-events: none;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.04), transparent 30%, rgba(56, 189, 248, 0.08));
  mix-blend-mode: screen;
  opacity: 0.65;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
  display: grid;
  gap: 1.4rem;
}

.hero-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.5rem;
  background: rgba(8, 14, 26, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.hero-brand-mark .brand-logo {
  width: 4rem;
  height: 4rem;
}

.hero-brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.section-header h2,
.about-section h2,
.waitlist-card h2,
.hero-copy h1 {
  margin-top: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text,
.section-header p,
.about-section p,
.feature-card p,
.waitlist-card p,
.stat-card p,
.signup-message,
.footer-inner p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-text {
  margin: 1.75rem 0 0;
  max-width: 44rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-notes {
  margin-top: 1.5rem;
  max-width: 36rem;
}

.hero-notes p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.drone-visual {
  position: relative;
  width: min(420px, 100%);
  height: 420px;
  display: grid;
  place-items: center;
}

.drone-body {
  position: relative;
  width: 220px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.drone-core {
  position: absolute;
  inset: 34px 40px;
  border-radius: 20px;
  background: rgba(4, 9, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.drone-propeller {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.propeller--left {
  left: -26px;
  top: 10px;
}

.propeller--right {
  right: -26px;
  top: 10px;
}

.drone-halo {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 55%);
  filter: blur(12px);
}

.drone-glow {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.35);
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.45);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.features-grid,
.workflow-grid,
.use-cases-grid,
.specs-grid,
.segment-grid {
  display: grid;
  gap: 1.5rem;
}

.features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segment-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.segment-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.9rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  transition: transform 250ms ease, border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.segment-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.segment-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.segment-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-card,
.workflow-step,
.use-case-card,
.spec-card,
.waitlist-card,
.stat-card {
  border-radius: 28px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: transform 250ms ease, border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.feature-card:hover,
.workflow-step:hover,
.use-case-card:hover,
.spec-card:hover,
.waitlist-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1.4rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-strong);
  font-size: 1.4rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3,
.about-section h2,
.waitlist-card h2,
.workflow-step h3,
.use-case-card h3,
.spec-card span {
  color: var(--text);
}

.feature-card h3,
.workflow-step h3,
.use-case-card h3 {
  margin: 0 0 0.85rem;
}

.how-it-works-section .workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step {
  display: grid;
  gap: 1rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-strong);
  font-weight: 700;
}

.use-cases-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.use-case-card h3 {
  font-size: 1.1rem;
}

.specs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec-card span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.about-section {
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat-card {
  min-height: 140px;
}

.stat-card span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.waitlist-section {
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.96), rgba(7, 11, 18, 0.92));
}

.waitlist-card {
  display: grid;
  gap: 1.75rem;
  padding: 2.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signup-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.input-group {
  display: grid;
  gap: 0.75rem;
}

.input-group span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  min-height: 3.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.signup-form textarea {
  min-height: 140px;
  resize: vertical;
}

.signup-form input:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.input-full {
  grid-column: span 2;
}

.signup-message {
  margin: 0;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.signup-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.signup-message.error {
  color: #f87171;
}

.signup-message.success {
  color: var(--accent);
}

.admin-panel {
  display: grid;
  gap: 1.5rem;
}

.page-shell {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(74, 222, 128, 0.08), transparent 22%),
    linear-gradient(180deg, #060913 0%, #09111b 100%);
  padding: 2rem;
}

.content-shell {
  display: grid;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--text);
  font-weight: 700;
}

.admin-card {
  border-radius: 32px;
  background: rgba(11, 18, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3);
  padding: 2rem;
}

.admin-login-section,
.admin-dashboard-section {
  display: grid;
  gap: 1.5rem;
}

.login-card {
  max-width: 560px;
  margin: 0 auto;
}

.admin-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.login-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.8;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-form input {
  width: 100%;
  min-height: 3.8rem;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.login-actions {
  display: flex;
  justify-content: flex-end;
}

.button.loading {
  position: relative;
  pointer-events: none;
}

.button.loading::after {
  content: '';
  position: absolute;
  inset: 12px 16px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-error,
.lockout-note {
  margin: 0;
  min-height: 1.4rem;
  font-size: 0.95rem;
}

.login-error {
  color: #f87171;
}

.lockout-note {
  color: #fbbf24;
}

.dashboard-card {
  display: grid;
  gap: 1.5rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.35rem 1.25rem;
}

.status-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.status-card strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
}

.admin-note {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .dashboard-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .login-actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-actions .search-group {
  flex: 1 1 280px;
  min-width: 240px;
}

.admin-actions .action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-actions input {
  width: 100%;
  min-height: 3.8rem;
  padding: 0 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.table-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.data-table td {
  color: var(--text);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.06);
}

.no-results {
  padding: 2rem;
  color: var(--muted);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .input-full {
    grid-column: auto;
  }

  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions .action-buttons {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .table-card {
    overflow-x: auto;
  }

  .admin-actions input {
    min-height: 3.4rem;
  }
}

.site-footer {
  padding: 3rem 0 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

.footer-links,
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a,
.footer-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.footer-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .how-it-works-section .workflow-grid,
  .use-cases-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .hero-section {
    padding-top: 4.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.8rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-copy {
    padding-top: 1rem;
  }
}

/* Legal pages (privacy / terms) */
.legal-card {
  max-width: 920px;
  margin: 0 auto;
}
.legal-header {
  margin-bottom: 1.5rem;
}
.legal-header h1 {
  margin: 0.5rem 0 0.25rem;
}
.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.legal-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}
.legal-content h2:first-of-type {
  margin-top: 1rem;
}
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.85;
}
.legal-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.legal-content li {
  margin-bottom: 0.4rem;
}
.legal-content strong {
  color: var(--text);
}
.legal-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}
.legal-callout p {
  margin: 0;
  color: #fca5a5;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
}
.legal-toc a {
  color: var(--accent);
  font-size: 0.92rem;
  text-decoration: none;
}
.legal-toc a:hover {
  text-decoration: underline;
}
.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}
