/* ==========================================================================
   NFC ($NFC) — Matte Obsidian Titanium Hardware Stylesheet (v2 AAA)
   ========================================================================== */
:root {
  --bg: #08090c;
  --bg-elevated: #111318;
  --bg-card: #14171d;
  --bg-inset: #0c0d11;
  --ink: #f7f6f2;
  --ink-2: #a9adb9;
  --ink-muted: #6f7482;
  --signal: #ff5526;
  --signal-hover: #ff6b42;
  --signal-soft: rgba(255, 85, 38, 0.16);
  --green: #1dc972;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 64px -20px rgba(0, 0, 0, 0.72);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

::selection {
  background: rgba(255, 85, 38, 0.28);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(960px 560px at 78% -6%, rgba(255, 85, 38, 0.12) 0%, transparent 62%),
    radial-gradient(720px 460px at 14% 24%, rgba(255, 255, 255, 0.03) 0%, transparent 65%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--signal); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   MASKED TEXT & SCROLL CHOREOGRAPHY
   ========================================================================== */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
}

.word-rise {
  display: inline-block;
  transform: translateY(108%);
  opacity: 0;
  animation: wordRise 0.85s var(--ease-out) forwards;
}

.w1 { animation-delay: 0.06s; }
.w2 { animation-delay: 0.18s; }

@keyframes wordRise {
  from { transform: translateY(108%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease-out) forwards;
}

.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.34s; }
.d4 { animation-delay: 0.44s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}

.scroll-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderBeamSpin {
  from { --beam-angle: 0deg; }
  to { --beam-angle: 360deg; }
}

/* Skill 1: Titanium Border Beam (running signal-orange perimeter pulse) */
.border-beam::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 245deg,
    rgba(255, 85, 38, 0.25) 285deg,
    #ff5526 325deg,
    rgba(247, 246, 242, 0.9) 345deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: borderBeamSpin 5.5s linear infinite;
}

/* Pointer-following Titanium Rim Spotlight on Cards */
.spotlight-card {
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 85, 38, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ff5526 0%, #f7f6f2 100%);
  pointer-events: none;
  z-index: 5;
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out);
}

.ca-pill:hover {
  border-color: var(--signal);
}

