/* Rezonith marketing site
   Colors lifted directly from the app's own light theme (lib/app/theme.dart,
   Palette class) so the website and the wallet feel like the same product. */

:root {
  --accent: #04765d;
  --accent-soft: #e6f1ee;
  --positive: #0b7a5b;
  --negative: #b42318;

  --surface: #ffffff;
  --chip: #f4f4f5;
  --chip-2: #eef0f1;
  --line: #e7e7e9;
  --ink: #161616;
  --ink2: #5b616e;
  --ink3: #8a8f99;

  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1240px;
  --shadow: 0 1px 2px rgba(22, 22, 22, 0.04), 0 12px 28px rgba(22, 22, 22, 0.06);
  --shadow-lg: 0 24px 60px rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

p {
  color: var(--ink2);
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* Header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Plain solid background, deliberately not backdrop-filter: that property
     turns this header into the containing block for any position: fixed
     descendant (like the mobile menu below), which broke its sizing and let
     the hero content show through on top of it. */
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

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

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink2);
  font-size: 14px;
  font-weight: 600;
}

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

/* .nav-links a above is more specific than .btn-primary alone (class + tag
   beats a single class), so without this the "Get the app" link's text was
   coming out gray instead of white against its green background. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #05604c;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 76px 0 50px;
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 18px;
  color: var(--ink2);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.store-badge img {
  height: 54px;
  width: auto;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink3);
}

.hero-trust {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-trust div {
  min-width: 120px;
}

.hero-trust strong {
  display: block;
  font-size: 24px;
  color: var(--ink);
}

.hero-trust span {
  font-size: 13px;
  color: var(--ink3);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(230, 241, 238, 0) 70%);
  z-index: 0;
}

/* Phone mockup, built to match the actual app rather than a stock photo */

.phone {
  position: relative;
  z-index: 1;
  width: 270px;
  margin: 0 auto;
  background: #111214;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #0e0f12;
  border-radius: 28px;
  overflow: hidden;
  font-size: 12px;
  color: #f4f5f7;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 0;
  font-size: 11px;
  color: #f4f5f7;
}

.phone-status .icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f4f5f7;
}

.phone-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 6px;
  font-weight: 700;
  font-size: 13px;
}

.phone-topbar .chip {
  background: #1a1c21;
  border-radius: 8px;
  font-size: 10px;
  padding: 2px 6px;
  color: #9298a2;
  font-weight: 700;
}

.phone-balance {
  padding: 10px 18px 0;
}

.phone-balance .amount {
  font-size: 27px;
  font-weight: 700;
}

.phone-balance .change {
  color: #35c99b;
  font-size: 12px;
  margin-top: 2px;
}

.phone-actions {
  display: flex;
  justify-content: space-between;
  padding: 22px 18px;
}

.phone-actions .action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9298a2;
}

.phone-actions .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1c21;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #35c99b;
}

.phone-assets {
  padding: 4px 18px 18px;
}

.phone-assets .label {
  color: #6b7078;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.phone-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #24262c;
}

.phone-asset-row:first-of-type {
  border-top: none;
}

.asset-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.asset-icon svg {
  width: 100%;
  height: 100%;
}

.asset-name strong {
  display: block;
  font-size: 12px;
  color: #f4f5f7;
}

.asset-name span {
  font-size: 10px;
  color: #6b7078;
}

.asset-value {
  text-align: right;
}

.asset-value strong {
  display: block;
  font-size: 12px;
  color: #f4f5f7;
}

.asset-value span {
  font-size: 10px;
  color: #6b7078;
}

.phone-navbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #24262c;
}

.phone-navbar div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #6b7078;
}

.phone-navbar div.active {
  color: #35c99b;
}

.phone-navbar svg {
  width: 16px;
  height: 16px;
}

/* Sections */

section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  margin: 0;
}

.chains {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 44px;
}

.chain-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.chain-pill .coin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}

.chain-pill .coin svg {
  width: 100%;
  height: 100%;
}

/* Testimonials */

.testimonial-note {
  text-align: center;
  color: var(--ink3);
  font-size: 13px;
  margin-top: -26px;
  margin-bottom: 48px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-person strong {
  display: block;
  font-size: 13px;
}

.testimonial-person span {
  font-size: 12px;
  color: var(--ink3);
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 14px;
  font-size: 14px;
}

/* Download / CTA */

.cta {
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 68px 40px;
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  max-width: 50ch;
  margin: 0 auto 28px;
  color: #3d5a52;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--chip);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  max-width: 32ch;
  font-size: 13px;
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink3);
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink3);
}

/* Legal pages (terms, privacy) */

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

.legal-hero .updated {
  font-size: 13px;
  color: var(--ink3);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 100px;
  border-top: none;
}

.legal-content h2 {
  font-size: 20px;
  margin-top: 44px;
}

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

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--ink2);
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-note {
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0;
}

.legal-note p {
  margin: 0;
  font-size: 14px;
}

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

  .hero-image {
    order: -1;
    margin-bottom: 24px;
  }

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

  .wrap {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    z-index: 60;
    background: var(--accent);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 18px;
    color: #ffffff;
  }

  .nav-links a:hover {
    color: rgba(255, 255, 255, 0.75);
  }

  /* The primary button needs to invert on the green panel, or it would
     disappear against the same green background. */
  .nav-links a.btn-primary,
  .nav-links a.btn-primary:hover {
    background: #ffffff;
    color: var(--accent);
    margin-top: 8px;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 620px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}
