:root {
  --bg: #edf3fa;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --ink-1: #0f1b30;
  --ink-2: #30445f;
  --ink-3: #657b95;
  --line: rgba(15, 27, 48, 0.11);
  --brand-1: #005f8f;
  --brand-2: #0a8cc1;
  --brand-3: #0cab82;
  --brand-4: #043b64;
  --radius-xl: 28px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink-2);
  background:
    radial-gradient(circle at 92% -8%, rgba(10, 140, 193, 0.2), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(12, 171, 130, 0.2), transparent 36%),
    linear-gradient(160deg, #f9fbff 0%, #edf3fa 48%, #f2f7fc 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.44) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 24%, #000 18%, transparent 72%);
}

body.with-tabs {
  padding-top: 92px;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.orb.a {
  width: 280px;
  height: 280px;
  left: -100px;
  top: 10%;
  background: rgba(10, 140, 193, 0.18);
  animation: float-a 20s ease-in-out infinite;
}

.orb.b {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -120px;
  background: rgba(12, 171, 130, 0.16);
  animation: float-b 24s ease-in-out infinite;
}

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

.topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-image: url("/assets/logo.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 18px 28px -18px rgba(2, 59, 100, 0.95);
  flex: none;
}

.brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink-1);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.tabs {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.tabs a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 220ms ease;
}

.tabs a:hover {
  background: rgba(0, 95, 143, 0.09);
  border-color: rgba(0, 95, 143, 0.26);
  color: var(--ink-1);
}

.tabs a.active {
  color: #f7fcff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-1));
}

.hero,
.section,
.closing {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: 0 34px 56px -42px rgba(18, 42, 75, 0.64);
}

.hero {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1.2fr 0.86fr;
  gap: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 95, 143, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 95, 143, 0.1);
  color: #084f75;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 5px rgba(12, 171, 130, 0.16);
}

h1 {
  margin: 12px 0 10px;
  color: var(--ink-1);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead,
.section-intro {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.74;
}

.kpi-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
}

.kpi b {
  display: block;
  color: var(--ink-1);
  font-family: "Space Grotesk", sans-serif;
}

.kpi span {
  color: var(--ink-3);
  font-size: 0.78rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  padding: 14px;
}

.panel h2,
.panel h3,
.section h2,
.card h3,
.chart h3,
.plan h3,
.closing h2 {
  margin: 0;
  color: var(--ink-1);
  font-family: "Space Grotesk", sans-serif;
}

.meter {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  margin-top: 9px;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.meter-row b {
  color: var(--ink-1);
}

.track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e6eef8;
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
}

.section {
  margin-top: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.1vw, 2.15rem);
}

.grid-12,
.logo-row,
.charts,
.pricing,
.task-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

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

.network {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.visa-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1f71;
}

.mc-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-icon {
  position: relative;
  width: 42px;
  height: 26px;
}

.mc-icon i {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.mc-icon i:first-child {
  left: 0;
  background: #eb001b;
}

.mc-icon i:last-child {
  right: 0;
  background: #f79e1b;
  opacity: 0.92;
}

.mc-text {
  color: #3a3a3a;
  font-size: 0.92rem;
  font-weight: 600;
}

.network-tag {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #0f2f54;
  font-weight: 700;
}

.network-sub {
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
}

.card,
.chart,
.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.card p,
.plan li {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.62;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

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

.chart-meta {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.axis-label {
  fill: #6e819a;
  font-size: 10px;
}

.line-path {
  fill: none;
  stroke: url(#lineGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 1600ms ease forwards;
}

.bar-item {
  fill: url(#barGrad);
  transform-origin: bottom;
  transform: scaleY(0);
  animation: grow-bar 900ms ease forwards;
}

.bar-item.b2 { animation-delay: 120ms; }
.bar-item.b3 { animation-delay: 220ms; }
.bar-item.b4 { animation-delay: 300ms; }
.bar-item.b5 { animation-delay: 380ms; }

.donut {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-2) 0deg 312deg, #dbe8f7 312deg 360deg);
  position: relative;
  margin: 8px auto 0;
  animation: spin-in 900ms ease both;
}

.donut::after {
  content: "86.7%";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.donut-caption {
  margin-top: 8px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.84rem;
}

.price {
  margin-top: 7px;
  color: var(--brand-4);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.66rem;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 7px;
}

.plan.featured {
  border-color: rgba(0, 95, 143, 0.25);
  background: linear-gradient(165deg, rgba(10, 140, 193, 0.11), rgba(12, 171, 130, 0.1));
}

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

.task {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.task b {
  display: block;
  color: var(--ink-1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
}

.task p {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 1.55;
}

.faq {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 11px;
}

summary {
  cursor: pointer;
  color: var(--ink-1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
}

details p {
  margin: 7px 0 0;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.62;
}

.closing {
  margin: 20px 0 30px;
  padding: clamp(22px, 4vw, 36px);
  background:
    radial-gradient(circle at 88% 22%, rgba(12, 171, 130, 0.22), transparent 42%),
    linear-gradient(164deg, rgba(10, 140, 193, 0.12), rgba(255, 255, 255, 0.9));
}

.closing h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.55rem);
}

.closing p {
  margin: 0;
  max-width: 72ch;
  color: var(--ink-3);
  line-height: 1.7;
}

footer {
  margin: 0 0 26px;
  color: var(--ink-3);
  font-size: 0.83rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.home-header {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.83rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  padding: 8px 12px;
  transition: all 220ms ease;
}

.home-links a:hover {
  border-color: rgba(0, 95, 143, 0.28);
  background: rgba(0, 95, 143, 0.08);
  color: var(--ink-1);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes grow-bar {
  to { transform: scaleY(1); }
}

@keyframes spin-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14px, -16px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, 14px); }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .span-4,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 12;
  }

  .charts,
  .pricing,
  .task-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.with-tabs {
    padding-top: 120px;
  }

  .topbar-inner {
    min-height: 102px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 9px 0;
  }

  .tabs {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tabs a {
    flex: none;
  }

  .home-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
