/* ════════════════════════════════════════════════════
   PERPSTOCK LANDING — ONDO STYLE
   Pure white · Floating nav · 3D logo pills
════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111111;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --black:   #0f0f0f;
  --gray1:   #333;
  --gray2:   #555;
  --gray3:   #888;
  --gray4:   #bbb;
  --gray5:   #e4e4e4;
  --gray6:   #f7f7f7;
  --white:   #ffffff;
  --green:   #0cad6a;
  --red:     #e63757;
  --radius:  12px;
  --nav-h:   56px;
}

/* ══════════════════════════════════════════════════
   FLOATING NAV
══════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 48px); max-width: 900px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  height: var(--nav-h);
  transition: box-shadow .3s;
}
.nav.scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 10px 0 16px; gap: 8px;
}
.nav__logo {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none;
}
/* SVG 아이콘 박스 제거 — 텍스트 로고만 사용 */
.nav__logo-mark { display: none; }
.nav__logo-mark.dark { display: none; }

/* ── Logo typography ── */
.nav__logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.logo-perp  { color: #0f0f0f; }
.logo-stock { color: #C9981A; }

/* Footer logo */
.footer__logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.footer__logo .nav__logo-mark { display: none; }
.nav__links {
  display: flex; align-items: center; gap: 2px;
}
.nav__link, .nav__link-btn {
  padding: 7px 12px; border-radius: 100px; border: none;
  background: none; font-size: 13px; font-weight: 500;
  color: var(--gray2); cursor: pointer; transition: all .18s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link-btn:hover {
  background: rgba(0,0,0,.05); color: var(--black);
}
.nav__chevron { font-size: 9px; margin-left: 3px; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cta-btn {
  display: inline-flex; align-items: center;
  background: var(--black); color: #fff;
  padding: 9px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  transition: all .2s; white-space: nowrap;
  border: none; cursor: pointer;
}
.nav__cta-btn:hover {
  background: #333; transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 50%;
}
.nav__hamburger span {
  width: 20px; height: 2px; background: var(--black);
  display: block; border-radius: 2px; transition: all .2s;
}

/* ══════════════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════════════ */
.mobile-menu {
  display: none; position: fixed;
  top: calc(16px + var(--nav-h) + 8px);
  left: 24px; right: 24px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  z-index: 999; flex-direction: column;
  padding: 12px; border-radius: 20px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 500; color: var(--gray1);
  padding: 10px 14px; border-radius: 12px;
  transition: background .15s;
}
.mobile-menu a:hover { background: var(--gray6); }
.mobile-cta {
  background: var(--black) !important; color: #fff !important;
  font-weight: 600 !important; text-align: center;
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  padding: calc(var(--nav-h) + 80px) 24px 48px;
  min-height: 52vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: #fff;
}
.hero__inner {
  max-width: 700px; margin: 0 auto;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gray6);
  border: 1px solid var(--gray5);
  border-radius: 100px; padding: 5px 14px;
  font-size: 12px; font-weight: 500; color: var(--gray2);
  margin-bottom: 28px;
}
.badge-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(12,173,106,.45); }
  50%      { box-shadow: 0 0 0 5px rgba(12,173,106,0); }
}
.hero__title {
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -0.03em; color: var(--black);
  margin-bottom: 16px;
}
.hero__bold {
  font-weight: 800; color: var(--black);
}
.hero__desc {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--gray2); line-height: 1.65;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.hero__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  border: none; text-decoration: none;
}
.hero__btn--primary {
  background: var(--black); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero__btn--primary:hover {
  background: #222; transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.hero__btn--secondary {
  background: var(--gray6); color: var(--gray1);
  border: 1px solid var(--gray5);
}
.hero__btn--secondary:hover { background: var(--gray5); }
.hero__btn--white {
  background: #fff; color: var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.hero__btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

/* ══════════════════════════════════════════════════
   3D LOGO STRIP
══════════════════════════════════════════════════ */
.logo-strip-section {
  overflow: hidden;
  padding: 8px 0 32px;
  background: #fff;
  display: flex; flex-direction: column; gap: 0px;
}
.logo-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  padding: 10px 0;
}
.logo-track--left {
  animation: scrollLeft 40s linear infinite;
}
.logo-track--right {
  animation: scrollRight 45s linear infinite;
}
.logo-track--left:hover,
.logo-track--right:hover { animation-play-state: paused; }
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* 3D Logo Pill */
.logo-pill {
  width: 72px; height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 8px;
  position: relative;
  cursor: pointer;
  transition: transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.logo-pill:hover { transform: translateY(-4px) scale(1.06); }

/* The 3D disc container – tilted like Ondo */
.logo-pill__disc {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transform: perspective(200px) rotateX(8deg) rotateY(-12deg) rotateZ(-4deg);
  box-shadow:
    -4px 4px 0 1px rgba(0,0,0,.12),
    0 8px 24px rgba(0,0,0,.14),
    inset 0 1px 2px rgba(255,255,255,.7),
    inset 0 -1px 2px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
}
.logo-pill:hover .logo-pill__disc {
  transform: perspective(200px) rotateX(4deg) rotateY(-6deg) rotateZ(-2deg);
  box-shadow:
    -5px 6px 0 1px rgba(0,0,0,.10),
    0 12px 32px rgba(0,0,0,.18),
    inset 0 1px 2px rgba(255,255,255,.8),
    inset 0 -1px 2px rgba(0,0,0,.06);
}
.logo-pill__inner {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  letter-spacing: -.01em; overflow: hidden;
  position: relative; z-index: 1;
}
/* Gloss overlay */
.logo-pill__gloss {
  position: absolute; top: 4px; left: 8px;
  width: 50px; height: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.0) 100%);
  border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
  pointer-events: none; z-index: 2;
}

