:root {
  --bg: #f2f6fb;
  --bg-deep: #0a1f44;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --text: #0f244b;
  --muted: #4d5f80;
  --primary: #123f8f;
  --primary-strong: #0d2f6c;
  --accent: #d22e3a;
  --accent-soft: #ffe8eb;
  --line: #d6e0f0;
  --ok: #0e8a62;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(10, 31, 68, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(18, 63, 143, 0.28), transparent 58%),
    radial-gradient(1000px 420px at 96% -14%, rgba(210, 46, 58, 0.17), transparent 56%),
    linear-gradient(180deg, #eaf1ff 0%, #dde8fb 45%, #cfdcf6 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 47, 108, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 47, 108, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.26;
  z-index: -1;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(248, 251, 255, 0.88);
  border-bottom: 1px solid rgba(214, 224, 240, 0.78);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: 0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(13, 47, 108, 0.12);
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.18);
  background: #fff;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cert-row img {
  width: min(240px, 100%);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(10, 31, 68, 0.16);
}

.cert-text {
  color: #d7e7ff;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-home {
  padding: 0.42rem 0.78rem;
  font-size: 0.92rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-strong);
}

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

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--primary-strong);
  background: linear-gradient(145deg, #edf3ff 0%, #dfeaff 100%);
  border: 1px solid #bfd1ee;
  box-shadow: 0 10px 20px rgba(13, 47, 108, 0.14);
}

.btn-primary:hover {
  box-shadow: 0 14px 24px rgba(13, 47, 108, 0.2);
}

.btn-secondary {
  color: var(--primary-strong);
  background: linear-gradient(145deg, #edf3ff 0%, #dfeaff 100%);
  border: 1px solid #bfd1ee;
}

.btn-ghost {
  color: var(--primary-strong);
  text-decoration: none;
  background: linear-gradient(145deg, #edf3ff 0%, #dfeaff 100%);
  border: 1px solid #bfd1ee;
}

.hero {
  padding: 5.2rem 0 3.1rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.3rem, 3vw, 3.2rem);
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(210, 46, 58, 0.36), transparent 68%),
    linear-gradient(125deg, #123f8f 0%, #0d2f6c 58%, #0a1f44 100%);
  color: #eff6ff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 65%);
}

.hero h1,
h1 {
  margin: 0 0 0.6rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.14;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #deebff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.section {
  padding: 2rem 0;
}

.section:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.38));
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(226, 236, 252, 0.5), rgba(226, 236, 252, 0.34));
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #102a5a;
}

.section-intro {
  color: var(--muted);
  margin-top: 0;
}

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

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.08rem;
  box-shadow: var(--shadow);
}

.card h3,
.card h4 {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.notice-card {
  background: linear-gradient(180deg, #f2f7ff, #e7f0ff);
  border: 1px solid #bfd1ee;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.embed-frame {
  width: 100%;
  min-height: 900px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.embed-placeholder {
  padding: 1rem;
  border: 1px dashed #bfd1ee;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
}

.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.photo-card p {
  margin: 0;
  padding: 0.7rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-shell {
  position: relative;
  display: grid;
  gap: 1rem;
}

.flow-shell::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, #b9cdf2 0%, #8fb0ea 35%, #6c97e2 65%, #b9cdf2 100%);
  border-radius: 999px;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.flow-index {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #123f8f, #0d2f6c);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(13, 47, 108, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.flow-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.flow-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #102a5a;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
}

.flow-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flow-chip {
  border-radius: 999px;
  border: 1px solid #c7d7f4;
  background: #eef4ff;
  color: #244b88;
  padding: 0.3rem 0.6rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.flow-summary {
  margin-top: 1rem;
  border: 1px solid #c7d7f4;
  background: linear-gradient(135deg, rgba(239, 245, 255, 0.95), rgba(252, 241, 244, 0.88));
  border-radius: var(--radius);
  padding: 1rem;
}

.flow-summary h2 {
  margin: 0 0 0.45rem;
}

.process-track {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0;
}

.process-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #c5d7f7 0%, #7ca4ea 30%, #5f8fe1 70%, #c5d7f7 100%);
  border-radius: 999px;
}

.process-tile {
  position: relative;
  width: calc(50% - 1.6rem);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.process-tile.left {
  justify-self: start;
}

.process-tile.right {
  justify-self: end;
}

.process-tile::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 1.6rem;
  height: 2px;
  background: #8fb0ea;
}

.process-tile.left::before {
  right: -1.6rem;
}

.process-tile.right::before {
  left: -1.6rem;
}

.process-tile::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #123f8f, #0d2f6c);
  border: 3px solid #eef4ff;
  box-shadow: 0 6px 14px rgba(13, 47, 108, 0.18);
}

.process-tile.left::after {
  right: -2.15rem;
}

.process-tile.right::after {
  left: -2.15rem;
}

.process-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.process-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #123f8f, #0d2f6c);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  flex: 0 0 auto;
}

.process-head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #102a5a;
  line-height: 1.2;
}

.process-tile p {
  margin: 0;
  color: var(--muted);
}

.process-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.process-tag {
  border-radius: 999px;
  border: 1px solid #c7d7f4;
  background: #eef4ff;
  color: #244b88;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.split-node {
  position: relative;
  margin: 0.4rem auto 1rem;
  max-width: 320px;
  border: 1px solid #bfd1ee;
  background: linear-gradient(145deg, #eff5ff, #e2ecff);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  text-align: center;
  color: #1f467f;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(13, 47, 108, 0.1);
}

.split-node::before,
.split-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #8fb0ea;
}

.split-node::before {
  left: -28px;
}

.split-node::after {
  right: -28px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.branch-lane {
  position: relative;
  border: 1px solid #d0dcf1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,250,255,0.9));
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.branch-lane::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 56px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c5d7f7 0%, #7ca4ea 100%);
}

.branch-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.4rem 0.55rem;
  border-bottom: 1px solid #dce6f7;
}

.branch-lane-head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #102a5a;
  line-height: 1.2;
}

