:root {
  --bg: #111229;
  --bg-deep: #090a18;
  --panel: #15162f;
  --panel-soft: #191a36;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(20, 246, 142, 0.55);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.5);
  --green: #10f48b;
  --green-soft: rgba(16, 244, 139, 0.14);
  --cyan: #43d9ff;
  --red: #ff4b72;
  --amber: #ffb84d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url("../images/btz-pattern-white.png");
  background-size: 180px auto;
  opacity: 0.03;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(16, 244, 139, 0.12), transparent 24%),
    radial-gradient(circle at 86% 34%, rgba(67, 217, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(9, 10, 24, 0), #111229 38%, #111229 100%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 54px);
  background: rgba(9, 10, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.brand,
.header-nav,
.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  width: 160px;
  height: 46px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.header-nav {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.header-nav a,
.ghost-link,
.primary-link,
.secondary-link,
.feature-card a {
  text-decoration: none;
}

.header-nav a:hover,
.ghost-link:hover,
.secondary-link:hover,
.feature-card a:hover {
  color: var(--green);
}

.header-actions {
  gap: 10px;
}

.ghost-link,
.primary-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}

.ghost-link {
  padding: 0 10px;
  color: var(--muted);
}

.primary-link {
  padding: 0 16px;
  color: #07120d;
  background: var(--green);
}

.hero {
  min-height: 940px;
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 140px 20px 92px;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(0.72);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(9, 10, 24, 0.1) 0%, rgba(9, 10, 24, 0.3) 44%, #111229 100%),
    radial-gradient(circle at 50% 42%, rgba(16, 244, 139, 0.08), transparent 28%),
    rgba(4, 7, 14, 0.42);
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: clamp(200px, 26vw, 320px);
  height: auto;
  object-fit: contain;
}

.hero-tagline {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
}

.hero h1 {
  max-width: 820px;
  margin: 56px 0 0;
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
}

.hero-actions {
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 32px);
  width: 100%;
  margin-top: 40px;
  text-align: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-label {
  color: var(--green);
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 500;
}

.hero-stat-value {
  color: #ffffff;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.cta-button,
.secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 600;
}

.cta-button {
  gap: 9px;
  padding: 0 22px;
  color: #07120d;
  background: var(--green);
  box-shadow: 0 18px 36px rgba(16, 244, 139, 0.22);
  text-decoration: none;
}

.cta-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(16, 244, 139, 0.28);
}

.secondary-link {
  padding: 0 18px;
  color: #ffffff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.stats-section {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  transform: translateY(-36px);
}

.stat-item {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px solid transparent;
  background: linear-gradient(#111229, #111229) padding-box,
    linear-gradient(180deg, rgba(16, 244, 139, 0.5), rgba(255, 255, 255, 0.06)) border-box;
  border-radius: 8px;
}

.stat-item span {
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
}

.stat-item strong {
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 500;
  line-height: 1;
}

.press-section {
  width: min(900px, calc(100% - 40px));
  margin: 18px auto 118px;
  text-align: center;
}

.press-section h2,
.section-kicker {
  color: var(--green);
}

.press-section h2 {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.press-strip {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 22px;
  padding: 20px 26px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: rgba(9, 10, 24, 0.4);
  box-shadow: 0 0 34px rgba(16, 244, 139, 0.1);
}

.press-strip span {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.1;
}

.market-section,
.features-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.market-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  padding: 6px 0 110px;
}

.market-visual {
  min-height: 430px;
  position: relative;
}

.laptop {
  position: absolute;
  inset: 18px auto auto 0;
  width: min(680px, 100%);
}

.laptop-screen {
  position: relative;
  min-height: 332px;
  overflow: hidden;
  border: 10px solid #1e2430;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 244, 139, 0.12), transparent 45%),
    #080b17;
  box-shadow: var(--shadow), 0 0 0 1px rgba(16, 244, 139, 0.34);
}

.chart-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-toolbar span {
  width: 82px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.chart-toolbar span:first-child {
  width: 126px;
  background: var(--green);
}

.chart-line {
  position: absolute;
  left: 28px;
  bottom: 40px;
  width: calc(100% - 230px);
  height: 230px;
}

.chart-line polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line .chart-muted {
  stroke: rgba(67, 217, 255, 0.45);
  stroke-width: 3;
}

.order-panel {
  position: absolute;
  right: 18px;
  top: 72px;
  width: 180px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.order-panel strong {
  color: #ffffff;
}

.order-panel span {
  color: var(--green);
  font-weight: 500;
}

.order-panel button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: #07120d;
  background: var(--green);
  font-weight: 600;
}

.laptop-base {
  width: 82%;
  height: 16px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #252a35, #77808a 50%, #252a35);
}

.phone {
  position: absolute;
  right: 0;
  top: 132px;
  width: 190px;
  min-height: 340px;
  padding: 34px 14px 18px;
  border: 9px solid #1c2029;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(16, 244, 139, 0.2), transparent 38%),
    #070a15;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 58px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #242936;
}

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

.phone-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.phone-list b {
  font-size: 12px;
}

.phone-list em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.phone-list .negative,
.negative {
  color: var(--red);
}

.market-copy {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.market-copy h2,
.features-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.market-copy p:not(.section-kicker) {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.market-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 10, 24, 0.58);
}

.market-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr 0.9fr;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
}

.market-row:last-child {
  border-bottom: 0;
}

.market-head {
  color: var(--green);
  background: linear-gradient(180deg, rgba(16, 244, 139, 0.14), rgba(16, 244, 139, 0.04));
}

.coin-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07120d;
  background: var(--coin-color);
  font-size: 13px;
  font-weight: 600;
}

.coin-name small {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

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

.features-section {
  padding: 22px 0 120px;
}

.features-section > .section-kicker,
.features-section > h2 {
  text-align: center;
}

.features-section > h2 {
  max-width: 760px;
  margin: 0 auto 36px;
  color: var(--green);
}

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

.feature-card {
  min-height: 300px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(9, 10, 24, 0.5);
}

.feature-card-large,
.feature-card-wide,
.feature-card-support {
  position: relative;
}

.feature-card-large {
  min-height: 520px;
}

.feature-card-wide {
  grid-column: span 2;
  min-height: 292px;
}

.feature-card h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.feature-card p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.feature-card a:not(.cta-button) {
  display: inline-flex;
  margin-top: 22px;
  color: var(--green);
  font-weight: 600;
}

.mini-platform {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: -32px;
  height: 250px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px;
  border: 8px solid #262b36;
  border-radius: 8px;
  background: #090c17;
  transform: perspective(700px) rotateX(18deg);
}

.mini-platform div {
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(16, 244, 139, 0.22), transparent),
    rgba(255, 255, 255, 0.05);
}

.cta-button.small {
  width: min(380px, 100%);
  margin-top: 28px;
}

.support-phone {
  position: absolute;
  right: 38px;
  bottom: -54px;
  width: 230px;
  height: 340px;
  display: grid;
  place-items: center;
  border: 10px solid #242b37;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(16, 244, 139, 0.4), transparent 34%),
    linear-gradient(140deg, #172e96, #08ee8a 60%, #0d1326);
  transform: rotate(-10deg);
}

.support-phone span {
  width: 150px;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.tool-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.tool-section .feature-card {
  min-height: auto;
  padding: clamp(28px, 4vw, 44px);
}

.trading-view {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(16, 244, 139, 0.38);
  padding-bottom: 2px;
}

.tools-logo {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-top: 24px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}

.tool-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.tool-copy,
.tool-visual {
  min-width: 0;
}

.tool-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.44);
}

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

  .market-section {
    grid-template-columns: 1fr;
  }

  .market-visual {
    min-height: 520px;
  }

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

  .feature-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .brand-logo {
    width: 140px;
    height: 40px;
  }

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

  .ghost-link {
    display: none;
  }

  .hero {
    min-height: 860px;
    padding-top: 128px;
  }

  .hero h1 {
    margin-top: 40px;
  }

  .stats-section,
  .press-strip {
    grid-template-columns: 1fr;
  }

  .press-section {
    margin-bottom: 80px;
  }

  .market-section,
  .features-section,
  .tool-section {
    width: calc(100% - 32px);
  }

  .tool-section {
    padding: 40px 0 60px;
  }

  .tool-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .market-visual {
    min-height: 440px;
  }

  .laptop {
    inset: 0 auto auto 0;
  }

  .laptop-screen {
    min-height: 286px;
  }

  .chart-line {
    left: 18px;
    width: calc(100% - 40px);
    opacity: 0.72;
  }

  .order-panel {
    display: none;
  }

  .phone {
    top: 230px;
    right: 10px;
    width: 158px;
    min-height: 268px;
  }

  .market-row {
    grid-template-columns: 1.3fr 1fr 0.72fr;
  }

  .market-row span:last-child {
    display: none;
  }

  .feature-card {
    min-height: 260px;
  }

  .feature-card-large {
    min-height: 490px;
  }

  .mini-platform {
    left: 24px;
    right: 24px;
    bottom: -28px;
    height: 220px;
  }

  .support-phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 32px auto -88px;
  }
}

@media (max-width: 460px) {
  .header-actions {
    width: 100%;
  }

  .primary-link {
    width: 100%;
  }

  .hero-logo {
    width: min(220px, 80vw);
  }

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

  .stats-section {
    transform: translateY(-24px);
  }

  .market-table {
    margin-inline: -6px;
  }

  .market-row {
    gap: 8px;
    padding: 0 12px;
    font-size: 12px;
  }

  .coin-icon {
    width: 24px;
    height: 24px;
  }

}

@media (max-width: 340px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Mobile hamburger menu */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle .icon-hamburger {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-toggle .icon-close {
  width: 24px;
  height: 24px;
  display: none;
}

.site-header.nav-open .icon-hamburger { display: none; }
.site-header.nav-open .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 38;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 28px;
  background: rgba(9, 10, 24, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.nav-open ~ .mobile-menu { display: flex; }

.mobile-login {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
}

.mobile-login:hover { color: var(--green); }

.mobile-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--green);
  color: #07120d;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 720px) {
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { top: 70px; }
}
