/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #dbeafe;
  --accent:        #0ea5e9;
  --dark:          #0f172a;
  --text:          #334155;
  --text-light:    #64748b;
  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --border:        #e2e8f0;
  --success:       #10b981;
  --error:         #ef4444;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 20px 48px rgba(0,0,0,0.12);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--text-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
  line-height: 1;
  position: relative;
}

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: white;
  color: var(--primary);
  border-color: white;
}

.btn--white:hover {
  background: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* Loading state */
.btn--loading .btn-text { opacity: 0; }
.btn--loading .btn-spinner { display: block; }

.btn-spinner {
  display: none;
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.navbar__logo-img {
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--primary);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lang-switcher__active {
  color: var(--primary);
}

.lang-switcher__link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.lang-switcher__link:hover {
  color: var(--primary);
}

.lang-switcher__sep {
  color: var(--border);
  font-size: 0.75rem;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.15s;
}

.navbar__hamburger:hover {
  background: var(--bg-alt);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.navbar__hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 55%, #0c4a6e 100%);
  color: white;
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg-alt);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  width: fit-content;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero h1 {
  color: white;
}

.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .container > .hero__inner > .hero__content > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* ===== HERO VISUAL / MOCK DASHBOARD ===== */
.hero__visual {
  position: relative;
}

.mock-dashboard {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.mock-dashboard:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}

.mock-dashboard__header {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-dot:nth-child(1) { background: #fc5c65; }
.mock-dot:nth-child(2) { background: #f7b731; }
.mock-dot:nth-child(3) { background: #20bf6b; }

.mock-dashboard__title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
  font-family: 'Inter', monospace;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #f1f5f9;
}

.mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  gap: 2px;
  border-right: 1px solid #f1f5f9;
}

.mock-stat:last-child { border-right: none; }

.mock-stat__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.mock-stat__label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.text-blue  { color: #2563eb; }
.text-green { color: #10b981; }
.text-amber { color: #f59e0b; }

.mock-dashboard__body {
  padding: 0 0 8px;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1.2fr 0.9fr;
  gap: 8px;
  padding: 7px 14px;
  align-items: center;
  font-size: 0.75rem;
}

.mock-row--header {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.mock-row--item {
  border-bottom: 1px solid #f8fafc;
}

.mock-row--muted {
  opacity: 0.55;
}

.mock-cell--header {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.3px;
}

.mock-cell--name   { font-weight: 600; color: #1e293b; }
.mock-cell--agency { color: #64748b; }
.mock-cell--pilot  { color: #64748b; }

.mock-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  width: fit-content;
}

.mock-status--green { background: #dcfce7; color: #16a34a; }
.mock-status--blue  { background: #dbeafe; color: #2563eb; }
.mock-status--amber { background: #fef3c7; color: #b45309; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-card h3 {
  color: var(--dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.step-content h3 {
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== DEMO FORM ===== */
.demo {
  padding: 100px 0;
  background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 60%, #0c4a6e 100%);
}

.demo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.demo__text {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo__text h2 {
  color: white;
}

.demo__text > p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

.demo__perks {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
  list-style: none;
}

.demo__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== FORM ===== */
.demo__form {
  background: white;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--dark);
}

.form-required {
  color: var(--error);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.925rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--dark);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0bec5;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.is-error,
.form-group textarea.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.55;
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 16px;
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  font-size: 1rem;
}

.form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-message--success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.form-message--error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 52px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer__brand .navbar__logo {
  color: white;
  margin-bottom: 12px;
}

.footer__brand .logo-text {
  color: white;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  line-height: 1.65;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  justify-content: flex-end;
  align-items: center;
}

.footer__links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__inner {
    gap: 40px;
  }

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

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

  .hero__visual {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .demo__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps::before {
    display: none;
  }

  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
}

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

  .navbar__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .navbar__links.is-open {
    display: flex;
  }

  .navbar__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .navbar__links a:last-child {
    border-bottom: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .demo__form {
    padding: 28px 20px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn--lg {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .demo__form {
    padding: 24px 16px;
  }
}
