﻿/* ============================================
   Special Cargo вЂ” AI-Powered Air Cargo
   B2B Logistics вЂў Premium вЂў ZOR
   ============================================ */

:root {
  --bg: #060a12;
  --bg-card: #0c111a;
  --bg-alt: #080d14;
  --surface: #121a28;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.5);
  --border: rgba(255, 255, 255, 0.06);
  --success: #10b981;
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-cta: 0 12px 40px rgba(59, 130, 246, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal .service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.2s, box-shadow 0.2s;
}

.reveal.visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.reveal .service-card:nth-child(1) { transition-delay: 0.05s; }
.reveal .service-card:nth-child(2) { transition-delay: 0.1s; }
.reveal .service-card:nth-child(3) { transition-delay: 0.15s; }
.reveal .service-card:nth-child(4) { transition-delay: 0.2s; }
.reveal .service-card:nth-child(5) { transition-delay: 0.25s; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

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

.lang-switcher {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
}

.lang-btn {
  padding: 0.4rem 0.65rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.btn-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta-header:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-cta-icon {
  font-size: 1em;
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
}

.nav-toggle::before { top: 8px; }
.nav-toggle::after { bottom: 8px; }

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.75rem;
  }
  .header-actions .lang-switcher { display: none; }
  .btn-cta-header .btn-cta-icon { display: inline; }
  .btn-cta-header span:not(.btn-cta-icon) { display: none; }
  .btn-cta-header { padding: 0.5rem 0.75rem; }
  .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(4.5rem, 12vw, 7rem) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(59, 130, 246, 0.25), transparent 50%),
    radial-gradient(ellipse 60% 30% at 20% 80%, rgba(59, 130, 246, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 25% at 80% 60%, rgba(59, 130, 246, 0.06), transparent 40%),
    linear-gradient(180deg, transparent 0%, var(--bg) 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.6s ease-out;
}

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

.hero-title {
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #fff 0%, rgba(241, 245, 249, 0.92) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.hero-cta {
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-icon { font-size: 1.1em; }

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f8ff7 0%, var(--accent) 100%);
  box-shadow: 0 14px 48px var(--accent-glow);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

.hero-trust {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Stats bar ---- */
.stats-bar {
  padding: 2rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 0.5rem;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-value { font-size: 1.5rem; }
}

/* ---- Section common ---- */
.section {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

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

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.service-card-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.service-card-cta:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---- How It Works ---- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-soft) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- AI Assistant Section ---- */
.section-ai {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.ai-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.ai-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.ai-block-lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.ai-block-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.ai-block-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.ai-block-list li::before {
  content: 'вњ“';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.ai-block-visual {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-soft) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.ai-visual-dummy {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.05em;
}

@media (max-width: 640px) {
  .ai-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ai-block-visual { margin: 0 auto; }
}

/* ---- Contact ---- */
.contact-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

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

.form-input:focus {
  border-color: var(--accent);
}

.contact-or {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-or span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-or .btn {
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-text {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Chat Widget ---- */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  font-family: var(--font);
}

.chat-widget-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: chatPulse 2.5s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45); }
  50% { box-shadow: 0 12px 48px rgba(59, 130, 246, 0.6); }
}

.chat-widget-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 48px var(--accent-glow);
  animation: none;
}

.chat-toggle-icon { font-size: 1.25rem; }

.chat-toggle-label { display: none; }

@media (min-width: 480px) {
  .chat-toggle-label { display: inline; }
}

.chat-widget-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.is-open .chat-widget-panel {
  display: flex;
}

.chat-widget.is-open .chat-widget-toggle {
  display: none;
}

.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.chat-widget-title {
  font-weight: 600;
  font-size: 1rem;
}

.chat-widget-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  border-radius: var(--radius);
}

.chat-widget-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.chat-msg p { margin: 0; }

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

.chat-input:focus { border-color: var(--accent); }

.chat-send {
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.chat-send:hover { background: var(--accent-hover); }

@media (max-width: 480px) {
  .chat-widget-panel {
    width: 100%;
    height: 75vh;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

