:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #0b121e;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --line: #e2e8f0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --max: 1160px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.btn-accent:hover { background: var(--accent-strong); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--bg-soft); }

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: var(--white);
  font-size: 1.1rem;
}

.brand-name { color: var(--ink); }
.brand-accent { color: var(--accent); }
.brand-light .brand-name { color: var(--white); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active { font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 0;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(700px 420px at 0% 10%, rgba(37, 99, 235, 0.08), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 520px;
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat span { font-size: 0.85rem; color: var(--ink-mute); font-weight: 500; }

/* Hero visual stack */
.hero-visual {
  position: relative;
  min-height: 460px;
}

.visual-card {
  position: absolute;
  width: min(360px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.visual-card p {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 6px 0 4px;
}
.visual-card p strong { color: var(--ink); }

.visual-emoji { font-size: 1.6rem; }

.visual-meta {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.card-ship {
  top: 40px;
  right: 0;
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}

.card-inspect {
  top: 200px;
  left: 0;
  transform: rotate(-2deg);
  animation: float 7s ease-in-out 0.8s infinite;
}

.card-pay {
  top: 330px;
  right: 20px;
  transform: rotate(1deg);
  animation: float 6.5s ease-in-out 1.6s infinite;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Logobar ---------- */
.logobar { padding: 56px 0; }
.logobar-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 64px;
}
.logo-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-mute);
  opacity: 0.8;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-dark .section-head h2 { color: var(--white); }

.section-head { margin-bottom: 52px; max-width: 640px; }
.section-dark .section-head { max-width: 100%; }

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-dark .eyebrow { color: #93c5fd; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255, 255, 255, 0.7); }
.card-dark:hover { border-color: rgba(147, 197, 253, 0.4); }
.card-dark .card-icon { color: #93c5fd; }

/* ---------- Features ---------- */
.feature-grid { gap: 40px 48px; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.feature p { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #7c3aed);
  border-radius: 20px;
  padding: 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-copy { max-width: 560px; }
.cta-copy h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-copy p { opacity: 0.9; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 72px 0;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(600px 320px at 5% 20%, rgba(37, 99, 235, 0.08), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding-bottom: 40px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.timeline-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.timeline-item p { color: var(--ink-soft); max-width: 70ch; }
.timeline-item .step-sub { margin-top: 10px; }
.timeline-item .step-sub li {
  font-size: 0.88rem;
  color: var(--ink-mute);
  padding-left: 16px;
  position: relative;
}
.timeline-item .step-sub li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th, .table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  background: var(--bg-soft);
}
.table tr:hover td { background: var(--bg-soft); }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag-green { background: #dcfce7; color: #15803d; }
.tag-blue { background: var(--accent-soft); color: var(--accent-strong); }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-purple { background: #ede9fe; color: #6d28d9; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.cat-card .cat-emoji { font-size: 2rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.cat-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 12px; }
.cat-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 32px; }

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-emoji { font-size: 1.4rem; margin-top: 2px; }
.contact-line strong { display: block; font-size: 0.95rem; }
.contact-line span { font-size: 0.9rem; color: var(--ink-soft); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.8rem; color: var(--ink-mute); margin-top: 14px; }

.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-blurb { margin-top: 16px; font-size: 0.92rem; max-width: 38ch; color: rgba(255, 255, 255, 0.55); }

.site-footer h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 420px; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding: 12px 0; width: 100%; }
  .main-nav .btn { margin-top: 12px; width: 100%; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4, .cat-grid { grid-template-columns: 1fr; }
  .card-grid { gap: 18px; }
  .card { padding: 22px 20px; }
  .cat-card { padding: 22px 20px; }

  .hero { padding: 52px 0 0; }
  .hero-grid { gap: 36px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { position: static; min-height: 0; }
  .visual-card { position: static; width: 100%; transform: none; margin-bottom: 16px; animation: none; }

  .logobar { padding: 40px 0; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .page-hero { padding: 52px 0; }

  .cta-band { padding: 30px 22px; gap: 20px; }
  .timeline-item { grid-template-columns: 52px 1fr; gap: 20px; }
  .step-num { width: 52px; height: 52px; font-size: 1.1rem; }
  .timeline-item:not(:last-child)::before { left: 25px; }

  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table th, .table td { padding: 12px 14px; }

  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 48px 0 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); margin-bottom: 18px; }
  .hero-sub { font-size: 1rem; }
  .hero-stats .stat strong { font-size: 1.5rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-lg { width: 100%; }
  .cta-band { padding: 26px 18px; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
  .card-icon { font-size: 1.6rem; }
  .section-head h2 { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}