@font-face {
  font-family: "IRANSans";
  src: url("./assets/fonts/IRANSans.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --primary: #38bdf8;
  --primary-dim: #0ea5e9;
  --primary-glow: rgba(56, 189, 248, 0.15);
  --accent: #f59e0b;
  --accent-dim: #d97706;
  --success: #10b981;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px -20px rgba(56, 189, 248, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: "IRANSans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
  --container-pad: clamp(20px, 5vw, 32px);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 999px;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: max(var(--container-pad), env(safe-area-inset-left, 0px))
    max(var(--container-pad), env(safe-area-inset-right, 0px));
}

/* ═══════════════════════════════════════════════════════════
   HEADER — Frosted Glass
   ═══════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 15, 26, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.brand img {
  border-radius: 50%;
}

.brand:hover {
  transform: scale(1.03);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-inline-start: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a {
  position: relative;
  transition: color 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--primary);
  font-weight: 700;
}

.topbar-cta {
  flex-shrink: 0;
  align-self: center;
}

.topbar .btn-sm {
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 8px;
  margin-inline-start: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.nav-toggle:active {
  transform: scale(0.92);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15), transparent 60%);
}

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

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: var(--bg);
  font-weight: 800;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.1);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   BAZAAR BADGE
   ═══════════════════════════════════════════════════════════ */
.bazaar-badge {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 12px;
  transition: all 0.35s var(--ease);
}

.bazaar-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.15);
}

.bazaar-badge__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.bazaar-badge__img--medium {
  width: min(150px, 100%);
}

.cta-slot {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   HERO — Premium Dark Tech
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 10vw, 120px) 0 clamp(32px, 4vw, 56px);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: clamp(100px, 15vw, 140px);
    padding-bottom: clamp(24px, 4vw, 40px);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 85% 20%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(245, 158, 11, 0.04), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56, 189, 248, 0.02), transparent);
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  animation: heroOrb 25s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  animation: heroOrb 30s ease-in-out infinite reverse;
}

@keyframes heroOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(0.9); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s ease infinite;
}

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

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw + 0.5rem, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1vw + 0.85rem, 1.15rem);
  line-height: 1.85;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  justify-content: center;
}

.hero-ctas .hero-cta--apk {
  opacity: 0.9;
}

.hero-cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  margin-top: 16px;
}

.hero-text-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.45);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.hero-text-link:hover,
.hero-text-link:focus-visible {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.hero-text-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 4px;
}

.hero-text-link:active {
  color: var(--primary);
  opacity: 0.9;
}

.hero-cta-sep {
  color: var(--text-muted);
  opacity: 0.55;
  user-select: none;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  justify-content: center;
}

.hero-trust strong {
  color: var(--primary);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.hero-features li {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}

.hero-features li:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   HERO — 3D Phone
   ═══════════════════════════════════════════════════════════ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  perspective: 1200px;
  overflow: hidden;
  padding: 20px;
}

.phone-3d {
  position: relative;
  transform-style: preserve-3d;
  animation: phoneFloat 8s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  25% { transform: translateY(-16px) rotateY(3deg) rotateX(1deg); }
  50% { transform: translateY(-8px) rotateY(0deg) rotateX(0deg); }
  75% { transform: translateY(-18px) rotateY(-3deg) rotateX(-1deg); }
}

.phone-glow {
  position: absolute;
  inset: -40px;
  border-radius: 60px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: glowPulse 4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Double-bezel outer shell */
.phone-shell {
  position: relative;
  padding: 6px;
  border-radius: 44px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.22));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 60px -24px rgba(0, 0, 0, 0.55);
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(280px, 75vw);
  padding: 14px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border-radius: calc(44px - 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 0 100px -30px rgba(56, 189, 248, 0.15);
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.phone-3d:hover .phone-frame {
  transform: rotateY(-8deg) rotateX(5deg) scale(1.05);
}

.phone-notch {
  width: 90px;
  height: 26px;
  margin: 0 auto 8px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
}

.phone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  background: #0c7b93;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(150%);
  font-size: 0.82rem;
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.float-card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}

.float-card small {
  color: var(--text-muted);
}

.float-card--1 {
  top: 10%;
  inset-inline-start: 0%;
  animation-delay: -1s;
}

.float-card--2 {
  bottom: 12%;
  inset-inline-end: 0%;
  animation-delay: -3s;
}

