:root {
  color-scheme: light;
  --ink: #07191f;
  --muted: #587077;
  --paper: #f8fbf8;
  --panel: #ffffff;
  --line: rgba(7, 25, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --green: #0a6f61;
  --mint: #dff5ea;
  --coral: #e56b4f;
  --amber: #f0b84d;
  --blue: #275f7a;
  --shadow: 0 22px 70px rgba(7, 25, 31, 0.14);
  --liquid-shadow: 0 30px 90px rgba(7, 25, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(145deg, #f8fbf8 0%, #e9f7f1 38%, #fff5e6 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(248, 251, 248, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.35);
}

.brand,
.app-title,
.hero-actions,
.metric-row,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand img,
.app-title img {
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(10, 111, 97, 0.24);
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

nav a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: min(760px, calc(100svh - 68px));
  overflow: hidden;
  padding: clamp(44px, 6vw, 82px) clamp(20px, 6vw, 86px) clamp(34px, 5vw, 64px);
  background: linear-gradient(132deg, rgba(223, 245, 234, 0.86), rgba(248, 251, 248, 0.72) 52%, rgba(255, 243, 221, 0.84));
}

.hero-copy {
  width: 100%;
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  font-size: 4.15rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.01;
}

h2 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: 3.35rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.15;
}

.lead {
  width: min(100%, 560px);
  color: #29474d;
  font-size: 1.08rem;
  overflow-wrap: break-word;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(7, 25, 31, 0.12);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button.secondary {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.3);
}

.device-stage {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-shell {
  width: 100%;
  max-width: 390px;
  min-height: 640px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background:
    linear-gradient(158deg, rgba(8, 31, 38, 0.96), rgba(7, 25, 31, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  color: #eef8f3;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.2);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.phone-status span:first-child {
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.phone-status span:last-child {
  width: 36px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
}

.app-title {
  gap: 12px;
  margin-bottom: 18px;
}

.app-title strong,
.app-title span {
  display: block;
}

.app-title span,
.lab-card p,
.route-list span,
.tool p,
.privacy-band,
footer {
  color: var(--muted);
}

.phone-shell .app-title span,
.phone-shell .lab-card p {
  color: rgba(238, 248, 243, 0.68);
}

.metric-row {
  gap: 10px;
  margin-bottom: 12px;
}

.metric-row article {
  flex: 1;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-row span,
.lab-card span,
.tool span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  font-size: 1.15rem;
}

.lab-card {
  min-height: 150px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.lab-card.active {
  background: linear-gradient(135deg, rgba(10, 111, 97, 0.42), rgba(39, 95, 122, 0.24));
}

.section,
.split-section {
  padding: clamp(58px, 9vw, 112px) clamp(20px, 6vw, 86px);
}

.compact {
  padding-top: clamp(42px, 6vw, 72px);
}

.section-head {
  max-width: 680px;
  margin-bottom: 26px;
}

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

.tool {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: var(--liquid-shadow);
  backdrop-filter: blur(20px) saturate(1.2);
}

.tool:nth-child(2) span {
  color: var(--coral);
}

.tool:nth-child(3) span {
  color: var(--blue);
}

.tool:nth-child(4) span {
  color: var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(310px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: linear-gradient(140deg, rgba(238, 246, 240, 0.92), rgba(250, 252, 248, 0.74));
}

.split-section p {
  max-width: 620px;
  color: #35555c;
  font-size: 1.05rem;
}

.route-list {
  display: grid;
  gap: 12px;
}

.route-list div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: 0 18px 46px rgba(7, 25, 31, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.25);
}

.route-list div:nth-child(2) {
  border-left-color: var(--amber);
}

.route-list div:nth-child(3) {
  border-left-color: var(--coral);
}

.route-list strong,
.route-list span {
  display: block;
}

.privacy {
  background: var(--ink);
  color: #f2fbf6;
}

.privacy .eyebrow {
  color: #74d5be;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 251, 246, 0.78);
}

.privacy-band p {
  margin-bottom: 0;
  font-size: 1.06rem;
}

.privacy-band ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-band li + li {
  margin-top: 10px;
}

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  backdrop-filter: blur(18px) saturate(1.2);
}

footer div:first-child {
  display: grid;
  gap: 3px;
}

footer strong {
  color: var(--ink);
  font-weight: 850;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: var(--glass);
  color: #25454b;
  font-size: 0.86rem;
  font-weight: 760;
  backdrop-filter: blur(16px) saturate(1.3);
}

.principle-grid,
.connector-grid,
.contact-grid,
.detail-grid {
  display: grid;
  gap: 14px;
}

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

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

.principle,
.connector-card,
.contact-card,
.liquid-card,
.license-panel,
.process-panel,
.connector-detail,
.feature-row,
.legal-content {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: var(--liquid-shadow);
  backdrop-filter: blur(22px) saturate(1.25);
}

.principle,
.connector-card,
.contact-card,
.liquid-card {
  min-height: 220px;
  padding: 24px;
}

.principle span,
.liquid-card span,
.feature-row span {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.connector-card a,
.license-panel a,
.connector-detail a,
.legal-content a {
  color: var(--green);
  font-weight: 800;
}

.contact-card {
  display: grid;
  align-content: center;
  min-height: 150px;
}

.contact-card span {
  color: var(--muted);
}

.contact-card strong {
  margin-top: 6px;
  font-size: 1.28rem;
}

.detail-page,
.legal-page {
  padding: clamp(46px, 7vw, 96px) clamp(20px, 6vw, 86px) clamp(58px, 8vw, 112px);
}

.page-hero,
.legal-hero {
  max-width: 980px;
  margin-bottom: 28px;
}

.page-hero h1,
.legal-hero h1 {
  max-width: 12ch;
  font-size: 5.2rem;
}

.page-hero p,
.legal-hero p,
.section-head.wide p {
  max-width: 760px;
  color: #35555c;
  font-size: 1.12rem;
}

.liquid-hero {
  position: relative;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(224, 246, 238, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent);
  box-shadow: var(--liquid-shadow);
  overflow: hidden;
  backdrop-filter: blur(26px) saturate(1.35);
}

.liquid-hero::after,
.liquid-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 42%);
}

.liquid-card {
  position: relative;
  overflow: hidden;
}

.liquid-hero > *,
.liquid-card > * {
  position: relative;
  z-index: 1;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.process-panel,
.license-panel {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-steps div {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.flow-steps strong {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 1.6rem;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-row,
.connector-detail {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 36px);
}

.connector-detail + .connector-detail {
  margin-top: 16px;
}

.legal-content {
  max-width: 980px;
  padding: clamp(24px, 5vw, 52px);
}

.legal-content h2 {
  max-width: none;
  margin-top: 34px;
  font-size: 1.65rem;
  line-height: 1.12;
}

.legal-content h2:first-child {
  margin-top: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .split-section,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    width: 100%;
    max-width: 100%;
  }

  .device-stage {
    justify-content: flex-start;
  }

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

  .principle-grid,
  .connector-grid,
  .detail-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-row,
  .connector-detail {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.75rem;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 34px;
    padding-right: 24px;
    padding-left: 24px;
  }

  h1 {
    max-width: 10.5ch;
    font-size: 2.48rem;
    line-height: 1.03;
  }

  .lead {
    width: 100%;
    font-size: 1rem;
  }

  h2 {
    font-size: 2.1rem;
    line-height: 1.06;
  }

  .phone-shell {
    min-height: 560px;
    border-radius: 26px;
  }

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

  .principle-grid,
  .connector-grid,
  .contact-grid,
  .detail-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  .legal-hero h1 {
    font-size: 3.2rem;
  }

  .principle,
  .connector-card,
  .contact-card,
  .liquid-card {
    min-height: auto;
  }

  .tool {
    min-height: auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
