:root {
  color-scheme: light dark;
  --color-primary: #0046ff;
  --color-primary-dark: #0031b3;
  --color-accent: #65ff87;
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: 180ms ease;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(0, 70, 255, 0.08), transparent 45%),
    radial-gradient(circle at bottom left, rgba(101, 255, 135, 0.12), transparent 45%),
    var(--color-bg);
}

html[data-theme='dark'] {
  --color-bg: #0f172a;
  --color-surface: #121e36;
  --color-text: #e2e8f0;
  --color-muted: #cbd5f5;
  --color-border: rgba(148, 163, 184, 0.14);
}

[data-theme='dark'] .page {
  background: radial-gradient(circle at top right, rgba(0, 70, 255, 0.18), transparent 40%),
    radial-gradient(circle at bottom left, rgba(101, 255, 135, 0.16), transparent 40%),
    #0f172a;
}

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

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4vw;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--color-border);
}

[data-theme='dark'] .top-bar {
  background: rgba(15, 23, 42, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo__box {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #1268ff);
}

.logo__pin {
  position: absolute;
  bottom: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(101, 255, 135, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.nav__link {
  position: relative;
  padding-bottom: 0.25rem;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #1268ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 70, 255, 0.25);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.65rem 1.4rem;
}

.btn--outline:hover {
  box-shadow: 0 6px 18px rgba(0, 70, 255, 0.2);
  transform: translateY(-1px);
}

[data-theme='dark'] .btn--outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

[data-theme='dark'] .btn--outline:hover {
  box-shadow: 0 6px 18px rgba(101, 255, 135, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 70, 255, 0.3);
}

.btn--ghost {
  background: rgba(0, 70, 255, 0.12);
  color: var(--color-primary);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  padding: 0;
}

[data-theme='dark'] .btn--ghost {
  background: rgba(101, 255, 135, 0.14);
  color: var(--color-accent);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  padding: 5rem 8vw 4rem;
  align-items: center;
}

.hero__content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 2.8vw + 1rem, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.tracking-form {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tracking-form__label {
  font-weight: 600;
}

.tracking-form__field {
  display: flex;
  gap: 0.75rem;
}

.tracking-form input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: var(--color-text);
}

.tracking-form input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.tracking-form input:focus-visible {
  outline: 2px solid rgba(0, 70, 255, 0.3);
  outline-offset: 2px;
}

[data-theme='dark'] .tracking-form input {
  background: rgba(18, 30, 54, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
}

.tracking-form__hint {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.is-hidden {
  display: none !important;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-map {
  position: relative;
  width: min(480px, 90%);
  aspect-ratio: 1;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(0, 70, 255, 0.18), rgba(255, 255, 255, 0.1));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.hero-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 53H320" stroke="rgba(255,255,255,0.15)" stroke-width="1"/%3E%3Cpath d="M0 107H320" stroke="rgba(255,255,255,0.1)" stroke-width="1"/%3E%3Cpath d="M0 160H320" stroke="rgba(255,255,255,0.12)" stroke-width="1"/%3E%3Cpath d="M0 213H320" stroke="rgba(255,255,255,0.1)" stroke-width="1"/%3E%3Cpath d="M0 266H320" stroke="rgba(255,255,255,0.08)" stroke-width="1"/%3E%3Cpath d="M53 0L53 320" stroke="rgba(255,255,255,0.15)" stroke-width="1"/%3E%3Cpath d="M107 0L107 320" stroke="rgba(255,255,255,0.1)" stroke-width="1"/%3E%3Cpath d="M160 0L160 320" stroke="rgba(255,255,255,0.12)" stroke-width="1"/%3E%3Cpath d="M213 0L213 320" stroke="rgba(255,255,255,0.1)" stroke-width="1"/%3E%3Cpath d="M266 0L266 320" stroke="rgba(255,255,255,0.08)" stroke-width="1"/%3E%3C/svg%3E');
  background-size: cover;
  opacity: 0.5;
}

.hero-map__orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.hero-map__orbit--one {
  inset: 18%;
}

.hero-map__orbit--two {
  inset: 8%;
  animation-duration: 34s;
}

.hero-map__marker {
  position: absolute;
  width: 16px;
  height: 16px;
}

.hero-map__marker--one {
  top: 22%;
  left: 28%;
}

.hero-map__marker--two {
  bottom: 25%;
  right: 20%;
}

.marker__dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(101, 255, 135, 0.6);
}

.marker__pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(101, 255, 135, 0.6);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero-map__plane {
  position: absolute;
  width: 60px;
  height: 60px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(0, 70, 255, 0.4));
  animation: float 6s ease-in-out infinite;
}

.section-header {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 720px;
}

.section-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.results {
  padding: 4rem 6vw;
}

.results__card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.results__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.summary__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.summary__value {
  margin-top: 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.summary__destination {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline.is-visible {
  animation: fade-in 320ms ease;
}

.timeline__placeholder {
  text-align: center;
  color: var(--color-muted);
  margin: 0;
}

.timeline__item {
  display: grid;
  gap: 0.3rem;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.timeline__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 70, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
  position: relative;
}

[data-theme='dark'] .timeline__icon {
  background: rgba(101, 255, 135, 0.14);
  color: var(--color-accent);
}

.timeline__content {
  padding-left: 0.75rem;
  border-left: 2px solid rgba(0, 70, 255, 0.12);
}

.timeline__content strong {
  font-weight: 600;
}

.timeline__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.timeline__item:last-child .timeline__content {
  border-color: rgba(101, 255, 135, 0.4);
}

.timeline__item:last-child .timeline__icon {
  background: rgba(101, 255, 135, 0.18);
  color: #0f172a;
}

.results__feedback {
  font-weight: 600;
  color: var(--color-primary);
  min-height: 24px;
}

.benefits {
  padding: 4rem 6vw;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.policies {
  padding: 4rem 6vw;
}

.policies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.policy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.75rem;
}

.policy-card h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
}

.policy-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.about {
  padding: 4rem 6vw;
}

.about__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.about__intro h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  margin-bottom: 1rem;
}

.about__intro p {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.about__highlights {
  display: grid;
  gap: 1rem;
}

.about-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.about-card__title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.benefit {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.benefit__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(0, 70, 255, 0.12);
  margin-bottom: 1rem;
  position: relative;
}

.benefit__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 28px 28px;
  background-position: center;
  background-repeat: no-repeat;
}

.benefit__icon--signal::after {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19H6V13H4V19ZM9 19H11V5H9V19ZM14 19H16V9H14V19ZM19 19H21V3H19V19Z' fill='%230046FF'/%3E%3C/svg%3E");
}

.benefit__icon--bell::after {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 17H18L16.978 15.543C16.355 14.657 16.01 13.559 16 12.429V10C16 7.857 14.988 6 12.5 5.5V4.5C12.5 3.672 11.828 3 11 3C10.172 3 9.5 3.672 9.5 4.5V5.5C7.012 6 6 7.857 6 10V12.429C5.99 13.559 5.645 14.657 5.022 15.543L4 17ZM11 21C12.105 21 13 20.105 13 19H9C9 20.105 9.895 21 11 21Z' fill='%230046FF'/%3E%3C/svg%3E");
}

.benefit__icon--globe::after {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.476 2 2 6.477 2 12C2 17.523 6.476 22 12 22C17.524 22 22 17.523 22 12C22 6.477 17.524 2 12 2ZM6 12C6 11.365 6.077 10.75 6.223 10.164L8.97 12.911V13.999H10.06V15.089H11.15L13.9 17.838C13.314 17.984 12.698 18.061 12.063 18.061C8.698 18.061 6 15.363 6 12ZM17.777 13.836L15.03 11.089V10H13.94V8.91H12.85L10.101 6.161C10.687 6.015 11.303 5.938 11.938 5.938C15.303 5.938 18.001 8.636 18.001 12C18.001 12.636 17.924 13.251 17.777 13.836Z' fill='%230046FF'/%3E%3C/svg%3E");
}

.benefit__icon--bolt::after {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.956 2L6 14H10L9.044 22L16 10H12L12.956 2Z' fill='%230046FF'/%3E%3C/svg%3E");
}

.generator {
  padding: 4rem 6vw;
}

.admin-main {
  flex: 1;
  padding: 4rem 6vw 5rem;
  display: flex;
  justify-content: center;
}

.admin-panel {
  width: min(960px, 100%);
  display: grid;
  gap: 2rem;
}

.admin-panel h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  margin: 0;
}

.admin-panel__subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.admin-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: grid;
  gap: 1.5rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-card__hint {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

.admin-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-card .generator__layout {
  padding: 0;
  box-shadow: none;
  border: none;
}

.generator__layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.generator__form,
.generator__output {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.8;
}

[data-theme='dark'] .form-group input,
[data-theme='dark'] .form-group textarea,
[data-theme='dark'] .form-group select {
  background: rgba(18, 30, 54, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
}

.generated-code {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  min-height: 1.8rem;
}

.route-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
}

.generator__note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.enterprise {
  padding: 4rem 6vw 5rem;
}

.enterprise__card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.enterprise__info ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  display: grid;
  gap: 0.75rem;
}

.enterprise__form {
  display: grid;
  gap: 0.75rem;
}

.enterprise__form input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
}

[data-theme='dark'] .enterprise__form input {
  background: rgba(18, 30, 54, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
}

.enterprise__form input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

[data-theme='dark'] .enterprise__form input {
  background: rgba(18, 30, 54, 0.92);
  border-color: rgba(148, 163, 184, 0.28);
}

.footer {
  margin-top: auto;
  padding: 2rem 6vw;
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-muted);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

[data-theme='dark'] .footer {
  background: rgba(15, 23, 42, 0.6);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.9;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -52%);
  }
  50% {
    transform: translate(-48%, -48%);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 4rem;
  }

  .top-bar {
    padding-inline: 6vw;
  }
}

@media (max-width: 860px) {
  .top-bar {
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .admin-main {
    padding-top: 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 6vw;
  }

  .hero__visual {
    order: -1;
  }

  .tracking-form__field {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .top-bar {
    padding: 1rem 5vw;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .results,
  .benefits,
  .generator,
  .enterprise,
  .about,
  .policies {
    padding-inline: 5vw;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .policies__grid {
    grid-template-columns: 1fr;
  }

  .results__card,
  .generator__form,
  .generator__output,
  .enterprise__card,
  .admin-card,
  .policy-card {
    padding: 1.5rem;
  }

  .admin-main {
    padding: 3rem 5vw 4rem;
  }
}
