:root {
  color-scheme: light;
  --ink: #111814;
  --muted: #5c6861;
  --subtle: #748078;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --line: #dce5df;
  --green: #0d6b4d;
  --green-strong: #064b37;
  --teal: #0f8f83;
  --blue: #1f5c9f;
  --gold: #d29b20;
  --rose: #be4b5a;
  --shadow: 0 18px 60px rgba(18, 32, 24, 0.12);
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 143, 131, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(31, 92, 159, 0.13), transparent 28rem),
    linear-gradient(180deg, #f8fbf9 0%, #ffffff 48%, #f4f7f5 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  view-transition-name: site-header;
  border-bottom: 1px solid rgba(220, 229, 223, 0.86);
  background: rgba(251, 252, 251, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(13, 107, 77, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  color: var(--green-strong);
}

.nav-links a[aria-current="page"]::after {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.nav-cta {
  border: 1px solid rgba(13, 107, 77, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  background: #edf7f3;
  color: var(--green) !important;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(17, 24, 20, 0.06);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  padding: 66px 0 0;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.76) 46%, rgba(255, 255, 255, 0.36) 100%),
    url("/assets/tradewave-icon.png") right -120px top -160px / 620px auto no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  right: -16%;
  bottom: 0;
  z-index: -1;
  width: 72%;
  height: 58%;
  background: linear-gradient(145deg, rgba(13, 107, 77, 0.14), rgba(31, 92, 159, 0.08));
  clip-path: polygon(22% 16%, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.hero-inner,
.section-inner,
.legal-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 92px);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: #314039;
  font-size: 21px;
}

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 34px;
}

.point {
  border: 1px solid rgba(220, 229, 223, 0.88);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(17, 24, 20, 0.04);
}

.point strong {
  display: block;
  font-size: 15px;
}

.point span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.phone-stage {
  position: relative;
  min-height: 600px;
}

.phone {
  position: absolute;
  overflow: hidden;
  width: 276px;
  border: 10px solid #111814;
  border-radius: 32px;
  background: #f9fbfa;
  box-shadow: var(--shadow);
}

.phone.main {
  right: 36px;
  top: 4px;
  min-height: 548px;
}

.phone.secondary {
  left: 0;
  bottom: 24px;
  width: 224px;
  min-height: 430px;
  border-width: 8px;
  transform: rotate(-5deg);
}

.phone-bar {
  width: 76px;
  height: 5px;
  margin: 13px auto 0;
  border-radius: 999px;
  background: #29342e;
}

.app-screen {
  padding: 18px;
}

.app-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.app-kicker {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 750;
}

.mini-title {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.05;
}

.app-total {
  margin-top: 5px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
}

.scan-frame {
  position: relative;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border: 2px solid rgba(13, 107, 77, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 92, 159, 0.08), transparent),
    #eef6f2;
}

.scan-card {
  position: relative;
  width: 116px;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18)),
    linear-gradient(145deg, #0f8f83, #d29b20 48%, #be4b5a);
  box-shadow: 0 18px 36px rgba(17, 24, 20, 0.16);
}

.scan-card::before,
.scan-card::after,
.scan-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.scan-card::before {
  top: 18px;
  height: 10px;
}

.scan-card::after {
  bottom: 16px;
  height: 9px;
}

.scan-card span {
  top: 48px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.scan-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(13, 107, 77, 0.18);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
  box-shadow: 0 10px 26px rgba(17, 24, 20, 0.08);
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.metric b {
  display: block;
  font-size: 18px;
}

.metric span {
  color: var(--subtle);
  font-size: 11px;
}

.trend-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #ffffff;
}

.trend-copy span {
  display: block;
  color: var(--subtle);
  font-size: 11px;
}

.trend-copy strong {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 20px;
}

.sparkline {
  display: flex;
  height: 46px;
  align-items: end;
  gap: 5px;
}

.sparkline i {
  display: block;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--green));
}

