/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --black: #131314;
  --white: #FFFFFF;
  --badge-bg: #EAE6FF;
  --badge-border: #C9BFFF;
  --badge-text: #5A3FC0;
  --btn-bg: #131314;
  --btn-text: #FFFFFF;
  --font-main: 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--black);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.navbar {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--black);
  user-select: none;
  line-height: 1;
}

.logo-bracket {
  display: flex;
  flex-direction: column;
  width: 11px;
  height: 26px;
  flex-shrink: 0;
}

/* Top-left: top bar + left bar */
.logo-bracket--tl {
  justify-content: flex-start;
  align-items: flex-start;
}

.logo-bracket--tl::before {
  content: '';
  display: block;
  width: 11px;
  height: 2px;
  background: var(--black);
}

.logo-bracket--tl::after {
  content: '';
  display: block;
  width: 2px;
  height: 11px;
  background: var(--black);
}

/* Bottom-right: right bar + bottom bar */
.logo-bracket--br {
  justify-content: flex-end;
  align-items: flex-end;
}

.logo-bracket--br::before {
  content: '';
  display: block;
  width: 2px;
  height: 11px;
  background: var(--black);
}

.logo-bracket--br::after {
  content: '';
  display: block;
  width: 11px;
  height: 2px;
  background: var(--black);
}

.logo-text {
  font-family: 'Barlow', 'Noto Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  padding: 0 4px;
  text-transform: uppercase;
}

/* ---- Language Switcher ---- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  background: rgba(0,0,0,0.06);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid #E2E2E2;
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 200;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown li {
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s;
  font-weight: 500;
}

.lang-dropdown li:hover,
.lang-dropdown li.active {
  background: #F5F5F5;
}

.lang-dropdown li.active {
  font-weight: 700;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

/* ---- Hero Content (Left) ---- */
.hero-content {
  flex: 0 0 auto;
  width: 48%;
  padding-right: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.badge span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--badge-text);
  text-transform: uppercase;
}

/* Headline */
.hero-headline {
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* Sub text */
.hero-sub {
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.7;
  color: #2C2C2C;
  margin-bottom: 40px;
  max-width: 500px;
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Download button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  padding: 14px 28px;
  transition: opacity 0.18s, transform 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-download {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 2px solid var(--btn-bg);
}

.btn-icon {
  flex-shrink: 0;
}

/* ---- Hero Image (Right) ---- */
.hero-image {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  max-width: 680px;
  height: calc(100vh - var(--nav-h));
  object-fit: contain;
  object-position: center right;
  display: block;
}

/* ============================================================
   DEVICE PLACEHOLDER (CSS illustration)
   Remove once real images are provided
   ============================================================ */
.device-placeholder {
  position: relative;
  width: 520px;
  height: 540px;
  flex-shrink: 0;
}

/* Phone */
.device-phone {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 240px;
  height: 420px;
  background: #0E0E0F;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.38), 0 10px 30px rgba(0,0,0,0.22);
  z-index: 1;
}

.device-phone-screen {
  background: #1A1A1D;
  border-radius: 18px;
  height: 100%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-header {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.phone-amount {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.phone-change {
  font-size: 10px;
  color: #4CAF82;
  font-weight: 600;
}

.phone-chart {
  margin: 8px 0;
}

.phone-chart svg {
  width: 100%;
  height: 40px;
}

.phone-label {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.phone-donut {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.phone-donut svg {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.donut-labels {
  font-size: 10px;
  color: #aaa;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-blue { background: #6B7AFF; }
.dot-red  { background: #FF6B6B; }

/* Hardware Wallet */
.device-hw {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 210px;
  background: #F5F3EF;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 6px 20px rgba(0,0,0,0.14);
  z-index: 2;
}

.device-hw-screen {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 8px;
}

.hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hw-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 9px;
  color: #333;
  font-weight: 600;
}

.hw-icon {
  font-size: 16px;
  line-height: 1;
}

.hw-icon-eth {
  color: #627EEA;
}

.device-hw-bottom {
  margin-top: 12px;
  height: 8px;
  background: #E2DED8;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .navbar {
    padding: 0 20px;
  }

  .hero {
    flex-direction: column;
    padding: 0;
    padding-top: var(--nav-h);
    min-height: 100vh;
    align-items: stretch;
    max-width: 100%;
  }

  /* Image on top for mobile */
  .hero-image {
    order: -1;
    min-height: 0;
    justify-content: center;
  }

  .hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 55vw;
    object-position: center center;
  }

  /* Content below image */
  .hero-content {
    width: 100%;
    padding: 24px 24px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .br-desktop {
    display: none;
  }

  .hero-headline {
    font-size: clamp(28px, 7vw, 38px);
  }
}
/* 电脑端 logo */
.logo-img {
  width: 190px;
  height: 150px;
  object-fit: contain;
  display: block;
  position: relative;
  left: -20px;
}

/* 移动端 logo */
@media (max-width: 768px) {
  .logo-img {
    width: 140px;
    height: 170px;
    left: -20px;
  }
}