:root {
  --ink: #050a33;
  --ink-2: #101735;
  --muted: #667085;
  --line: #dde3ee;
  --paper: #fbfaf6;
  --paper-2: #f3f5ef;
  --white: #ffffff;
  --blue: #1167a9;
  --green: #20824a;
  --lime: #ecff00;
  --silver: #aab2c0;
  --shadow: 0 24px 70px rgba(5, 10, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.82);
  border-bottom: 1px solid rgba(221, 227, 238, 0.74);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Audiowide, Inter, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-link img,
.footer-brand img {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  transition: color 160ms ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--ink);
}

.hero-section {
  position: relative;
  display: grid;
  min-height: calc(100svh - 74px);
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(44px, 6vw, 74px) max(24px, calc((100vw - 1180px) / 2)) clamp(34px, 5vw, 58px);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 246, 0.86) 54%, rgba(238, 243, 231, 0.86)),
    url("../images/trade-united-logo.png") right 8% center / min(48vw, 620px) auto no-repeat;
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-orbit {
  position: absolute;
  right: 5vw;
  bottom: 8vh;
  width: min(34vw, 460px);
  opacity: 0.06;
  pointer-events: none;
}

.hero-orbit img {
  width: 100%;
}

.hero-content,
.hero-device {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(5, 10, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 13px;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink);
  font-family: Audiowide, Inter, sans-serif;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3d475c;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 0.95rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(5, 10, 51, 0.18);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.btn-secondary.dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 9px 13px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 900;
}

.phone-shell {
  width: min(100%, 350px);
  margin: 0 auto;
  border: 10px solid #111827;
  border-radius: 34px;
  background: #f8faf7;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.86) inset;
  padding: 16px;
}

.phone-status,
.phone-brand,
.phone-menu,
.account-actions,
.market-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-status span:last-child {
  width: 48px;
  height: 8px;
  border-radius: 999px;
  background: #d5dce8;
}

.phone-brand {
  justify-content: flex-start;
  gap: 8px;
  margin: 18px 0;
  font-family: Audiowide, Inter, sans-serif;
  color: var(--ink);
  font-size: 0.9rem;
}

.phone-brand img {
  width: 32px;
  height: 32px;
}

.phone-card,
.account-card {
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(5, 10, 51, 0.06);
}

.phone-menu {
  gap: 8px;
  padding: 12px;
}

.phone-menu span {
  display: grid;
  width: 64px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: #edf2f7;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
}

.balance-card {
  margin-top: 12px;
  padding: 15px;
}

.balance-card small,
.account-card small {
  display: block;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
}

.balance-card strong,
.account-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.balance-card button,
.account-actions button {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
}

.account-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 16px;
}

.account-card span {
  align-self: start;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 900;
}

.account-card small,
.account-card strong {
  color: inherit;
}

.account-stat {
  grid-column: 1 / -1;
}

.account-actions {
  grid-column: 1 / -1;
  gap: 10px;
}

.account-actions button {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.12);
}

.account-actions button:last-child {
  background: var(--lime);
  color: var(--ink);
}

.market-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.market-list div {
  min-height: 42px;
  border-radius: 8px;
  background: var(--white);
  padding: 0 12px;
  box-shadow: 0 10px 24px rgba(5, 10, 51, 0.05);
}

.market-list strong {
  color: #667085;
  font-size: 0.78rem;
}

.up {
  color: var(--green);
}

.down {
  color: #d84b5a;
}

.section-pad {
  padding: clamp(72px, 9vw, 116px) max(24px, calc((100vw - 1180px) / 2));
}

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

.section-heading h2,
.workflow-copy h2,
.security-panel h2,
.download-section h2,
.legal-hero h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.workflow-copy p,
.download-section p,
.legal-hero p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.7;
}

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

.feature-card {
  min-height: 226px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
  box-shadow: 0 16px 42px rgba(5, 10, 51, 0.06);
}

.feature-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf2f7, #ffffff);
  border: 1px solid var(--line);
}

.feature-icon.signal {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
}

.feature-icon.market {
  background: linear-gradient(135deg, #e8f4ff, #ffffff);
}

.feature-icon.trade,
.feature-icon.wallet {
  background: linear-gradient(135deg, #f3ffd7, #ffffff);
}

.feature-icon.support,
.feature-icon.secure {
  background: linear-gradient(135deg, #eef4f0, #ffffff);
}

.feature-card h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.65;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
  padding: clamp(72px, 9vw, 116px) max(24px, calc((100vw - 1180px) / 2));
  background: var(--white);
}

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

.workflow-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.workflow-list span {
  grid-row: span 2;
  color: var(--silver);
  font-family: Audiowide, Inter, sans-serif;
  font-size: 1.1rem;
}

.workflow-list strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.security-section {
  background: var(--ink);
}

.security-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  color: var(--white);
}

.security-panel h2 {
  color: var(--white);
}

.security-panel .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

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

.security-grid p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.download-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(70px, 9vw, 114px) max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper-2);
}

.download-section img {
  width: min(32vw, 300px);
}

.risk-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 18px 24px;
  color: var(--muted);
}

.risk-strip strong {
  color: var(--ink);
}

.risk-strip p {
  max-width: 780px;
  margin: 0;
  line-height: 1.5;
}

.legal-hero {
  padding: clamp(70px, 9vw, 112px) max(24px, calc((100vw - 980px) / 2)) 34px;
}

.legal-content {
  display: grid;
  gap: 14px;
  padding: 0 max(24px, calc((100vw - 980px) / 2)) 90px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.legal-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.12rem;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  background: #f7f7f2;
  border-top: 1px solid var(--line);
  padding: 42px max(24px, calc((100vw - 1180px) / 2)) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 56px;
}

.site-footer p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 14px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero-section,
  .workflow-section,
  .security-panel,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 250, 246, 0.9)),
      url("../images/trade-united-logo.png") center 24px / 460px auto no-repeat;
  }

  .hero-content h1 {
    max-width: 100%;
  }

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

  .download-section img {
    width: 190px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .brand-link span {
    font-size: 0.82rem;
  }

  .hero-section {
    padding-top: 46px;
  }

  .hero-content h1 {
    font-size: clamp(2.6rem, 17vw, 4.2rem);
  }

  .hero-actions,
  .download-actions,
  .risk-strip,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone-shell {
    width: min(100%, 310px);
    padding: 14px;
  }

  .hero-device {
    display: none;
  }

  .phone-menu span {
    width: 100%;
    min-width: 0;
    font-size: 0.62rem;
  }

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

  .feature-card {
    min-height: auto;
  }
}
