/* Scene — Marketing Landing */

:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --accent: #00f5d4;
  --accent-warm: #ff6b6b;
  --bg: #06060b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #f4f4f8;
  --text-muted: rgba(244, 244, 248, 0.65);
  --glass: rgba(12, 12, 20, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 11, 0.82);
  backdrop-filter: blur(20px);
  border-color: var(--glass-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, var(--text) 40%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.35);
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #7d6ff0;
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.5);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ── Video background helper ── */
.video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 11, 0.55) 0%,
    rgba(6, 6, 11, 0.75) 50%,
    rgba(6, 6, 11, 0.95) 100%
  );
}

.video-bg.purple-tint::after {
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.35) 0%,
    rgba(6, 6, 11, 0.85) 60%,
    rgba(6, 6, 11, 0.98) 100%
  );
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 4rem) 4rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  animation: fadeUp 0.8s ease both;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 .line2 {
  display: block;
  font-size: clamp(1.65rem, 4.5vw, 3.25rem);
  line-height: 1.3;
  margin-top: 0.15em;
  padding-bottom: 0.12em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), #8b7cf7);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  animation: fadeUp 0.8s 0.45s ease both;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

/* ── Marquee ── */
.marquee-wrap {
  position: relative;
  z-index: 10;
  padding: 1.25rem 0;
  background: var(--primary);
  overflow: hidden;
  transform: skewY(-1deg);
  margin: -1rem 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Sections shared ── */
section {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Vision ── */
.vision {
  background: var(--bg);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .vision-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vision-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.vision-text p strong {
  color: var(--text);
  font-weight: 600;
}

.vision-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--glass-border);
}

.vision-visual video,
.vision-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-visual .float-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.float-card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}

.float-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Bento use cases ── */
.use-cases {
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d16 100%);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
  }

  .bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 460px;
  }

  .bento-card.wide {
    grid-column: span 2;
  }
}

.bento-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--glass-border);
  cursor: default;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.2);
}

.bento-card .card-bg {
  position: absolute;
  inset: 0;
}

.bento-card .card-bg img,
.bento-card .card-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento-card:hover .card-bg img,
.bento-card:hover .card-bg video {
  transform: scale(1.08);
}

.bento-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 6, 11, 0.95) 0%,
    rgba(6, 6, 11, 0.4) 50%,
    rgba(6, 6, 11, 0.2) 100%
  );
}

.bento-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.bento-card .card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.bento-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bento-card .tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(108, 92, 231, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-light);
}

/* ── Features ── */
.features {
  position: relative;
  overflow: hidden;
}

.features .video-bg::after {
  background: rgba(6, 6, 11, 0.88);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.4);
  background: rgba(108, 92, 231, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Future ── */
.future {
  background: var(--bg);
}

.future-banner {
  position: relative;
  margin-top: 3rem;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.future-banner .video-bg::after {
  background: linear-gradient(
    90deg,
    rgba(6, 6, 11, 0.97) 0%,
    rgba(6, 6, 11, 0.7) 45%,
    rgba(6, 6, 11, 0.4) 100%
  );
}

.future-banner-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 580px;
}

.future-banner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.future-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.future-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.future-pill {
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Scale section ── */
.scale {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.scale .video-bg::after {
  background: linear-gradient(
    180deg,
    rgba(6, 6, 11, 0.75) 0%,
    rgba(108, 92, 231, 0.25) 50%,
    rgba(6, 6, 11, 0.95) 100%
  );
}

.scale-content {
  position: relative;
  z-index: 2;
}

.scale-content .section-label {
  display: inline-block;
  margin-bottom: 1rem;
}

.scale-content .section-title {
  margin-bottom: 1.25rem;
}

.scale-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── CTA ── */
.cta {
  background: linear-gradient(180deg, #0d0d16 0%, var(--bg) 100%);
  text-align: center;
}

.cta .section-title,
.cta .section-label {
  color: var(--text);
}

.cta .section-title {
  margin-left: auto;
  margin-right: auto;
}

.cta .section-desc {
  margin: 0 auto 2.5rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.35rem 0.65rem 1.1rem;
  min-width: 210px;
  min-height: 56px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(162, 155, 254, 0.45);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.25);
}

.store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-icon svg {
  width: 26px;
  height: 26px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-label {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.9;
  text-transform: none;
}

.store-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Footer ── */
.footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244, 244, 248, 0.35);
  margin-top: 1rem;
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .scroll-hint { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-badge, .hero h1, .hero-sub, .hero-actions, .hero-stats {
    animation: none;
  }
}