.ca-badge {
  background: var(--signal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}

.ico { opacity: 0.72; }

.x-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.x-circle-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.wallet-btn {
  border: none;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.wallet-btn:hover {
  background: var(--signal);
  color: #fff;
}

.wallet-btn.connected {
  background: #14532d;
  color: #fff;
}

/* ==========================================================================
   HERO & DUAL-IPHONE 3D TILT KEYNOTE STAGE
   ========================================================================== */
.hero-sec {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 5.2vw, 4.65rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Skill 2: Interactive Marker Highlight on Hero Key Phrase */
.hl-mark {
  display: inline-block;
  color: #fff;
  background: linear-gradient(120deg, rgba(255, 85, 38, 0.92) 0%, rgba(255, 85, 38, 0.72) 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 50%;
  border-radius: 10px;
  padding: 0 12px 2px;
  margin-left: 2px;
  animation: markSweep 0.75s 0.42s var(--ease-out) forwards;
}

@keyframes markSweep {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

/* Skill 3: Magnetic Button + Silky Hardware Shimmer Sweep */
.magnetic-btn {
  will-change: transform;
  transition: transform 0.22s var(--ease-out), background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: shimmerGlide 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmerGlide {
  0%, 45% { left: -60%; opacity: 0; }
  55% { opacity: 1; }
  85%, 100% { left: 135%; opacity: 0; }
}

/* Energy Arc Bridge between Dynamic Islands on Touch */
.touch-arc {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 210px;
  height: 84px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.touch-arc-path {
  stroke: #ff5526;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  filter: drop-shadow(0 0 8px rgba(255, 85, 38, 0.85));
}

.phones-stage.bumping .touch-arc {
  opacity: 1;
}

.phones-stage.bumping .touch-arc-path {
  animation: arcDraw 0.65s var(--ease-out) forwards;
}

@keyframes arcDraw {
  0% { stroke-dashoffset: 220; opacity: 0.4; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -220; opacity: 0; }
}

.accent-word {
  font-style: normal;
  color: var(--signal);
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 99px;
  background: var(--signal);
  color: #fff;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 10px 26px -6px rgba(255, 85, 38, 0.48);
}

.btn-primary:hover {
  background: var(--signal-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.compat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.compat-key {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.compat-val {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Titanium Stage Card */
.stage-card {
  background: linear-gradient(180deg, #15171e 0%, #0e1014 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out);
  transform-style: preserve-3d;
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stage-modes {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
}

.mode-tab {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.mode-tab.active {
  background: var(--ink);
  color: var(--bg);
}

.demo-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.phones-stage {
  position: relative;
  height: 332px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 24%, rgba(255, 85, 38, 0.14) 0%, #090a0d 72%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 14px;
  overflow: hidden;
  perspective: 1100px;
}

.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bump-wave {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
}

.bump-wave span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--signal);
  opacity: 0;
  transform: scale(0.4);
}

.phones-stage.bumping .bump-wave span:nth-child(1) {
  animation: waveOut 0.9s var(--ease-out) forwards;
}
.phones-stage.bumping .bump-wave span:nth-child(2) {
  animation: waveOut 1.1s 0.12s var(--ease-out) forwards;
}
.phones-stage.bumping .bump-wave span:nth-child(3) {
  animation: waveOut 1.25s 0.24s var(--ease-out) forwards;
}

@keyframes waveOut {
  0% { opacity: 0.95; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(12); }
}

.iphone {
  position: relative;
  width: 178px;
  height: 274px;
  border-radius: 26px;
  background: linear-gradient(155deg, #4b4e57 0%, #1c1e24 55%, #111216 100%);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.72);
  transition: transform 0.56s var(--ease-out), box-shadow 0.45s var(--ease-out);
  z-index: 2;
  overflow: visible;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.iphone:active { cursor: grabbing; }

/* Physical Titanium Side Buttons */
.iphone-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6b707d 0%, #2d3038 100%);
  pointer-events: none;
}
.btn-vol-up { left: -3px; top: 64px; height: 22px; }
.btn-vol-dn { left: -3px; top: 94px; height: 22px; }
.btn-power  { right: -3px; top: 76px; height: 34px; }

.iphone-sheen {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.iphone-sheen::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 36%, rgba(255, 255, 255, 0.14) 50%, transparent 64%);
  transform: translateX(-60%);
  transition: transform 0.8s var(--ease-out);
}

.phones-stage.bumping .iphone-sheen::after {
  transform: translateX(60%);
}

.iphone-left { transform: rotate(-6deg) translateX(-4px); animation: floatLeft 5.6s ease-in-out infinite; }
.iphone-right { transform: rotate(6deg) translateX(4px); animation: floatRight 5.6s ease-in-out infinite; }

.phones-stage.dragging .iphone {
  animation: none !important;
  transition: box-shadow 0.15s ease-out !important;
}
.phones-stage.dragging .iphone-left {
  transform: rotate(calc(-6deg + var(--drag-p, 0) * 5deg)) translateX(calc(-4px + var(--drag-p, 0) * 18px)) translateY(calc(var(--drag-p, 0) * -10px));
}
.phones-stage.dragging .iphone-right {
  transform: rotate(calc(6deg - var(--drag-p, 0) * 5deg)) translateX(calc(4px - var(--drag-p, 0) * 18px)) translateY(calc(var(--drag-p, 0) * -10px));
}
.phones-stage.dragging .iphone-island {
  width: calc(52px + var(--drag-p, 0) * 20px);
}

@keyframes floatLeft {
  0%, 100% { transform: rotate(-6deg) translate(-4px, 0px); }
  50% { transform: rotate(-4.5deg) translate(-4px, -5px); }
}
@keyframes floatRight {
  0%, 100% { transform: rotate(6deg) translate(4px, -3px); }
  50% { transform: rotate(4.5deg) translate(4px, 2px); }
}

.phones-stage.bumping .iphone-left {
  animation: none;
  transform: rotate(-1deg) translateX(14px) translateY(-10px) scale(1.03);
  box-shadow: 0 22px 48px rgba(255, 85, 38, 0.25);
}
.phones-stage.bumping .iphone-right {
  animation: none;
  transform: rotate(1deg) translateX(-14px) translateY(-10px) scale(1.03);
  box-shadow: 0 22px 48px rgba(255, 85, 38, 0.25);
}

.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 12px;
  border-radius: 99px;
  background: #000;
  z-index: 3;
  transition: width 0.35s var(--ease-out);
}

.phones-stage.bumping .iphone-island {
  width: 72px;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  background: linear-gradient(180deg, #1b1817 0%, #0e0f13 100%);
  padding: 28px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.45s var(--ease-out);
}

.phones-stage.bumping .iphone-screen {
  background: linear-gradient(180deg, #35180f 0%, #101115 80%);
}

.ios-status {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.ios-signal {
  color: var(--signal);
  font-weight: 700;
}

.ios-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.ios-kicker {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.54);
}

.ios-amount {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.ios-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
}

.ios-pill {
  text-align: center;
  padding: 7px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.3s var(--ease-out);
}

.phones-stage.bumping .ios-pill {
  background: var(--signal);
}

.stage-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.preset-group {
  display: flex;
  gap: 6px;
}

.preset-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  border-radius: 99px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.preset-btn.active {
  border-color: var(--signal);
  background: var(--signal-soft);
  color: #fff;
}

.btn-bump-sim {
  border: none;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg);
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.15s var(--ease-out);
}

.btn-bump-sim:hover {
  background: var(--signal);
  color: #fff;
  transform: translateY(-1px);
}

.stage-tip {
  margin-top: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.header-telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   SECTIONS & LIVE BUMP DESK (#bump)
   ========================================================================== */
.sec {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sec-title {
  font-size: clamp(1.9rem, 3.3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 8px;
}

.sec-desc {
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

.wallet-readout {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 14px;
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.desk-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.mono-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--signal);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.mode-explain {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.seg-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.seg-btn {
  border: 1px solid var(--line-strong);
  background: var(--bg-inset);
  color: var(--ink-2);
  border-radius: 10px;
  padding: 10px 8px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-out), background 0.16s var(--ease-out), color 0.16s var(--ease-out);
}

.seg-btn.active {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.field-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-inset);
  color: var(--ink);
  padding: 11px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.16s var(--ease-out);
}

.field-input:focus {
  border-color: var(--signal);
}

.trigger-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-touch-live {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #1d2029 0%, #101218 100%);
  color: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.btn-touch-live:hover {
  border-color: var(--signal);
  transform: translateY(-1px);
}

.btn-touch-live.waiting {
  border-color: var(--signal);
  background: linear-gradient(135deg, #ff5526 0%, #c93911 100%);
}

.touch-ring-halo {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 85, 38, 0.45);
  opacity: 0;
  pointer-events: none;
}

.btn-touch-live.waiting .touch-ring-halo {
  animation: waveOut 1.4s var(--ease-out) infinite;
}

.touch-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.touch-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.74);
}

.sensor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Instant 2nd-Phone Camera QR Handoff Box */
.qr-handoff {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
}

.qr-svg-wrap {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 3px;
}

.qr-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qr-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.qr-sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.qr-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

/* 3D Coin Flip Badge for 50/50 Duel Matches */
.match-head-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff794d 0%, #ff5526 55%, #b8330d 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(255, 85, 38, 0.36);
  animation: coinFlip3D 0.85s var(--ease-out);
}

.coin-badge[hidden] {
  display: none !important;
}

@keyframes coinFlip3D {
  0% { transform: perspective(300px) rotateY(0deg) scale(0.7); }
  55% { transform: perspective(300px) rotateY(540deg) scale(1.12); }
  100% { transform: perspective(300px) rotateY(720deg) scale(1); }
}

.btn-utility {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-inset);
  color: var(--ink);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-out), background 0.16s var(--ease-out);
}

.btn-utility:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn-utility.active {
  border-color: var(--signal);
  color: var(--signal);
}

.match-panel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.match-empty {
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.match-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--signal);
}

.match-headline {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.match-amt {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.match-peer {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-bottom: 14px;
  word-break: break-all;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.desk-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.text-link-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-link-btn:hover { color: var(--signal); }

.nfc-cap-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   PROTOCOL ARCHITECTURE RAIL (#how)
   ========================================================================== */
.flow-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.flow-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 38, 0.45);
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-idx {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--signal);
}

.flow-tag {
  font-size: 0.7rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
}

.flow-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-item p {
  font-size: 0.94rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ==========================================================================
   CA BANNER & FOOTER (#get)
   ========================================================================== */
.sec-get {
  padding-bottom: 36px;
}

.ca-banner {
  background: var(--bg-card);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 36px;
}

.ca-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 12px 10px 22px;
  margin-bottom: 22px;
}

.ca-bar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.ca-bar-code {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.ca-bar-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: 99px;
  background: var(--signal);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s var(--ease-out);
}

.ca-bar-copy:hover { background: var(--signal-hover); }

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 6px;
}

.ext-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  transition: color 0.16s var(--ease-out);
}

.ext-link:hover { color: var(--signal); }

.foot {
  padding-top: 12px;
}

.foot-word {
  font-size: clamp(4.5rem, 15vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: rgba(247, 246, 242, 0.94);
  margin-bottom: 18px;
}

.foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.back-top {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.back-top:hover { color: var(--signal); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE (MOBILE 390px)
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .desk-grid { grid-template-columns: 1fr; }
  .flow-rail { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar-inner { padding: 10px 14px; }
  .ca-pill { display: none; }
  .wallet-btn { padding: 8px 12px; font-size: 0.78rem; }
  .hero-sec { padding: 34px 14px 44px; }
  .compat-strip { grid-template-columns: 1fr; gap: 12px; }
  .sec { padding: 42px 14px; }
  .phones-stage { height: 278px; gap: 12px; }
  .iphone { width: 146px; height: 226px; border-radius: 22px; }
  .iphone-screen { border-radius: 17px; padding: 24px 9px 11px; }
  .ios-kicker { font-size: 0.54rem; }
  .ios-amount { font-size: 1.12rem; }
  .two-fields { grid-template-columns: 1fr; }
  .sensor-row { grid-template-columns: 1fr; }
  .ca-bar { border-radius: 14px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .word-rise, .reveal-up, .scroll-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .iphone-left, .iphone-right { animation: none !important; }
}
