:root {
  --ink: #10212b;
  --muted: #5d6f77;
  --line: #d8e4e4;
  --paper: #fbfdfb;
  --soft: #edf5f3;
  --blue: #16697a;
  --blue-dark: #0c4858;
  --green: #2d8b71;
  --gold: #d79b35;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 228, 228, 0.78);
  background: rgba(251, 253, 251, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
}

.brand-mark.image-mark {
  width: 52px;
  background: transparent;
  color: inherit;
}

.brand-mark.image-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--blue-dark);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(22, 105, 122, 0.18);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-dark);
}

.button.ghost {
  color: var(--blue-dark);
}

.button.light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-dark);
}

.button.large {
  min-height: 50px;
  padding-inline: 22px;
  font-size: 15px;
}

.button.full {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #14262e;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 22, 29, 0.88) 0%, rgba(8, 22, 29, 0.68) 42%, rgba(8, 22, 29, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 22, 29, 0.72) 0%, rgba(8, 22, 29, 0) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 9vh, 96px) clamp(18px, 6vw, 78px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8de1c2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats strong {
  color: var(--white);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(68px, 9vw, 116px) 0;
}

.section-band {
  background: var(--soft);
}

.split,
.pricing-layout,
.contact-layout,
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro p,
.dashboard-copy p,
.pricing-layout p,
.contact-layout p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.price-card,
.form-panel,
.contact-form,
.records-grid > div,
.dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(16, 33, 43, 0.07);
}

.feature-card {
  min-height: 218px;
  padding: 24px;
}

.feature-card p,
.records-grid p,
.price-card p {
  color: var(--muted);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #f5f1e8;
  color: var(--blue-dark);
  font-weight: 800;
}

.dashboard {
  padding: 22px;
  box-shadow: var(--shadow);
}

.dashboard-top,
.metric-row,
.log-row {
  display: grid;
  gap: 12px;
}

.dashboard-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 20px;
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  border-radius: 999px;
  padding: 6px 10px;
  background: #e5f6ee;
  color: #1f765f;
  font-size: 12px;
  font-weight: 800;
}

.metric-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.metric-row div {
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  font-size: 26px;
}

.log-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.log-row {
  grid-template-columns: 0.8fr 1fr 0.8fr 0.5fr;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row.head {
  background: #f5f8f7;
  color: var(--ink);
  font-weight: 800;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.records-grid > div {
  padding: 24px;
}

.price-card {
  max-width: 420px;
  justify-self: end;
  padding: 30px;
}

.price {
  margin: 10px 0 12px;
  color: var(--blue-dark);
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

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

.form-panel,
.contact-form {
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(22, 105, 122, 0.16);
  border-color: var(--blue);
}

input:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.form-note {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer a {
  color: var(--blue-dark);
  font-weight: 800;
}

.dashboard-page {
  min-height: 100vh;
  background: #f4f8f7;
}

.dashboard-header {
  position: sticky;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.dashboard-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-welcome h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 6vw, 74px);
  color: var(--ink);
}

.dashboard-muted {
  color: var(--muted);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(16, 33, 43, 0.07);
}

.dashboard-card strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--blue-dark);
  font-size: 36px;
  line-height: 1;
}

.dashboard-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.flight-form {
  grid-column: 1 / -1;
}

.logbook-entry-scroll {
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.logbook-entry-grid {
  display: grid;
  min-width: 3260px;
  grid-template-columns:
    142px 150px 150px 190px 120px 120px 120px 300px 110px 110px
    160px 150px 150px 130px 130px 170px 130px 150px 170px 120px
    120px 150px 170px 150px 170px 150px 150px;
  gap: 10px;
  align-items: start;
}

.logbook-entry-grid label {
  min-width: 0;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.25;
}

.logbook-entry-grid input,
.logbook-entry-grid textarea {
  min-height: 44px;
  padding: 10px 11px;
  font-size: 13px;
}

.logbook-entry-grid textarea {
  resize: vertical;
}

.iacra-card {
  margin-bottom: 18px;
}

.iacra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.iacra-tile {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfa;
}

.iacra-tile span {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.iacra-tile strong {
  margin-top: 10px;
  color: var(--blue-dark);
  font-size: 30px;
}

.iacra-empty {
  color: var(--muted);
  font-weight: 700;
}

.flight-form h2,
.flights-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .site-header.nav-open .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
  }

  .site-header.nav-open .header-actions {
    justify-content: stretch;
  }

  .site-header.nav-open .header-actions .button {
    flex: 1;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(8, 22, 29, 0.9) 0%, rgba(8, 22, 29, 0.46) 100%),
      linear-gradient(90deg, rgba(8, 22, 29, 0.74), rgba(8, 22, 29, 0.18));
  }

  .hero-content {
    margin: 0 auto 44px;
  }

  .split,
  .pricing-layout,
  .contact-layout,
  .dashboard-layout,
  .dashboard-workspace,
  .iacra-grid,
  .feature-grid,
  .records-grid,
  .dashboard-panels,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .hero-stats,
  .dashboard-welcome,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button.large {
    width: 100%;
  }

  .metric-row,
  .log-row {
    grid-template-columns: 1fr;
  }

  .log-row {
    gap: 4px;
  }

  .feature-card {
    min-height: auto;
  }
}
