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

:root {
  --bg: #080807;
  --bg-alt: #0A0A09;
  --cream: #F2EDE8;
  --orange: #ff2400;
  --white: #FFFFFF;
  --gray: #888;
  --gray-dark: #777;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8,8,7,0.7);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.hidden { transform: translateY(-100%); }

.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.nav-logo svg { transition: transform 0.3s ease; }
.nav-logo:hover svg { transform: rotate(-10deg) scale(1.1); }

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
  letter-spacing: 0.08em;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
  margin-left: 12px;
}

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

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 4px;
}

.nav-pill a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-pill a:hover,
.nav-pill a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--bg);
  background: var(--orange);
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 16px;
}

.nav-cta:hover {
  background: #ff5a2b;
  transform: scale(1.05);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 60px 80px;
  overflow: hidden;
}

.hero-meta {
  position: absolute;
  top: 100px;
  width: calc(100% - 120px);
  display: flex;
  justify-content: space-between;
}

.hero-meta-left {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.hero-meta-right {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--gray-dark);
  text-align: right;
  line-height: 1.2;
}

.hero-stats {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-stats-left { left: 60px; top: 50%; transform: translateY(-50%); }
.hero-stats-right { right: 60px; top: 50%; transform: translateY(-50%); text-align: right; }

.stat-value {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-headline {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-headline .line1 {
  font-size: clamp(72px, 12vw, 180px);
  color: var(--white);
  display: block;
}

.hero-headline .line2 {
  font-size: clamp(72px, 12vw, 180px);
  color: var(--orange);
  display: block;
}

.hero-desc {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 440px;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  background: var(--orange);
  padding: 20px 48px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 20px 60px rgba(232,73,27,0.3);
}

.btn-primary:hover::before { opacity: 1; }

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.scroll-arrow:hover {
  border-color: var(--orange);
  background: rgba(255,36,0,0.15);
}

/* bounce handled by GSAP */

/* ---- CAROUSEL BAR ---- */
.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.carousel-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  font-weight: 700;
}

.carousel-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray);
  flex: 1;
  margin-left: 24px;
}

.carousel-text strong {
  color: var(--white);
  margin-right: 16px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active { background: var(--white); width: 48px; }
.carousel-dot:hover { background: rgba(255,255,255,0.3); }

/* ---- ABOUT SECTION ---- */
.about {
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 100vh;
  overflow: hidden;
}

.about-line {
  font-weight: 700;
  font-size: clamp(54px, 10vw, 144px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--cream);
  text-transform: uppercase;
  will-change: transform, opacity;
}

.about-line.accent {
  color: var(--orange);
}

/* ---- FEATURES SECTION ---- */
.features {
  padding: 128px 60px;
  background: var(--bg-alt);
}

.features-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 80px;
  line-height: 1.15;
}

.features-headline h2 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.15;
}

.toki-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.05em 0.4em;
  background: var(--orange);
  border-radius: 0.3em;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--white);
  letter-spacing: inherit;
  vertical-align: baseline;
  transition: transform 0.3s ease;
}

.toki-pill:hover { transform: scale(1.05) rotate(-1deg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--cream);
  border-radius: 40px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03));
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-16px) scale(1.03) rotate(-0.5deg);
}

.feature-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-tabs {
  display: flex;
  gap: 8px;
}

.widget-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bg);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.widget-tab.active,
.widget-tab:hover {
  background: var(--bg);
  color: var(--cream);
  border-color: var(--bg);
}

.widget-icon-box {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.widget-icon-box.pay {
  background: var(--cream);
  border: 1.5px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

.widget-icon-box.receive {
  background: #1a1a1a;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-card:hover .widget-icon-box {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.widget-icon-box .icon-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
}

.widget-icon-box.pay .icon-label { color: var(--bg); }
.widget-icon-box.receive .icon-label { color: var(--white); }

.receive-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-transactions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .widget-tx {
  transform: translateX(4px);
}

.widget-tx-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.widget-tx-amount {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--bg);
}

.widget-tx-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray);
}