.float-icon {
  font-size: 1.5rem;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-10px) rotateX(2deg) rotateY(1deg); }
  50% { transform: translateY(-5px) rotateX(0deg) rotateY(-1deg); }
  75% { transform: translateY(-12px) rotateX(-2deg) rotateY(2deg); }
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
  animation: fadeInUp 1s var(--ease) forwards;
  opacity: 0;
}

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

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 999px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════ */
.stats-bar {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: all 0.35s var(--ease);
}

.stat-item:hover {
  background: rgba(56, 189, 248, 0.04);
  border-color: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

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

/* ═══════════════════════════════════════════════════════════
   PROBLEM SECTION
   ═══════════════════════════════════════════════════════════ */
.section--problem .section-header {
  margin-bottom: 32px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin-inline: auto;
}

.problem-card {
  padding: 24px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.problem-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.problem-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.problem-bridge {
  margin: 28px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--primary);
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section--alt {
  background: var(--bg-elevated);
}

.section--screens {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.section--screens .section-header {
  margin-bottom: 32px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 999px;
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-desc {
  margin: 14px 0 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-desc a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════
   BENTO GRID — Features
   ═══════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

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

.bento-card--large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.bento-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 16px;
  color: var(--primary);
  transition: transform 0.35s var(--ease-spring);
}

.bento-icon svg {
  width: 28px;
  height: 28px;
}

.bento-card:hover .bento-icon {
  transform: scale(1.1) rotate(-5deg);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento-visual {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 120px;
  height: 120px;
}

.bento-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.15);
  animation: ringPulse 3s ease-out infinite;
}

.bento-ring--2 {
  animation-delay: 1.5s;
}

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   SCREENS SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.screens-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}

@media (max-width: 768px) {
  .screens-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
    margin-inline: auto;
  }
}

.screen-item {
  text-align: center;
  transition: transform 0.4s var(--ease);
}

.screen-item:hover {
  transform: translateY(-8px);
}

.screen-frame {
  margin: 0 auto;
  max-width: 260px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 80px -20px rgba(56, 189, 248, 0.1);
  line-height: 0;
  transition: all 0.4s var(--ease);
}

@media (min-width: 769px) {
  .screen-frame {
    max-width: 100%;
  }
}

.screen-item:hover .screen-frame {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 100px -20px rgba(56, 189, 248, 0.15);
}

.screen-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-item h3 {
  margin: 18px 0 6px;
  font-size: 1.1rem;
}

.screen-item p {
  margin: 0 auto;
  max-width: 32ch;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   STEPS — Timeline
   ═══════════════════════════════════════════════════════════ */
.steps-timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 19px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
  border-radius: 999px;
}

.steps-list {
  list-style: none;
  padding: 0;
}

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
  transition: transform 0.3s var(--ease-spring);
  z-index: 1;
}

.step-item:hover .step-num {
  transform: scale(1.1) rotate(-5deg);
}

.step-content h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD SECTION
   ═══════════════════════════════════════════════════════════ */
.section--download {
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(56, 189, 248, 0.06), transparent),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(245, 158, 11, 0.03), transparent),
    var(--bg);
}

.download-hero {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.download-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

.download-hero p {
  margin: 14px 0 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease);
}

.download-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.download-card--primary:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.1);
}

.download-card-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 16px;
  flex-shrink: 0;
}

.download-card-content {
  flex: 1;
}

.download-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.download-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.download-card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.download-card:hover .download-card-arrow {
  transform: translateX(-4px);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════ */
.cta-banner {
  background:
    radial-gradient(ellipse 40% 50% at 10% 50%, rgba(56, 189, 248, 0.06), transparent),
    linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(14, 165, 233, 0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 6vw, 72px) 0;
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
}

.cta-banner p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.05);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.35s var(--ease);
  font-weight: 300;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item a {
  color: var(--primary);
  font-weight: 600;
}

.faq-bazaar {
  margin: 12px 0;
}

