/* Ledger landing page */
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16.5px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top)) clamp(20px, 5vw, 64px) 18px;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 9, 24, 0.72); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 12px;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a, .nav-signin { color: var(--soft); text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
.nav-links a:hover, .nav-signin:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 22px; }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(120px + env(safe-area-inset-top)) clamp(20px, 6vw, 96px) 80px; max-width: 1400px; margin: 0 auto;
}
.hero-copy .fomo { margin-bottom: 30px; }
.hero-title { font-size: clamp(58px, 8.4vw, 132px); line-height: 0.92; margin: 0 0 30px; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--soft); max-width: 560px; margin: 0 0 38px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.google-row { margin-top: 14px; }
.google-row .btn { width: fit-content; }
.hero-notes { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 14px; }
.hero-notes li { display: flex; align-items: center; gap: 9px; }
.hero-notes li::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a58bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }

.hero-visual { display: grid; place-items: center; }
.logo-stage { position: relative; width: min(520px, 100%); aspect-ratio: 1; }
.logo-video { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at center, #000 52%, transparent 71%); mask-image: radial-gradient(circle at center, #000 52%, transparent 71%); }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 62%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.75; } }

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: rgba(15, 12, 31, 0.5); }
.ticker-track { display: flex; gap: 38px; width: max-content; animation: ticker 38s linear infinite; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); color: var(--soft); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--accent-2); font-size: 0.6em; align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-title { font-size: clamp(44px, 5.6vw, 84px); line-height: 0.98; margin: 16px 0 0; letter-spacing: -0.015em; }

/* Phone showcase */
.showcase {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 110px);
  padding: 140px clamp(20px, 6vw, 96px); max-width: 1300px; margin: 0 auto;
}
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 6px; max-width: 520px; }
.steps li { display: flex; gap: 18px; padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; transition: background 0.4s ease, border-color 0.4s ease, opacity 0.4s ease; opacity: 0.55; }
.steps li.active { opacity: 1; background: rgba(124, 92, 255, 0.08); border-color: var(--line); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent-2); width: 32px; flex-shrink: 0; line-height: 1.2; }
.steps strong { font-size: 17px; font-weight: 600; }
.steps p { margin: 5px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.demo-note { color: var(--muted); font-size: 12.5px; margin: 18px 0 0 18px; }

.phone-wrap { position: relative; perspective: 1600px; justify-self: center; }
.phone {
  --w: 330px;
  position: relative; width: var(--w); aspect-ratio: 402 / 874; padding: calc(var(--w) * 0.034); border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #4b4659 0%, #23202d 22%, #15131c 55%, #3a3647 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), inset 0 0 0 4px #0c0b10,
    0 50px 110px rgba(0, 0, 0, 0.65), 0 0 120px rgba(124, 92, 255, 0.22);
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(1deg); transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-wrap:hover .phone, .phone.flat { transform: rotateY(0) rotateX(0) rotateZ(0); }
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2c2936, #55506a); }
.phone-btn-action { left: -3px; top: 17%; height: 4%; }
.phone-btn-up { left: -3px; top: 25%; height: 7.5%; }
.phone-btn-down { left: -3px; top: 34.5%; height: 7.5%; }
.phone-btn-power { right: -3px; top: 27%; height: 11%; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.135); overflow: hidden; background: #0b0918; }
.phone-inner { position: absolute; left: 0; top: 0; width: 390px; height: 848px; transform-origin: top left; }
.status-bar { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 46px; color: #fff; font-weight: 600; font-size: 16px; background: #0b0918; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { height: 12px; width: auto; fill: currentColor; }
.island { position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; }
.phone-app { position: absolute; left: 0; top: 54px; width: 390px; height: 794px; border: 0; background: #0b0918; pointer-events: none; }
.phone-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%); }
.phone-shadow { position: absolute; left: 10%; right: 10%; bottom: -46px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(124, 92, 255, 0.35), transparent 70%); filter: blur(14px); }

/* Features */
.features { padding: 120px clamp(20px, 6vw, 96px); max-width: 1300px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 30px 26px 32px; transition: transform 0.35s ease, border-color 0.35s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(165, 139, 255, 0.4); }
.feature-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px; background: linear-gradient(135deg, rgba(165, 139, 255, 0.24), rgba(107, 77, 240, 0.12)); border: 1px solid rgba(165, 139, 255, 0.3); }
.feature-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0 0 12px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Desktop preview */
.desktop { padding: 80px clamp(20px, 6vw, 96px) 120px; max-width: 1300px; margin: 0 auto; }
.browser { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #0f0c1f; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55), 0 0 120px rgba(124, 92, 255, 0.12); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-strong); background: #120f24; }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #2c2650; }
.browser-url { margin: 0 auto; padding: 6px 18px; border-radius: 999px; background: #0b0918; color: var(--muted); font-size: 13px; }
.browser-view { position: relative; width: 100%; aspect-ratio: 1280 / 760; overflow: hidden; }
.browser-app { position: absolute; left: 0; top: 0; width: 1280px; height: 760px; border: 0; transform-origin: top left; pointer-events: none; background: #0b0918; }

/* Final */
.final { padding: 60px clamp(20px, 6vw, 96px) 140px; }
.final-card { max-width: 980px; margin: 0 auto; text-align: center; padding: clamp(48px, 7vw, 96px) 28px; display: grid; justify-items: center; gap: 30px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(124, 92, 255, 0.22), rgba(21, 18, 42, 0.62) 60%); }
.final-title { font-size: clamp(46px, 6.4vw, 96px); line-height: 0.96; margin: 0; letter-spacing: -0.015em; }
.final .cta-row { justify-content: center; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px clamp(20px, 6vw, 96px) calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer .brand-word { font-size: 24px; }
.footer .logo-mark { width: 24px; height: 21px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--soft); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer p { margin: 0; font-size: 13px; }

/* Tablet */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: calc(110px + env(safe-area-inset-top)); text-align: left; }
  .hero-visual { order: -1; margin-bottom: -10px; }
  .logo-stage { width: min(340px, 82vw); }
  .showcase { grid-template-columns: minmax(0, 1fr); padding-top: 100px; padding-bottom: 100px; }
  .showcase .phone-wrap { order: -1; margin-bottom: 40px; }
  .showcase-copy { text-align: center; }
  .steps { margin-left: auto; margin-right: auto; text-align: left; }
  .demo-note { text-align: center; margin-left: 0; }
  .phone { transform: none; }
}
/* Phone */
@media (max-width: 560px) {
  .nav-signin { display: none; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; padding-bottom: 60px; }
  .hero-copy .fomo { font-size: 12.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .google-row .btn { width: 100%; }
  .phone { --w: min(300px, 78vw); }
  .features, .desktop, .final, .showcase { padding-left: 16px; padding-right: 16px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 12px 10px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
