/* E8 Wallet official site — static only */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #243044;
  --muted: #667085;
  --line: #e6eaf0;
  --teal: #0f766e;
  --teal-soft: #ecfdf8;
  --navy: #0b1b2b;
  --navy-2: #123047;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.top.is-solid {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  position: relative;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  order: 3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 500;
  order: 2;
  margin-left: auto;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--teal);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0b1b2b 0%, #0f766e 55%, #0b1220 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 85% 30%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(500px 280px at 10% 90%, rgba(15, 118, 110, 0.35), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-name {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-aka {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 14ch;
}

.hero-sub {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-primary:hover {
  background: #eef7f4;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--teal);
}

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

.btn-line:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.hero-rail span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.hero-rail img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

img[src$=".svg"],
.hero-rail img,
.trust-item img,
.channel-ico img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* SVG prefers smooth; override crisp for vectors */
img[src$=".svg"] {
  image-rendering: auto;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 300px);
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.35));
}

.phone {
  width: min(100%, 280px);
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  backdrop-filter: blur(8px);
}

.phone-notch {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 4px auto 8px;
}

.phone-screen {
  background: #f2f3f7;
  color: #14161a;
  border-radius: 18px;
  padding: 12px 12px 8px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-top img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.mini-top strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.mini-chip {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #2f6fed;
  background: rgba(47, 111, 237, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
}

.mini-hello {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f6fed, #6a4cf5);
  color: #fff;
  border-radius: 16px;
  padding: 14px;
}

.mini-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mini-label {
  font-size: 12px;
  opacity: 0.88;
}

.mini-amount {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.mini-amount small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.88;
  margin-left: 4px;
}

.mini-sub,
.mini-link {
  font-size: 11px;
  opacity: 0.85;
}

.mini-link {
  margin-top: 6px;
}

.mini-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 4px;
}

.mini-actions > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #14161a;
}

.mini-actions i {
  font-style: normal;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
  font-weight: 700;
  font-size: 14px;
}

.mini-sec {
  font-size: 12px;
  font-weight: 700;
  color: #667085;
  padding: 2px 2px 0;
}

.mini-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mini-tiles > div {
  background: #fff;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}

.mini-tiles span {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.mini-tiles em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  color: #14161a;
}

.mini-tab {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #fff;
  border-radius: 14px;
  padding: 6px 2px 4px;
  border: 1px solid #e6eaf0;
  text-align: center;
  font-size: 12px;
  color: #8a8f98;
  line-height: 1.15;
}

.mini-tab .on {
  color: #2f6fed;
  font-weight: 700;
}

.mini-tab small {
  font-size: 9px;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}

.feat-no {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Merchant */
.merchant {
  background: linear-gradient(160deg, #0b1b2b, #123047 55%, #0b1220);
  color: #fff;
}

.merchant .eyebrow {
  color: #5eead4;
}

.merchant .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.merchant-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.merchant-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.merchant-points li {
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 2px solid #5eead4;
}

.merchant-points strong {
  display: block;
  margin-bottom: 0.2rem;
}

.merchant-points span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.merchant-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.merchant-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.merchant-panel p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.step-no {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Contacts */
.channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.channel:hover {
  border-color: #99f6e4;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.channel-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eff8ff;
  display: grid;
  place-items: center;
}

.channel-ico img {
  width: 26px;
  height: 26px;
}

.channel-body {
  min-width: 0;
  flex: 1;
}

.channel-body strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.channel-body span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.channel-handle {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.support-strip {
  margin-top: 1.4rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  border: 1px solid #ccfbf1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.support-strip p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  max-width: 36rem;
}

/* Footer */
.foot {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.4rem 0 2rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.2;
}

.trust-item em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.1rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.3rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.foot-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.foot-brand strong {
  display: block;
  color: #fff;
}

.foot-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.foot-links a:hover {
  color: #fff;
}

.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.foot-legal p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero-inner,
  .feature-grid,
  .merchant-layout,
  .steps,
  .channels,
  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    width: min(100%, 280px);
  }

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

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.9rem 1rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .top-actions {
    margin-left: auto;
  }

  .nav {
    margin-left: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 3.2rem 0 2.8rem;
  }

  .hero-inner,
  .feature-grid,
  .merchant-layout,
  .steps,
  .channels,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 260px);
    order: -1;
  }

  .phone {
    width: min(100%, 250px);
    padding: 7px;
  }

  .phone-screen {
    min-height: 420px;
  }

  .mini-amount {
    font-size: 24px;
  }

  .hero-rail span {
    font-size: 0.72rem;
  }

  .hero-rail img {
    width: 18px;
    height: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .channel {
    align-items: flex-start;
  }

  .channel-handle {
    margin-left: auto;
  }

  .support-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-row {
    grid-template-columns: 1fr 1fr;
  }
}
