:root {
  --bg-color: #050505;
  --bg-surface: #0a0a0c;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --accent-secondary: #a855f7;
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.gradient-text-accent {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 120px 0;
}

.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--accent-glow) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-secondary) 100%
  );
  color: #fff;
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow:
    0 6px 30px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ================= STORE BADGES ================= */
.store-section {
  margin-bottom: 40px;
}

.store-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.18);
}

.store-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-badge-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.store-badge-text span {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.54);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.store-badge-text strong {
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 6px;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: var(--bg-color);
  border-radius: 3px;
}

nav ul {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.burger {
  display: none;
  background: none;
  color: var(--text-main);
  font-size: 1.5rem;
}

.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: #a5b4fc;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 24px 0 40px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.trust-metrics {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
}
.metric-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}
.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 320px;
  height: 650px;
  background: #000;
  border-radius: 48px;
  border: 8px solid #1f1f22;
  box-shadow:
    0 0 0 2px #0a0a0c,
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1f1f22;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  padding: 60px 16px 24px;
  height: 100%;
  background: linear-gradient(180deg, #0f1016 0%, #050505 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ui-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  animation: slideUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.ui-card:nth-child(2) {
  animation-delay: 0.3s;
}
.ui-card:nth-child(3) {
  animation-delay: 0.6s;
  opacity: 0.5;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.8rem;
}
.card-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
}
.card-time {
  color: var(--text-muted);
}
.card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.card-btn {
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.btn-approve {
  background: var(--success);
  color: #fff;
}
.btn-reject {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.floating-element {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.fe-1 {
  top: 20%;
  left: -60px;
  animation-delay: 0s;
}
.fe-2 {
  bottom: 30%;
  right: -80px;
  animation-delay: -3s;
}

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

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.problem-section {
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
}

.comp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.comp-card.bad {
  border-top: 3px solid var(--danger);
}
.comp-card.good {
  border-top: 3px solid var(--success);
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.05) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.comp-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comp-list li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.comp-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.bad .comp-list svg {
  color: var(--danger);
}
.good .comp-list svg {
  color: var(--success);
}
.good .comp-list li {
  color: var(--text-main);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color) 20%,
    var(--border-color) 80%,
    transparent
  );
  z-index: 0;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  z-index: 1;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.step-visual {
  height: 120px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dev-section {
  background: #0a0a0c;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.terminal-window {
  background: #0d0d12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.t-dot.r {
  background: #ff5f56;
}
.t-dot.y {
  background: #ffbd2e;
}
.t-dot.g {
  background: #27c93f;
}

.terminal-body {
  padding: 24px;
  color: #a9b7c6;
  line-height: 1.5;
  overflow-x: auto;
}

.t-method {
  color: #cc7832;
  font-weight: bold;
}
.t-url {
  color: #6a8759;
}
.t-key {
  color: #9876aa;
}
.t-string {
  color: #6a8759;
}
.t-bracket {
  color: #e8bf6a;
}

.feature-list {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.f-item {
  display: flex;
  gap: 16px;
}

.f-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
}

.arch-node {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  z-index: 2;
  width: 250px;
}

.node-pikpi {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 100%
  );
}

.arch-line {
  height: 2px;
  flex-grow: 1;
  background: repeating-linear-gradient(
    90deg,
    var(--border-color) 0,
    var(--border-color) 10px,
    transparent 10px,
    transparent 20px
  );
  position: relative;
  margin: 0 16px;
}

.pulse-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: moveDot 3s linear infinite;
}

.pulse-dot.reverse {
  animation: moveDotRev 3s linear infinite;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

@keyframes moveDot {
  0% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes moveDotRev {
  0% {
    right: 0;
    opacity: 0;
    left: auto;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    right: 100%;
    opacity: 0;
    left: auto;
  }
}

.tabs-header {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--text-main);
  color: var(--bg-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.scenario-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.dash-mockup {
  background: #0d0d12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dash-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.w-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.w-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.w-chart {
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  margin-top: 16px;
  position: relative;
}

.chart-bar {
  position: absolute;
  bottom: 0;
  width: 10%;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  border: 1px solid var(--border-color);
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  background: var(--bg-surface);
}

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

.footer-col h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1rem;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

header.is-scrolled {
  background: rgba(5, 5, 5, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glow-bg--primary {
  top: -200px;
  left: -100px;
}
.glow-bg--secondary {
  top: 40%;
  right: -200px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.2) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}

.hero-badge-icon {
  margin-right: 8px;
}
.hero-visual--delayed {
  transition-delay: 0.2s;
}

.floating-element--event {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.floating-note-title {
  font-size: 0.8rem;
  font-weight: bold;
}
.floating-note-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.floating-note-accent {
  color: #a5b4fc;
}

.card-tag--finance {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
.card-tag--route {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.card-tag--critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.card-action--full {
  grid-column: span 2;
}
.card-action--danger {
  background: var(--danger);
  color: #fff;
}

.section-heading {
  max-width: 600px;
  margin: 0 auto;
}
.section-heading--spaced {
  margin-bottom: 48px;
}
.copy-tight {
  margin-bottom: 24px;
}
.copy-small {
  font-size: 0.85rem;
}
.copy-step {
  font-size: 0.9rem;
}

.logo-icon--small {
  width: 24px;
  height: 24px;
  margin: 0;
}
.logo-icon--center {
  margin: 0 auto 12px;
}

.step-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #a5b4fc;
  text-align: left;
}

.step-code--success {
  color: var(--success);
}
.step-code-comment {
  color: #6b7280;
}

.step-action {
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.terminal-title {
  margin-left: 10px;
  color: #6b7280;
}
.terminal-pre {
  margin: 0;
}
.terminal-comment {
  color: #6b7280;
}

.arch-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.arch-copy {
  font-size: 0.8rem;
}
.pulse-dot--delayed {
  animation-delay: 1.5s;
}

.scenario-notification {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  animation: none;
  transform: none;
  opacity: 1;
}

.w-val--success {
  color: var(--success);
}
.chart-bar--1 {
  height: 30%;
  left: 0;
}
.chart-bar--2 {
  height: 50%;
  left: 15%;
}
.chart-bar--3 {
  height: 80%;
  left: 30%;
}
.chart-bar--4 {
  height: 40%;
  left: 45%;
}
.chart-bar--5 {
  height: 90%;
  left: 60%;
}
.chart-bar--6 {
  height: 60%;
  left: 75%;
}
.chart-bar--7 {
  height: 100%;
  left: 90%;
}

.admin-copy {
  padding-left: 20px;
}
.cta-copy {
  margin: 24px auto;
  max-width: 500px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}
.footer-brand {
  margin-bottom: 16px;
}
.footer-text {
  font-size: 0.85rem;
  max-width: 250px;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-container,
  .dev-grid,
  .tab-content.active {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
  .trust-metrics {
    justify-content: center;
  }
  .hero-subtitle {
    margin: 24px auto 40px;
  }
  .store-buttons {
    justify-content: center;
  }
  .arch-diagram {
    flex-direction: column;
    gap: 32px;
  }
  .arch-line {
    width: 2px;
    height: 50px;
    margin: 0;
  }

  @keyframes moveDot {
    0% {
      top: 0;
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      top: 100%;
      opacity: 0;
    }
  }

  @keyframes moveDotRev {
    0% {
      bottom: 0;
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      bottom: 100%;
      opacity: 0;
    }
  }

  .feature-list {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }
  .burger {
    display: block;
  }

  nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: 99;
  }

  nav.open {
    transform: translateY(0);
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 2.2rem;
  }
  .comparison-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid::before {
    display: none;
  }
  .section-padding {
    padding: 80px 0;
  }
  .phone-mockup {
    width: 280px;
    height: 580px;
    transform: none;
  }
  .hero {
    padding-top: 120px;
  }

  .store-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ================= MOBILE UX/UI UPGRADE ================= */

.nav-backdrop {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  :root {
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
  }

  html {
    scroll-padding-top: 78px;
  }

  body {
    background:
      radial-gradient(
        circle at 50% -10%,
        rgba(99, 102, 241, 0.22),
        transparent 42%
      ),
      var(--bg-color);
  }

  body.menu-open {
    overflow: hidden;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-padding {
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
    letter-spacing: -0.055em;
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    letter-spacing: -0.04em;
  }

  h3 {
    font-size: 1.2rem;
  }

  p,
  .text-muted,
  .comp-list li {
    font-size: 0.97rem;
  }

  .btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
  }

  header {
    z-index: 300;
    background: rgba(5, 5, 5, 0.82) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .header-content {
    height: 64px;
    gap: 14px;
  }

  .logo {
    min-width: 0;
    flex-shrink: 0;
    font-size: 1.28rem;
    position: relative;
    z-index: 340;
  }

  .logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .burger {
    position: relative;
    z-index: 360;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    opacity: 1;
    visibility: visible;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: var(--transition);
  }

  .burger:focus-visible {
    outline: 2px solid rgba(165, 180, 252, 0.9);
    outline-offset: 3px;
  }

  .burger:active {
    transform: scale(0.96);
  }

  nav {
    top: 74px;
    left: 14px;
    right: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(10, 10, 12, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
    transform: translateY(-18px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 330;
  }

  nav.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    gap: 10px;
    align-items: stretch;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
  }

  nav a::after {
    content: '→';
    color: var(--accent-secondary);
    font-weight: 800;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    z-index: 290;
  }

  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .glow-bg {
    width: 360px;
    height: 360px;
    filter: blur(70px);
    opacity: 0.36;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 56px;
    display: block;
  }

  .hero-container {
    gap: 38px;
    text-align: left;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    margin-bottom: 20px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.78rem;
  }

  .hero-subtitle {
    max-width: 100%;
    margin: 20px 0 28px;
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .store-section {
    width: 100%;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
  }

  .store-label {
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .store-badge {
    min-width: 0;
    min-height: 52px;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .store-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .store-badge-text strong {
    font-size: 0.95rem;
  }

  .trust-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-top: 0;
    padding-top: 0;
  }

  .metric {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
  }

  .metric-val {
    font-size: 1.22rem;
    line-height: 1.1;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .hero-visual {
    min-height: 510px;
    align-items: center;
    overflow: visible;
  }

  .phone-mockup {
    width: min(78vw, 292px);
    height: min(148vw, 590px);
    border-radius: 38px;
    border-width: 7px;
    box-shadow:
      0 18px 60px rgba(0, 0, 0, 0.9),
      0 0 60px rgba(99, 102, 241, 0.22);
  }

  .phone-screen {
    padding: 54px 13px 18px;
    gap: 13px;
  }

  .phone-notch {
    width: 106px;
    height: 25px;
  }

  .ui-card {
    padding: 14px;
    border-radius: 18px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-btn {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
  }

  .floating-element {
    display: none;
  }

  .text-center {
    text-align: left;
  }

  .problem-section .text-center,
  #how-it-works .text-center,
  #business .text-center,
  #scenarios .text-center {
    max-width: 100% !important;
  }

  .comparison-grid {
    gap: 16px;
    margin-top: 30px;
  }

  .comp-card {
    padding: 22px;
    border-radius: 24px;
  }

  .comp-title {
    font-size: 1.18rem;
    margin-bottom: 18px;
  }

  .comp-list li {
    gap: 10px;
    margin-bottom: 13px;
    line-height: 1.45;
  }

  .steps-grid {
    gap: 14px;
    margin-top: 30px;
  }

  .step-card {
    padding: 22px;
    text-align: left;
    border-radius: 22px;
  }

  .step-num {
    width: 42px;
    height: 42px;
    margin: 0 0 18px 0;
  }

  .step-visual {
    height: auto;
    min-height: 86px;
    margin-bottom: 18px;
    padding: 16px;
    justify-content: flex-start;
  }

  .dev-grid {
    gap: 28px;
    text-align: left;
  }

  .dev-section {
    border-radius: 32px 32px 0 0;
    margin-top: 16px;
  }

  .feature-list {
    gap: 14px;
  }

  .f-item {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .terminal-window {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    font-size: 0.72rem;
  }

  .terminal-body {
    padding: 16px;
    max-height: 360px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .arch-diagram {
    margin-top: 30px;
    padding: 22px;
    border-radius: 24px;
    gap: 18px;
  }

  .arch-node {
    width: 100%;
    padding: 20px;
    border-radius: 20px;
  }

  .tabs-header {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px 26px;
    padding: 0 18px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tabs-header::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
    scroll-snap-align: start;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
  }

  .tab-content.active {
    gap: 18px;
    text-align: left;
  }

  .scenario-card,
  .dash-mockup {
    padding: 22px;
    border-radius: 24px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .w-val {
    font-size: 1.45rem;
  }

  .cta-section {
    padding: 64px 0;
  }

  .cta-box {
    padding: 30px 20px;
    border-radius: 28px;
    text-align: left;
  }

  .cta-box > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  .cta-box .btn,
  .cta-box button {
    width: 100%;
  }

  footer {
    padding: 48px 0 28px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-col {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .footer-col:last-child {
    border-bottom: 0;
  }

  .footer-bottom {
    gap: 16px;
    line-height: 1.5;
  }

  .footer-bottom > div:last-child {
    flex-direction: column;
    gap: 10px !important;
  }
}

@media (max-width: 430px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 94px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .phone-mockup {
    width: min(84vw, 276px);
    height: 540px;
  }

  .hero-visual {
    min-height: 468px;
  }

  .store-section,
  .comp-card,
  .step-card,
  .scenario-card,
  .dash-mockup,
  .cta-box {
    border-radius: 22px;
  }
}