/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar {
  border-top: 1px solid var(--gray5);
  border-bottom: 1px solid var(--gray5);
  background: var(--gray6);
  padding: 20px 24px;
}
.stats-bar__inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 36px; flex: 1; min-width: 100px;
}
.stat-val { font-size: 22px; font-weight: 800; color: var(--black); letter-spacing: -.02em; }
.stat-lbl { font-size: 11px; color: var(--gray3); font-weight: 500; }
.stat-div { width: 1px; height: 32px; background: var(--gray5); }

/* ══════════════════════════════════════════════════
   SECTION COMMONS
══════════════════════════════════════════════════ */
.section__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 24px;
}
.section__header { text-align: center; margin-bottom: 48px; }
.section__tag {
  display: inline-block;
  background: var(--gray6); border: 1px solid var(--gray5);
  border-radius: 100px; padding: 4px 14px;
  font-size: 11px; font-weight: 600; color: var(--gray2);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section__tag.light {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}
.section__title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700; letter-spacing: -.03em; color: var(--black);
  line-height: 1.18; margin-bottom: 10px;
}
.section__title.light-title { color: #fff; }
.section__sub { font-size: 15px; color: var(--gray3); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   MARKETS
══════════════════════════════════════════════════ */
.markets { background: #fff; }
.market-tabs {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 28px; justify-content: center;
}
.tab-btn {
  padding: 7px 16px; border-radius: 100px; border: 1px solid var(--gray5);
  background: var(--gray6); font-size: 13px; font-weight: 500;
  color: var(--gray2); cursor: pointer; transition: all .18s;
}
.tab-btn:hover { background: var(--gray5); color: var(--black); }
.tab-btn.active {
  background: var(--black); color: #fff;
  border-color: var(--black);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 40px;
}
.mkt-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--gray5);
  padding: 18px; cursor: pointer;
  transition: all .2s;
}
.mkt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  border-color: #ddd;
}
.mkt-card__top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.mkt-logo {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.mkt-card__sym { font-size: 14px; font-weight: 700; color: var(--black); }
.mkt-card__name { font-size: 10px; color: var(--gray3); margin-top: 1px; }
.mkt-card__price {
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  color: var(--black); margin-bottom: 6px;
}
.mkt-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--gray3);
}
.mkt-chg { font-size: 12px; font-weight: 600; }
.mkt-chg.up { color: var(--green); }
.mkt-chg.dn { color: var(--red); }
.market-cta { text-align: center; }

/* ══════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════ */
.features { background: var(--gray6); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff; border-radius: 18px;
  padding: 28px; border: 1px solid var(--gray5);
  transition: all .2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.feature-card p { font-size: 13px; color: var(--gray2); line-height: 1.65; }

/* ══════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════ */
.how { background: #0f0f0f; }
.how .section__title { color: #fff; }
.how .section__sub { color: #777; }
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 200px; max-width: 280px;
  text-align: center; padding: 24px 20px;
}
.step__num {
  font-size: 36px; font-weight: 900;
  color: rgba(255,255,255,.12); margin-bottom: 14px;
  letter-spacing: -.02em;
}
.step h3 { font-size: 17px; font-weight: 700; color: #e8e8e8; margin-bottom: 10px; }
.step p { font-size: 13px; color: #666; line-height: 1.7; }
.step__arrow {
  display: flex; align-items: center; padding-top: 48px;
  color: #333; font-size: 16px;
}
.how__cta { text-align: center; margin-top: 52px; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 24px 32px;
}
.footer__inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; gap: 40px;
}
.footer__left { display: flex; flex-direction: column; gap: 12px; }
.footer__logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 2px;
}
.footer__logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.footer__logo-text .logo-perp  { color: #e0e0e0; }
.footer__logo-text .logo-stock { color: #C9981A; }
.footer__copy { font-size: 12px; color: #444; line-height: 1.6; }
.footer__links {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.footer__col {
  display: flex; flex-direction: column; gap: 10px;
}
.footer__col-title {
  font-size: 11px; font-weight: 700; color: #555;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px;
}
.footer__col a { font-size: 13px; color: #444; transition: color .15s; }
.footer__col a:hover { color: #aaa; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav { width: calc(100% - 32px); top: 12px; }

  .hero { padding: calc(var(--nav-h) + 60px) 20px 40px; }
  .hero__title { font-size: 32px; }
  .br-desk { display: none; }

  .stats-bar__inner { gap: 0; }
  .stat-item { padding: 8px 16px; }
  .stat-div { display: none; }

  .steps { flex-direction: column; align-items: center; }
  .step__arrow { display: none; }
  .step { max-width: 100%; }

  .footer__inner { flex-direction: column; }
  .footer__links { gap: 28px; }
}

@media (max-width: 480px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .logo-pill { width: 60px; height: 60px; margin: 0 5px; }
  .logo-pill__disc { width: 56px; height: 56px; }
  .logo-pill__inner { width: 44px; height: 44px; }
}