.faq-bazaar .bazaar-badge__img {
  height: 48px;
  width: auto;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28ch;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-nav a {
  transition: color 0.2s, transform 0.2s;
}

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

.footer-contact a {
  font-weight: 600;
  color: var(--primary);
}

.footer-copy {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.reveal-up.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-up[data-delay="1"].is-visible { transition-delay: 0.08s; }
.reveal-up[data-delay="2"].is-visible { transition-delay: 0.16s; }
.reveal-up[data-delay="3"].is-visible { transition-delay: 0.24s; }
.reveal-up[data-delay="4"].is-visible { transition-delay: 0.32s; }
.reveal-up[data-delay="5"].is-visible { transition-delay: 0.4s; }
.reveal-up[data-delay="6"].is-visible { transition-delay: 0.48s; }

/* ═══════════════════════════════════════════════════════════
   GRAIN TEXTURE
   ═══════════════════════════════════════════════════════════ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: start;
  }

  .hero-sub {
    margin-inline: 0;
  }

  .hero-ctas,
  .hero-features,
  .hero-trust {
    justify-content: flex-start;
  }
}

@media (min-width: 769px) {
  .site-nav {
    display: flex;
    position: static;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    overflow: visible;
    margin-inline-start: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 1023px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento-card {
    padding: 22px 20px;
  }

  .bento-card--large {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .bento-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .bento-icon svg {
    width: 24px;
    height: 24px;
  }

  .bento-card h3 {
    font-size: 1rem;
  }

  .bento-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .bento-card {
    padding: 20px 16px;
  }

  .bento-visual {
    display: none;
  }

  .bento-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .bento-icon svg {
    width: 22px;
    height: 22px;
  }

  .bento-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .bento-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .topbar-cta {
    display: none;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(10, 15, 26, 0.6);
    backdrop-filter: blur(4px);
  }

  .site-nav {
    display: flex;
    position: fixed;
    z-index: 51;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
    left: max(var(--container-pad), env(safe-area-inset-left, 0px));
    right: max(var(--container-pad), env(safe-area-inset-right, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-inline-start: 0;
    padding: 8px;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.97);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    transition: all 0.2s;
  }

  .site-nav a:hover {
    background: rgba(56, 189, 248, 0.06);
  }

  .site-nav a::after {
    display: none;
  }

  .float-card {
    display: none;
  }

  .hero-visual {
    min-height: auto;
    padding: 16px 0;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .hero-trust {
    font-size: 0.82rem;
    flex-wrap: wrap;
    text-align: center;
  }

  .scroll-indicator {
    margin-top: 20px;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-nav {
    align-items: center;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-ctas .btn,
  .hero-ctas .bazaar-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
    gap: 8px;
  }

  .hero-features li {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .phone-frame {
    width: min(260px, 82vw);
    padding: 11px;
    border-radius: calc(38px - 5px);
  }

  .phone-shell {
    padding: 5px;
    border-radius: 38px;
  }

  .phone-notch {
    width: 70px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  .phone-screen {
    border-radius: 22px;
  }

  .screen-frame {
    max-width: min(220px, 75vw);
    border-radius: 22px;
  }

  .steps-timeline::before {
    right: 15px;
  }

  .step-item {
    gap: 16px;
    padding: 16px 0;
  }

  .step-num {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section--screens .section-header {
    margin-bottom: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-item {
    padding: 14px 12px;
    gap: 12px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .stat-value {
    font-size: 1rem;
  }

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

  .download-hero {
    margin-bottom: 28px;
  }

  .download-hero h2 {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .download-hero p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .download-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .download-card-icon {
    width: 38px;
    height: 38px;
  }

  .download-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .download-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .download-card h3 {
    font-size: 1rem;
  }

  .download-card p {
    font-size: 0.82rem;
  }

  .cta-banner {
    padding: clamp(32px, 6vw, 48px) 0;
  }

  .cta-banner h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .cta-banner p {
    font-size: 0.88rem;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .faq-item summary::after {
    font-size: 1.1rem;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .footer {
    padding: 32px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand p {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .footer-nav {
    font-size: 0.88rem;
    gap: 8px;
  }

  .footer-contact a {
    font-size: 0.88rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }

  .preloader-orbit--1 {
    border-width: 1px;
  }

  .preloader-orbit--2 {
    border-width: 1px;
  }

  .preloader-orbit--3 {
    border-width: 1px;
  }

  .preloader-logo {
    width: 52px;
    height: 52px;
  }

  .preloader-bar {
    width: 120px;
  }

  .preloader-text {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.88rem;
  }

  .phone-frame {
    width: min(240px, 84vw);
    padding: 9px;
    border-radius: calc(34px - 5px);
  }

  .phone-shell {
    padding: 4px;
    border-radius: 34px;
  }

  .phone-notch {
    width: 60px;
    height: 18px;
  }

  .phone-screen {
    border-radius: 20px;
  }

  .bazaar-badge__img {
    height: 44px;
  }

  .stat-item {
    padding: 12px 10px;
  }

  .download-card {
    padding: 14px 12px;
    gap: 12px;
  }

.download-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.download-card-icon svg {
  width: 28px;
  height: 28px;
}

  .faq-item summary {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .faq-item p {
    padding: 0 14px 12px;
    font-size: 0.84rem;
  }

  .cta-banner h2 {
    font-size: 1.15rem;
  }

  .footer {
    padding: 24px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-block: 20px;
    min-height: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  .reveal-up,
  .phone-3d,
  .float-card,
  .float-card--1,
  .float-card--2,
  .bento-ring,
  .hero-badge-dot,
  .text-gradient,
  .hero-title,
  .scroll-wheel,
  .scroll-indicator,
  .phone-glow,
  .step-num,
  .bento-icon,
  .screen-item,
  .screen-item:hover .screen-frame,
  .phone-3d:hover .phone-frame,
  .bento-card:hover,
  .stat-item:hover,
  .download-card:hover,
  .faq-item:hover,
  .step-item:hover .step-num,
  .bento-card:hover .bento-icon {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }

  .scroll-indicator {
    opacity: 1;
  }

  .preloader-orbit,
  .preloader-logo,
  .preloader-pulse,
  .preloader-bar-fill,
  .preloader-text {
    animation: none !important;
  }

  .preloader-bar-fill {
    width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOCUS STATES
   ═══════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.nav-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.preloader-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.preloader-orbit--1 {
  inset: 0;
  border-top-color: var(--primary);
  border-right-color: rgba(56, 189, 248, 0.3);
  animation: preloaderSpin 2s linear infinite;
}

.preloader-orbit--2 {
  inset: 12px;
  border-bottom-color: var(--accent);
  border-left-color: rgba(245, 158, 11, 0.3);
  animation: preloaderSpin 2.8s linear infinite reverse;
}

.preloader-orbit--3 {
  inset: 24px;
  border-top-color: rgba(167, 139, 250, 0.5);
  border-right-color: rgba(167, 139, 250, 0.15);
  animation: preloaderSpin 1.6s linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

.preloader-logo {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.2); }
}

.preloader-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  animation: preloaderGlow 2s ease-in-out infinite;
}

@keyframes preloaderGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #a78bfa, var(--primary));
  background-size: 200% 100%;
  border-radius: 999px;
  animation: preloaderBarFill 2.5s var(--ease) forwards, preloaderBarShimmer 1.5s ease infinite;
}

@keyframes preloaderBarFill {
  0% { width: 0%; }
  40% { width: 60%; }
  80% { width: 90%; }
  100% { width: 100%; }
}

@keyframes preloaderBarShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.preloader-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: preloaderTextFade 1.5s ease-in-out infinite;
}

@keyframes preloaderTextFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   HERO — Live app alarm mockup (MedicationAlarmScreen)
   ═══════════════════════════════════════════════════════════ */
.app-alarm {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(10px, 4.5%, 18px) clamp(12px, 5%, 20px) clamp(12px, 4%, 16px);
  line-height: 1.4;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0c7b93 0%, #0e8fa8 50%, #0a6b80 100%);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: auto;
}

.app-home {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.48s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.48s cubic-bezier(0.32, 0.72, 0, 1);
}

.phone-screen.is-taken .app-alarm {
  opacity: 0;
  transform: translateY(-8%) scale(0.98);
  pointer-events: none;
}

.phone-screen.is-taken .app-home {
  opacity: 1;
  transform: scale(1);
}

.app-alarm__header {
  flex-shrink: 0;
  margin-bottom: clamp(4px, 1.5%, 8px);
}

.app-alarm__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(11px, 3.8vw, 14px);
  font-weight: 700;
}

.app-alarm__brand img {
  width: clamp(18px, 5.5vw, 24px);
  height: clamp(18px, 5.5vw, 24px);
  border-radius: 50%;
}

.app-alarm__subtitle {
  margin: 4px 0 0;
  font-size: clamp(9px, 2.8vw, 11px);
  color: rgba(255, 255, 255, 0.72);
}

.app-alarm__pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 22vw, 96px);
  height: clamp(72px, 22vw, 96px);
  margin: clamp(6px, 2%, 12px) 0;
  flex-shrink: 0;
  pointer-events: none;
}

