:root {
  --violet-50: #f7f4ff;
  --violet-100: #eee8ff;
  --violet-200: #ddd4ff;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --violet-800: #5b21b6;
  --violet-900: #4c1d95;
  --violet-950: #2e1065;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --ink: #1a1229;
  --muted: #61586f;
  --line: rgba(91, 33, 182, .12);
  --surface: #ffffff;
  --bg: #f6f3ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(46, 16, 101, .12);
  --shadow-sm: 0 8px 24px rgba(46, 16, 101, .08);
  --nav-h: 88px;
  --font: "Outfit", system-ui, sans-serif;
  --max: 1180px;
  --grad: linear-gradient(135deg, #6d28d9 0%, #4f46e5 52%, #2563eb 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-700); text-decoration: none; }
a:hover { color: var(--blue-600); }
button, input, select, textarea { font: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.15; letter-spacing: -.03em; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: #fff; padding: .6rem 1rem; z-index: 80; border-radius: 8px;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--violet-100); color: var(--violet-800);
  font-weight: 650; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 999px;
}
.kicker.light { background: rgba(255,255,255,.12); color: #ddd6fe; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead, .center .kicker { margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex: none; }
.icon-lg { width: 1.8em; height: 1.8em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: .85rem 1.3rem; font-weight: 650;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px rgba(109, 40, 217, .28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: #fff; color: var(--violet-900); }
.btn-soft {
  background: var(--violet-100); color: var(--violet-800);
}
.btn-soft:hover { background: var(--violet-200); color: var(--violet-900); }
.btn-dark {
  background: var(--violet-950); color: #fff;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(247, 244, 255, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.9);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(46,16,101,.06);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img {
  height: 68px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  color: var(--ink); font-weight: 550; font-size: .95rem;
  padding: .45rem .7rem; border-radius: 999px;
}
.nav a:hover, .nav a.is-active { background: var(--violet-100); color: var(--violet-800); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.flag {
  display: inline-flex; width: 28px; height: 19px; flex: none;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.flag svg, .flag img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav-flags { display: flex; align-items: center; gap: .4rem; }
.nav-flag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 650; font-size: .82rem;
  white-space: nowrap;
}
.nav-flag:hover { background: var(--violet-50); color: var(--violet-800); }
.drawer-flags { margin: .4rem 0; padding: .2rem 0; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: var(--violet-100);
  border-radius: 12px; color: var(--violet-800); cursor: pointer;
}

.drawer {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(26,18,41,.45);
}
.drawer.is-open { display: block; }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(360px, 92vw);
  background: #fff; padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem;
  box-shadow: var(--shadow);
}
.drawer a {
  padding: .85rem 1rem; border-radius: 12px; color: var(--ink); font-weight: 600;
}
.drawer a.is-active, .drawer a:hover { background: var(--violet-50); color: var(--violet-800); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: calc(100svh - var(--nav-h));
  display: grid; align-items: center;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(124,58,237,.55), transparent 55%),
    radial-gradient(700px 420px at 90% 20%, rgba(37,99,235,.42), transparent 50%),
    linear-gradient(160deg, #1a0b3a 0%, #2e1065 48%, #172554 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/hero-port.jpg") center/cover no-repeat;
  opacity: .22; mix-blend-mode: luminosity; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.4rem; align-items: center;
  padding: 3.5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 800; max-width: 14ch;
}
.hero p { color: #ddd6fe; font-size: 1.12rem; max-width: 40rem; }
.hero-branches {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
  margin: 1.5rem 0 1.6rem;
}
.hero-branches-label {
  width: 100%;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #c4b5fd;
}
.branch-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.38); color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 999px; padding: .62rem 1.05rem;
  font-weight: 650; font-size: .95rem;
}
.hero .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

.track-card, .glass-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.track-card h3 { margin-bottom: .3rem; }
.track-card p { color: #c4b5fd; font-size: .92rem; }
.track-row { display: flex; gap: .6rem; margin-top: 1rem; }
.track-row input {
  flex: 1; border: 0; border-radius: 999px; padding: .9rem 1rem; background: #fff; color: var(--ink);
}
.sample-refs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.chip {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.2); color: #ede9fe; background: rgba(255,255,255,.06);
  border-radius: 999px; padding: .25rem .65rem; font-size: .78rem; cursor: pointer;
}
.chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.chip-light {
  color: var(--violet-800); border-color: var(--line); background: var(--violet-50);
}
.chip-light:hover { background: var(--violet-200); color: var(--violet-900); }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1rem;
}
.stat { background: rgba(255,255,255,.08); border-radius: 16px; padding: .85rem; }
.stat b { display: block; font-size: 1.35rem; }
.stat span { color: #c4b5fd; font-size: .8rem; }

.marquee {
  overflow: hidden; border-top: 1px solid rgba(255,255,255,.08);
  background: #16082f; color: #c4b5fd; padding: .85rem 0;
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: slide 28s linear infinite;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* Cards / bento */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: center; }
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
a.card { color: inherit; }
a.card:hover { color: inherit; }
.card.media { padding: 0; overflow: hidden; }
.card.media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.card.span-2 { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.ico-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: .8rem;
  background: var(--violet-100); color: var(--violet-700);
}
.ico-wrap.blue { background: #dbeafe; color: var(--blue-700); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }

.media-frame {
  border-radius: 24px; overflow: hidden; position: relative; box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.float-note {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: .85rem 1rem; border-radius: 16px; max-width: 240px;
  box-shadow: var(--shadow-sm);
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.check {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; flex: none;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.step {
  background: #fff; border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--line);
  position: relative;
}
.step-num {
  font-size: 1.7rem; font-weight: 800; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.band {
  background: linear-gradient(135deg, #2e1065, #1e3a8a);
  color: #fff; border-radius: 32px; padding: 2.4rem;
  display: grid; grid-template-columns: 1.4fr auto; gap: 1.2rem; align-items: center;
}
.band p { color: #c7d2fe; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote-mark { color: var(--violet-400); }

/* Forms */
.form, .form-grid { display: grid; gap: .9rem; }
.vert-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.partner-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.partner-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .85rem; font-weight: 650; font-size: .9rem;
}
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid .span-2 { grid-column: span 2; }
fieldset.card { margin: 0; }
fieldset legend {
  font-weight: 800; font-size: 1.05rem; padding: 0 .4rem; color: var(--violet-900);
}
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.opt { font-weight: 500; color: var(--muted); font-size: .8rem; }
.dg-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem;
  background: var(--violet-50); border-radius: 14px; padding: .85rem 1rem;
}
.dg-label { font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.choice { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; }
.choice input { width: auto; }
.tip { position: relative; display: inline-flex; }
.tip-btn {
  width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: help;
  background: var(--violet-700); color: #fff; font-weight: 800; font-size: .78rem; line-height: 1;
}
.tip-box {
  display: none; position: absolute; left: 0; top: calc(100% + 8px);
  width: min(340px, 78vw); z-index: 25;
  background: #1a1229; color: #f5f3ff; padding: .85rem 1rem; border-radius: 12px;
  font-size: .82rem; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow);
}
.tip:hover .tip-box, .tip:focus-within .tip-box { display: block; }
label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
input, select, textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--violet-400); border-color: var(--violet-500);
}
.hp { position: absolute; left: -9999px; }
.alert {
  padding: .9rem 1rem; border-radius: 12px; font-weight: 600;
}
.alert-ok { background: #ecfdf5; color: #065f46; }
.alert-err { background: #fef2f2; color: #991b1b; }
.hidden { display: none !important; }
.field-error { color: #b91c1c; font-size: .8rem; font-weight: 500; }
.muted { color: var(--muted); font-size: .92rem; }
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.wizard-nav { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.wiz-step {
  flex: 1; min-width: 120px; text-align: center; padding: .7rem;
  border-radius: 999px; background: var(--violet-100); color: var(--violet-800); font-weight: 650; font-size: .85rem;
}
.wiz-step.is-active { background: var(--grad); color: #fff; }
.wiz-step.is-done { background: #dbeafe; color: var(--blue-700); }

.timeline { position: relative; padding-left: 1.4rem; display: grid; gap: 1rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--violet-200);
}
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -1.28rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--violet-600);
  box-shadow: 0 0 0 4px var(--violet-100);
}
.progress {
  height: 10px; background: var(--violet-100); border-radius: 999px; overflow: hidden; margin: .8rem 0 1.2rem;
}
.progress > span {
  display: block; height: 100%; background: var(--grad); width: 0; transition: width .6s ease;
}

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: .7rem;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

.office-card { display: grid; gap: .4rem; }
.map {
  width: 100%; min-height: 280px; border: 0; border-radius: 20px;
  filter: grayscale(.15) contrast(1.05);
}

.site-footer {
  background: #12081f; color: #ddd6fe; padding: 3rem 0 1.4rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.6rem;
}
.site-footer a { color: #c4b5fd; }
.site-footer a:hover { color: #93c5fd; }
.site-footer h4 { color: #fff; }
.site-footer .brand img {
  height: 84px;
  max-width: 180px;
  padding: .25rem;
}
.legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1rem; color: #a78bfa; font-size: .88rem;
}
.news-row { display: flex; gap: .5rem; }
.news-row input { border: 0; }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
}
.wa:hover { color: #fff; background: #1ebe5d; transform: scale(1.05); }

.page-hero {
  padding: 3.2rem 0 2.2rem; color: #fff;
  background:
    radial-gradient(600px 280px at 90% 0%, rgba(37,99,235,.45), transparent),
    linear-gradient(135deg, #2e1065, #1e3a8a);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

.table-wrap { overflow: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--violet-50); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

.badge {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-run { background: #dbeafe; color: #1d4ed8; }
.badge-wait { background: #ede9fe; color: #6d28d9; }

@media (max-width: 980px) {
  .nav, .header-cta .hide-sm { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid, .grid-3, .grid-4, .grid-2, .split, .steps, .testimonials, .footer-grid, .bento, .form-grid.two, .form-grid.three, .party-grid, .vert-grid, .band {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 { grid-column: auto; }
  .card.span-2, .card.tall { grid-column: auto; grid-row: auto; }
  .hero { min-height: auto; }
  .track-row { flex-direction: column; }
}

@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .stat-row { grid-template-columns: 1fr; }
  .hero-actions, .news-row { flex-direction: column; }
  .btn { width: 100%; }
  .header-cta .btn { width: auto; padding-inline: 1rem; }
  .header-cta .nav-flag span { display: none; }
  .header-cta .nav-flag { padding: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
