:root {
  --bg: #ffffff;
  --text: #171615;
  --muted: #6e5b48;
  --border: #e5e5e5;
  --accent: #41342d;
  --highlight: #a5b2bb;
  --max-width: 1100px;
}

/* =========================
   RESET & BASE
   ========================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   GLOBAL LINKS
   ========================= */
a,
a:visited {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER & NAV
   ========================= */
header {
  border-bottom: 1px solid var(--border);
  background: white;
  position: relative;
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 42px;
}

/* Mobile menu button */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  color: var(--text);
  line-height: 1;
  z-index: 1100;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  font-size: 0.9rem;
}

/* =========================
   MOBILE NAV
   ========================= */
@media (max-width: 767px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    display: none;
    z-index: 1000;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav-links.open {
    display: flex;
  }
}

/* =========================
   MAIN LAYOUT
   ========================= */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

section {
  margin-bottom: 4rem;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

p {
  color: var(--muted);
  max-width: 720px;
}

/* Utility */
.center {
  text-align: center;
}

/* =========================
   GRID & CARDS
   ========================= */
.grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card a,
.card a:visited {
  color: inherit;
}

/* 404 page helper */
main.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* =========================
   404 PAGE STYLES
   ========================= */
.error-hero {
  max-width: 720px;
  margin: 0 auto;
}

.error-code {
  font-size: 5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.error-hint {
  font-size: 0.85rem;
  margin-top: 1.5rem;
  color: var(--highlight);
}

/* Light animation */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-hero {
  animation: floatIn 0.6s ease-out both;
}

/* Fake search */
.fake-search {
  margin: 2rem auto 1rem;
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  flex-direction: column;
}

.fake-search input {
  flex: 1;
}

.error-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* =========================
   FORMS & BUTTONS
   ========================= */
input,
textarea,
select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

button {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
}

/* =========================
   PARTNER LOGO MARQUEE
   ========================= */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.logo-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-track span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================
   DRONE SCROLL FEATURE
   ========================= */
.drone-section h2 {
  margin-bottom: 1.5rem;
}

.drone-section {
  position: relative;
  height: 55vh;
  margin: 2rem 0 5rem;

  /* Create offscreen runway */
  overflow: hidden;
  padding-left: 20vw;
  padding-right: 20vw;
}

.drone-section::before,
.drone-section::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  pointer-events: none;
  z-index: 5;
}

.drone-section::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    rgba(255,255,255,0) 100%
  );
}

.drone-section::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--bg) 0%,
    rgba(255,255,255,0) 100%
  );
}

.drone-track {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  pointer-events: none;
}

.drone {
  width: clamp(260px, 70vw, 520px);
  height: auto;
  transform: translateX(-60vw);
  will-change: transform, filter, opacity;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
  transition: filter 0.15s linear;
}

.drone-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 1.5rem;
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .drone {
    transform: translateX(0);
  }
}

/* =========================
   KRAMER AI SECTION
   ========================= */
.ai-section {
  min-height: 70vh;      /* REQUIRED for typing effect */
  margin-bottom: 6rem;
}

.ai-terminal {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  font-family: ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 220px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================
   DESKTOP ENHANCEMENTS
   ========================= */
@media (min-width: 768px) {

  h1 {
    font-size: 2.6rem;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