.app-alarm__ripple {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: alarmRipple 2.2s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}

.app-alarm__logo-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 16vw, 68px);
  height: clamp(52px, 16vw, 68px);
  padding: clamp(8px, 2.5vw, 12px);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 28px 6px rgba(255, 255, 255, 0.28);
  animation: alarmPulse 1.1s ease-in-out infinite alternate;
}

.app-alarm__logo-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes alarmPulse {
  from { transform: scale(0.94); }
  to { transform: scale(1.06); }
}

@keyframes alarmRipple {
  0% {
    transform: scale(0.72);
    opacity: 0.45;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.app-alarm__time-block {
  flex-shrink: 0;
  margin-bottom: clamp(4px, 1.5%, 8px);
}

.app-alarm__time {
  display: block;
  font-size: clamp(28px, 12vw, 40px);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.app-alarm__date {
  margin: 4px 0 0;
  font-size: clamp(9px, 2.8vw, 11px);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.app-alarm__label {
  margin: 4px 0 0;
  font-size: clamp(10px, 3vw, 12px);
  color: rgba(255, 255, 255, 0.7);
}

.app-alarm__med-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: clamp(6px, 2%, 12px) 0 auto;
  flex-shrink: 0;
}

.app-alarm__med {
  margin: 0;
  font-size: clamp(16px, 5vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}

.app-alarm__dosage {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: clamp(9px, 2.8vw, 11px);
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.app-alarm__actions {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: clamp(8px, 3%, 14px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 2%, 8px);
}

.app-alarm__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: clamp(8px, 2.5vw, 10px) 12px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    transform 0.15s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.2s cubic-bezier(0.32, 0.72, 0, 1),
    background-color 0.2s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.app-alarm__btn.is-pressed,
.app-alarm__btn:active:not(:disabled) {
  transform: scale(0.97);
}

.app-alarm__btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.app-alarm__btn--primary {
  background: #fff;
  color: #00a8cc;
  font-weight: 700;
}

.app-alarm__btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.app-alarm__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  min-height: 28px;
  padding-block: 4px;
}

.app-alarm__btn--flash {
  animation: alarmBtnFlash 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.app-alarm__btn--success {
  background: #e8fff3 !important;
  color: #0a8f5c !important;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.35);
}

@keyframes alarmBtnFlash {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .app-alarm__ripple,
  .app-alarm__logo-ring {
    animation: none;
  }

  .app-alarm,
  .app-home,
  .app-alarm__btn {
    transition-duration: 0.01ms;
  }

  .phone-screen.is-taken .app-alarm {
    transform: scale(0.99);
  }

  .phone-screen.is-taken .app-home {
    transform: scale(1);
  }
}

/* Mobile / touch: stable phone mockup so alarm buttons stay tappable */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .phone-3d {
    animation: none !important;
    transform: perspective(900px) rotateY(-4deg) rotateX(2deg) !important;
  }

  .phone-glow {
    animation: none !important;
    opacity: 0.55;
    transform: scale(1);
  }

  .phone-3d:hover .phone-frame {
    transform: none;
  }

  .app-alarm__btn--secondary {
    display: none;
  }

  .app-alarm__actions {
    margin-top: auto;
    padding-top: 8px;
  }

  .app-alarm__ripple,
  .app-alarm__logo-ring {
    animation: none;
    transform: scale(1);
  }

  .app-alarm__logo-ring {
    transform: scale(1);
  }

  .app-alarm__ripple {
    transform: scale(1.05);
    opacity: 0.28;
  }

  .phone-screen.is-interacting .app-alarm__ripple,
  .phone-screen.is-interacting .app-alarm__logo-ring {
    animation: none;
    opacity: 0.35;
    transform: none;
  }

  .app-alarm__btn--primary {
    min-height: 48px;
    padding: 12px 14px;
    font-size: clamp(13px, 3.8vw, 14px);
    border-radius: 16px;
  }

  .app-alarm__pulse {
    width: clamp(56px, 18vw, 72px);
    height: clamp(56px, 18vw, 72px);
    margin-block: 4px 6px;
  }

  .app-alarm__time {
    font-size: clamp(28px, 12vw, 36px);
  }
}

/* ─── PWA install modal ─── */
.pwa-modal[hidden] {
  display: none !important;
}

.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pwa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.pwa-modal__panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color: #f1f5f9;
}

.pwa-modal__close {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pwa-modal__panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  padding-inline-end: 36px;
}

.pwa-modal__lead {
  margin: 0 0 16px;
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
}

.pwa-modal__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pwa-modal__steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.pwa-modal__steps .step-n {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #38bdf8;
  color: #0a0f1a;
  font-weight: 700;
  font-size: 0.85rem;
}

.pwa-modal__steps strong {
  display: block;
  margin-bottom: 2px;
}

.pwa-modal__steps span {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pwa-modal__note {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  font-size: 0.88rem;
  line-height: 1.6;
}

.pwa-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pwa-modal__actions .btn {
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
}

body.pwa-modal-open {
  overflow: hidden;
}