.widget-tx-balance {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}

.feature-card-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.feature-card-bottom h3 {
  font-weight: 700;
  font-size: 28px;
  color: var(--bg);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card-bottom p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

.widget-date-badge {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  background: #333;
  padding: 4px 12px;
  border-radius: 8px;
}

/* ---- APP PREVIEW ---- */
.app-preview {
  padding: 160px 60px;
  display: flex;
  align-items: center;
  gap: 80px;
  min-height: 100vh;
}

.app-text { flex: 1; }

.app-text h2 {
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 48px;
}

.app-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-bullet {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
}

.app-bullet-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.app-phone-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.app-phone {
  width: 320px;
  height: 660px;
  background: linear-gradient(145deg, #1a1a1a, #111);
  border-radius: 48px;
  border: 3px solid #333;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.app-phone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-radius: 48px 48px 0 0;
  pointer-events: none;
}

.phone-side-left {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100px;
  background: var(--orange);
  border-radius: 0 0 2px 2px;
}

.phone-side-right {
  position: absolute;
  right: -4px;
  top: 30%;
  width: 4px;
  height: 60px;
  background: var(--orange);
  border-radius: 2px 0 0 2px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 40px;
  background: #0a0a0a;
  overflow: hidden;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.phone-brand-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.phone-menu {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-menu span {
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.phone-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
}

.phone-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease;
}

.phone-card:hover { transform: scale(1.02); }

.phone-card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray-dark);
  letter-spacing: 0.05em;
}

.phone-card-amount {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
}

.phone-card-amount.positive { color: var(--orange); }

.phone-card-name {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray);
}

.phone-card-balance {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray-dark);
  margin-top: 4px;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row .phone-card { flex: 1; }

.phone-summary {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.phone-summary-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}

.phone-summary-item strong {
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  display: block;
}

.phone-summary-item .value-in { color: var(--orange); }

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 120px 60px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.cta-image {
  flex: 1;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cta-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8491B 0%, #c73a12 50%, #8B4513 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cta-image-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 120px;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  border-radius: 8px 8px 0 0;
}

.cta-content {
  flex: 1;
}

.cta-headline {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 40px;
}

.cta-headline .accent { color: var(--orange); }

/* ---- FOOTER ---- */
.footer {
  padding: 80px 60px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-dark);
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dark);
  letter-spacing: 0.05em;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-socials a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dark);
  transition: color 0.2s ease;
}

.footer-socials a:hover { color: var(--orange); }

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ---- IMAGE TRAIL ---- */
.hero-trail-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.trail-img {
  position: absolute;
  width: 138px;
  height: 193px;
  object-fit: cover;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-stats { display: none; }
  .hero-meta { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:last-child { grid-column: span 2; }
  .app-preview { flex-direction: column; text-align: center; }
  .app-bullets { align-items: center; }
  .cta-section { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 12px 24px; }
  .nav-label { display: none; }
  .nav-pill { display: none; }
  .hero { padding: 100px 24px 60px; }
  .about { padding: 0 24px; min-height: 100vh; }
  .features { padding: 80px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card:last-child { grid-column: span 1; }
  .feature-card { min-height: 400px; border-radius: 28px; }
  .app-preview { padding: 80px 24px; gap: 48px; }
  .app-phone { width: 260px; height: 540px; border-radius: 40px; }
  .phone-screen { border-radius: 32px; }
  .cta-section { padding: 80px 24px; gap: 40px; }
  .cta-image { border-radius: 24px; }
  .footer { padding: 60px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .carousel-bar { display: none; }
  .container { padding: 0 24px; }
  .hero-trail-container { display: none; }
}

@media (max-width: 480px) {
  .hero-headline .line1,
  .hero-headline .line2 { font-size: 56px; }
  .btn-primary { padding: 16px 32px; font-size: 16px; }
  .about-line { font-size: 32px; }
}
