/*--------------------------------------------------
  ftracks — Modern static mockup
--------------------------------------------------*/
:root {
  /* Palette */
  --brand: #3d5afe;
  --text-primary: #ffffff;
  --text-secondary: #c7c7d5;
  --bg: #0b0d17;
  --card-bg: #11131e;
  --card-border: #1b1d29;
  --shadow: rgba(0, 0, 0, 0.45);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu,
    sans-serif;
}

/* Global Reset ----------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

/* Navbar --------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 23, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-login {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-login:hover {
  background: var(--brand);
  color: #fff;
}

/* Hero ----------------------------------------------------------------- */
.hero {
  max-width: 60rem;
  margin: 6rem auto 3rem;
  text-align: center;
  padding: 0 1rem;
}

.headline {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.subhead {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Cards Grid ------------------------------------------------------------ */
.cards {
  display: grid;
  gap: 2rem;
  max-width: 66rem;
  margin: 2rem auto 5rem;
  padding: 0 1rem;
}

/* Flight Card ----------------------------------------------------------- */
.flight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 18px -4px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.flight-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.airline {
  font-weight: 600;
}

.flight-number {
  color: var(--text-secondary);
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.badge.nonstop {
  color: #0f0;
}

.flight-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

.leg {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.time {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.airport {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Arrow + Duration */
.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  user-select: none;
}

.arrow svg {
  stroke: var(--text-primary);
  stroke-width: 2;
  fill: none;
  width: 60px;
  height: 10px;
}

.duration {
  white-space: nowrap;
}

/* Footer --------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Tweaks ----------------------------------------------------- */
@media (max-width: 600px) {
  .flight-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .arrow {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }
}