.sparkline i:nth-child(1) { height: 18px; }
.sparkline i:nth-child(2) { height: 28px; }
.sparkline i:nth-child(3) { height: 22px; }
.sparkline i:nth-child(4) { height: 34px; }
.sparkline i:nth-child(5) { height: 30px; }
.sparkline i:nth-child(6) { height: 42px; }

.vault-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.vault-fill {
  flex: 1;
}

.vault-thumb {
  width: 42px;
  height: 58px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--blue), var(--teal));
}

.vault-thumb.warm {
  background: linear-gradient(150deg, var(--gold), var(--rose));
}

.vault-line {
  width: 100%;
  height: 8px;
  margin: 6px 0;
  border-radius: 999px;
  background: #dfe8e2;
}

.app-icon-small {
  border-radius: 12px;
}

.vault-line.short {
  width: 68%;
}

.hero-marquee {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 0;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 223, 0.92);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(17, 24, 20, 0.08);
}

.hero-marquee span {
  display: grid;
  min-height: 62px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #33423b;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-marquee span:last-child {
  border-right: 0;
}

section {
  padding: 76px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 52px);
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.feature,
.legal-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(17, 24, 20, 0.06);
}

.feature {
  padding: 22px;
}

.feature-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #edf7f3;
  color: var(--green);
  font-weight: 850;
}

.feature:nth-child(2) .feature-mark,
.feature:nth-child(5) .feature-mark {
  background: #edf3fb;
  color: var(--blue);
}

.feature:nth-child(3) .feature-mark,
.feature:nth-child(6) .feature-mark {
  background: #fff7e2;
  color: #8c6200;
}

.feature h3 {
  margin-top: 18px;
  font-size: 20px;
}

.feature p {
  margin: 10px 0 0;
  color: var(--muted);
}

.workflow-section {
  background: #ffffff;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

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

.workflow-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fbfcfb;
  box-shadow: 0 12px 34px rgba(17, 24, 20, 0.05);
}

.workflow-step span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #112018;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.workflow-step h3 {
  font-size: 20px;
}

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

.proof-band {
  border-block: 1px solid var(--line);
  background: #112018;
  color: #ffffff;
}

.proof-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: center;
}

.proof-band h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.proof-band p,
.proof-list {
  color: #c8d7cf;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.legal-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.legal-card {
  padding: 24px;
}

.legal-card h3 {
  font-size: 24px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.legal-hero {
  padding: 58px 0 26px;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.legal-aside p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.legal-aside nav {
  display: grid;
  gap: 8px;
}

.legal-aside nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.legal-document {
  padding-bottom: 72px;
}

.legal-document h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.legal-document .lede {
  max-width: 780px;
  margin: 18px 0 0;
  color: #314039;
  font-size: 19px;
}

.updated {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 18px;
}

.summary-card {
  padding: 18px;
}

.summary-card strong {
  display: block;
}

.summary-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.legal-content {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 30px 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(17, 24, 20, 0.06);
}

.legal-content h2 {
  margin-top: 30px;
  padding-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.legal-content p,
.legal-content li {
  color: #33423b;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    padding-top: 46px;
  }

  .hero-grid,
  .proof-grid,
  .workflow-grid,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 520px;
  }

  .phone.main {
    right: calc(50% - 150px);
  }

  .phone.secondary {
    left: calc(50% - 220px);
  }

  .feature-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(100% - 28px, 1120px);
    min-height: 62px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .optional {
    display: none;
  }

  .hero-inner,
  .section-inner,
  .legal-shell,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-points,
  .hero-marquee,
  .feature-grid,
  .legal-preview,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-marquee {
    width: min(100% - 28px, 1120px);
  }

  .hero-marquee span {
    min-height: 46px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-marquee span:last-child {
    border-bottom: 0;
  }

  .phone-stage {
    min-height: 430px;
  }

  .phone.main {
    right: calc(50% - 132px);
    width: 244px;
    min-height: 474px;
  }

  .phone.secondary {
    display: none;
  }

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

  .legal-content {
    padding: 8px 18px 26px;
  }

  .workflow-step {
    grid-template-columns: 1fr;
  }
}