.branch-pill {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid #bfd1ee;
  background: #edf4ff;
  color: #234a87;
  white-space: nowrap;
}

.branch-pill.secondary {
  border-color: #f0cad0;
  background: #fff1f4;
  color: #a1323f;
}

.branch-tiles {
  display: grid;
  gap: 0.75rem;
}

.branch-tiles .process-tile {
  width: 100%;
  justify-self: stretch;
  margin-left: 1.6rem;
}

.branch-tiles .process-tile::before {
  left: -1.6rem !important;
  right: auto !important;
  width: 1.6rem;
}

.branch-tiles .process-tile::after {
  left: -2.15rem !important;
  right: auto !important;
}

.branch-note {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid #d6e0f0;
  background: linear-gradient(180deg, #fafcff, #f1f6ff);
}

.branch-note p {
  margin: 0;
  color: var(--muted);
}

.tile-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  padding: 1rem;
  transition: border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
  display: block;
}

.tile-link:hover {
  border-color: #b8c9ea;
  box-shadow: 0 14px 24px rgba(18, 63, 143, 0.12);
  transform: translateY(-2px);
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

.list li + li {
  margin-top: 0.25rem;
}

.process-strip {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.step {
  text-align: center;
  background: linear-gradient(180deg, #eaf0ff, #dfe8fb);
  color: #14386f;
  border: 1px solid #c8d8f9;
  border-radius: 10px;
  padding: 0.62rem;
  font-weight: 700;
}

.cta-band {
  margin: 1.7rem 0 0;
  background: linear-gradient(135deg, #f3f8ff 0%, #fef4f6 100%);
  border: 1px solid #d6e0f0;
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid #ccd9f2;
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.63rem 0.78rem;
  border-radius: 10px;
  border: 1px solid #bfd1ee;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(18, 63, 143, 0.15);
  border-color: #9cb5e6;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.check input {
  width: auto;
}

.site-footer {
  margin-top: 2.6rem;
  background: linear-gradient(180deg, #0e2c62 0%, #0a1f44 100%);
  color: #e4edff;
  padding: 1rem 0 0.8rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(185, 209, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.footer-links a {
  color: #d5e4ff;
  font-size: 0.9rem;
  line-height: 1.2;
  border: 1px solid rgba(191, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
}

.footer-contact strong {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #f4f8ff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-contact p {
  margin: 0;
  color: #c8daf8;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  line-height: 1.2;
}

.footer-contact a {
  color: #dfeaff;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
}

.footer-contact p::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 220, 255, 0.8);
  margin-right: 0.55rem;
  flex: 0 0 auto;
}

.footer-meta {
  margin-top: 0.5rem;
  color: #a9c1ea;
  font-size: 0.82rem;
  text-align: center;
}

.animate-in {
  animation: rise 520ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav {
    gap: 0.7rem;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .header-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    line-height: 1.1;
  }

  .footer-top {
    align-items: flex-start;
  }

  .footer-contact {
    gap: 0.25rem 0.6rem;
  }

  .footer-links a {
    padding: 0.28rem 0.55rem;
  }
}

@media (max-width: 760px) {
  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
    min-height: 40px;
    text-align: center;
    white-space: nowrap;
  }

  .header-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 0.8rem;
  }

  .footer-top {
    padding: 0.7rem;
  }

  .footer-contact {
    display: grid;
    gap: 0.28rem;
  }

  .footer-contact p::before {
    display: none;
  }

  .footer-contact strong,
  .footer-contact p {
    display: block;
  }

  .footer-links {
    width: 100%;
  }

  .split-node::before,
  .split-node::after {
    display: none;
  }

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

  .branch-tiles .process-tile {
    margin-left: 1.2rem;
  }

  .branch-tiles .process-tile::before {
    width: 1.2rem;
    left: -1.2rem !important;
  }

  .branch-tiles .process-tile::after {
    left: -1.75rem !important;
  }

  .process-track::before {
    left: 22px;
    transform: none;
  }

  .process-tile,
  .process-tile.left,
  .process-tile.right {
    width: calc(100% - 3rem);
    justify-self: end;
  }

  .process-tile::before {
    left: -1.25rem !important;
    right: auto !important;
    width: 1.25rem;
  }

  .process-tile::after {
    left: -1.8rem !important;
    right: auto !important;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .process-strip,
  .photo-grid,
  .form-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}
