:root {
  --bg: #7bd4f5;
  --ink: #0b1d4c;
  --muted: #4f648a;
  --card: #ffffff;
  --line: rgba(6, 34, 95, 0.14);
  --brand: #d62839;
  --brand-deep: #a51e2d;
  --accent: #12339a;
  --accent-deep: #081749;
  --success: #1d9b55;
  --shadow-soft: 0 20px 50px rgba(6, 22, 64, 0.2);
  --shadow-card: 0 12px 30px rgba(7, 24, 67, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --container: min(1220px, 93vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #89dbf8 0%, #72cef4 44%, #7fd4f6 100%);
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.6;
}

.ambient-one {
  width: 340px;
  height: 340px;
  top: -100px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(214, 40, 57, 0.88), rgba(214, 40, 57, 0.08) 68%);
  animation: drift 12s ease-in-out infinite;
}

.ambient-two {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(29, 155, 85, 0.82), rgba(18, 51, 154, 0.08) 65%);
  animation: drift 16s ease-in-out infinite reverse;
}

.topbar {
  width: var(--container);
  margin: 20px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(9, 30, 83, 0.16);
  position: sticky;
  top: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.brand span {
  letter-spacing: -0.03em;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.topnav a {
  text-decoration: none;
  font-weight: 700;
  color: #244074;
  padding: 9px 13px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(18, 51, 154, 0.12);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

main {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 88px;
}

.section {
  margin-top: clamp(16px, 2.6vw, 26px);
  padding: clamp(30px, 5vw, 46px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  margin-top: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 8% 12%, rgba(29, 155, 85, 0.3), rgba(29, 155, 85, 0) 35%),
    radial-gradient(circle at 92% 10%, rgba(214, 40, 57, 0.28), rgba(214, 40, 57, 0) 35%),
    linear-gradient(145deg, #081749 0%, #10308f 62%, #112a74 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(6, 20, 64, 0.45);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1,
.section-head h2,
.cta-wrap h2,
.legal-hero h1 {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.05rem);
  max-width: 13ch;
  color: #ffffff;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(1rem, 2.6vw, 1.14rem);
}

.hero .eyebrow {
  color: #8cf5ba;
}

.hero .lead {
  color: #d8e5ff;
}

.lead strong {
  color: var(--brand);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 19px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(105deg, #1ea55b 0%, #177f45 90%);
  box-shadow: 0 10px 24px rgba(29, 155, 85, 0.38);
}

.btn-secondary {
  color: var(--accent-deep);
  border: 1px solid rgba(18, 51, 154, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.badge-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e6eeff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.orb-one {
  width: 210px;
  height: 210px;
  top: -60px;
  right: -25px;
  background: radial-gradient(circle at 35% 35%, rgba(214, 40, 57, 0.9), rgba(214, 40, 57, 0.1));
  animation: drift 8s ease-in-out infinite;
}

.orb-two {
  width: 240px;
  height: 240px;
  bottom: -66px;
  left: -32px;
  background: radial-gradient(circle at 35% 35%, rgba(29, 155, 85, 0.8), rgba(29, 155, 85, 0.06));
  animation: drift 11s ease-in-out infinite reverse;
}

.panel-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 38px rgba(4, 16, 52, 0.24);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(7px);
}

.card-main {
  padding: 24px 24px 20px;
}

.card-main h2 {
  margin: 0;
  font-size: 1.06rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: #ffffff;
}

.card-main p {
  margin: 8px 0 0;
  color: #ccddff;
  font-size: 0.93rem;
}

.card-main ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.card-main li {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.card-main li span {
  color: #88ebba;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.card-main li strong {
  font-size: 0.92rem;
  color: #f1f5ff;
}

.panel-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-mini {
  padding: 14px 14px 12px;
}

.card-mini h3 {
  margin: 0;
  font-size: 0.9rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: #ffffff;
}

.card-mini p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #d4e1ff;
}

.mockup-cluster {
  position: relative;
  margin-top: 18px;
  height: 170px;
}

.mockup-phone {
  position: absolute;
  width: 92px;
  height: 164px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(180deg, #ffffff 0%, #d7e8ff 100%);
  box-shadow: 0 14px 28px rgba(5, 17, 54, 0.45);
}

.mockup-phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: #0c1a47;
}

.phone-left {
  left: 16px;
  bottom: 0;
  transform: rotate(-17deg);
}

.phone-center {
  left: calc(50% - 46px);
  bottom: 4px;
  transform: rotate(-3deg);
}

.phone-right {
  right: 16px;
  bottom: 0;
  transform: rotate(15deg);
}

.section-head h2 {
  margin-top: 7px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 20ch;
  color: var(--accent-deep);
}

.stats-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #f2f7ff);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.stat-label {
  margin: 0;
  color: #51607a;
  font-weight: 700;
  font-size: 0.82rem;
}

.stat-value {
  margin: 6px 0 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-meta {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.feature-grid,
.portal-grid,
.security-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.portal-card,
.security-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.feature-card h3,
.portal-card h3,
.security-card h3,
.flow-card h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.feature-card p,
.portal-card p,
.security-card p,
.flow-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.detail-card h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

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

.detail-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 25, 52, 0.15);
  background: rgba(29, 155, 85, 0.12);
  color: #0d7d43;
  font-size: 0.8rem;
  font-weight: 700;
}

.visual-slot-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.visual-slot-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.visual-slot-card h3 {
  margin: 0;
  font-size: 1rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.visual-slot-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.visual-slot-frame {
  margin-top: 12px;
  min-height: 180px;
  border: 1.5px dashed rgba(18, 51, 154, 0.45);
  border-radius: 12px;
  background:
    radial-gradient(circle at 25% 20%, rgba(214, 40, 57, 0.18), rgba(214, 40, 57, 0)),
    radial-gradient(circle at 80% 85%, rgba(29, 155, 85, 0.2), rgba(29, 155, 85, 0)),
    linear-gradient(180deg, #f6fbff, #eef6ff);
  display: grid;
  place-items: center;
  text-align: center;
  color: #365180;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.flow-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(125deg, #12339a, #1d9b55);
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.portal-card a {
  margin-top: 12px;
  display: inline-flex;
  text-decoration: none;
  font-weight: 800;
  color: var(--success);
}

.portal-card a:hover,
.portal-card a:focus-visible {
  color: #0d7c41;
}

.security-card {
  background: linear-gradient(180deg, #ffffff, #fffdf8);
}

.section-cta {
  background:
    radial-gradient(circle at 95% 0, rgba(214, 40, 57, 0.35), rgba(214, 40, 57, 0) 32%),
    radial-gradient(circle at 5% 100%, rgba(29, 155, 85, 0.3), rgba(29, 155, 85, 0) 35%),
    linear-gradient(145deg, #081849 0%, #10308d 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 44px rgba(7, 23, 66, 0.4);
  color: #ffffff;
}

.cta-wrap {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cta-wrap h2 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  max-width: 19ch;
  color: #ffffff;
}

.cta-wrap p {
  margin: 14px 0 0;
  max-width: 63ch;
  color: #d8e4ff;
}

.section-cta .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  width: var(--container);
  margin: 18px auto 34px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(8, 30, 81, 0.12);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-brand p {
  margin: 0;
  font-weight: 800;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.footer-brand small {
  color: #4f638b;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #27467e;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand);
}

.footer-copy {
  margin: 0;
  color: #53678d;
  font-size: 0.88rem;
}

.legal {
  background: #edf0fa;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* Legal pages */
.legal .topbar {
  margin-top: 16px;
}

.legal-doc .topnav a,
.legal-doc .footer-links a,
.legal-doc .btn,
.legal-doc .legal-meta,
.legal-doc .legal-contact a {
  font-weight: 400;
}

.legal-doc .legal-hero h1,
.legal-doc .legal-section h2,
.legal-doc .legal-section h3 {
  font-weight: 500;
}

.legal-doc .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.legal main {
  width: min(980px, 92vw);
}

.legal-hero {
  padding-top: 56px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 5.6vw, 3.3rem);
  max-width: 14ch;
}

.legal-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 64ch;
}

.legal-meta {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.legal-actions {
  margin-top: 24px;
  align-items: stretch;
}

.legal-actions .btn {
  min-height: 48px;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.legal-alert {
  margin-top: 18px;
  border: 1px solid rgba(178, 30, 53, 0.22);
  background: rgba(178, 30, 53, 0.08);
  color: var(--brand-deep);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.legal-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.legal-policy .legal-block + .legal-block {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(18, 51, 154, 0.12);
}

.legal-section h2 {
  margin: 0;
  font-size: 1.08rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.legal-section p {
  margin: 8px 0 0;
  color: #4d5d75;
  line-height: 1.72;
}

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #4d5d75;
  line-height: 1.72;
}

.legal-section li + li {
  margin-top: 4px;
}

.legal-subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 51, 154, 0.1);
}

.legal-section h3 {
  margin: 0;
  font-size: 0.98rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--brand-deep);
}

.legal-contact {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  font-style: normal;
  color: #4d5d75;
  line-height: 1.7;
}

.legal-contact a {
  width: fit-content;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.legal-contact a:hover,
.legal-contact a:focus-visible {
  text-decoration: underline;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 16px, 0) scale(1.05);
  }
}

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

  .hero h1 {
    max-width: 17ch;
  }

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

  .feature-grid,
  .split-grid,
  .visual-slot-grid,
  .portal-grid,
  .security-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topnav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
  }

  .topbar.nav-open .topnav {
    display: flex;
  }

  .legal .topbar {
    align-items: center;
  }

  .legal .topnav {
    display: flex;
  }

  .topnav a {
    width: 100%;
    border-radius: 10px;
  }

  .panel-row,
  .stats-grid,
  .feature-grid,
  .split-grid,
  .visual-slot-grid,
  .portal-grid,
  .security-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 180px;
  }

  .legal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .legal-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 16px;
    justify-content: center;
  }

  .legal-section ul {
    padding-left: 16px;
  }
}

@media (max-width: 420px) {
  .legal-actions .btn {
    padding: 9px 12px;
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
