/* ============================================
   KLUNEST - Airlearn-style Landing Page
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-hero-bg: #1a1050;
  --color-accent: #5040c0;
  --color-dark: #061720;
  --color-gray: #7a8b94;
  --color-white: #ffffff;

  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ============================================
   NAVBAR (Desktop - top bar)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 16, 80, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav__logo-icon {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid #ffffff;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
}

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

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.nav__link--active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.nav__link--active:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Hamburger - hidden always now */
.nav__menu-toggle {
  display: none;
}

/* Sidebar/overlay - not used anymore */
.nav__overlay,
.nav__sidebar {
  display: none;
}

/* ============================================
   BOTTOM TAB BAR (Mobile only)
   ============================================ */
.tab-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop nav links */
  .nav__links {
    display: none;
  }

  .nav__inner {
    justify-content: center;
    position: relative;
  }

  .nav__logo {
    flex-direction: row-reverse;
  }

  .nav__logo-icon {
    position: absolute;
    left: 16px;
  }

  .nav__logo-text {
    padding: 0 16px;
  }

  /* Show bottom tab bar */
  .tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(160deg, #1a1050 0%, #2d2080 30%, #4535a0 60%, #5040c0 80%, #4834f0 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .tab-bar__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tab-bar__link:hover {
    color: #ffffff;
  }

  .tab-bar__link--active {
    color: #ffffff;
  }

  .tab-bar__icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .tab-bar__label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #1a1050 0%, #2d2080 30%, #4535a0 60%, #5040c0 80%, #4834f0 100%);
  padding-top: 96px;
  padding-bottom: 0;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Circle Bubbles (shared across all sections) --- */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.bubble--1 {
  width: 300px; height: 300px;
  top: -100px; right: -80px;
  background: rgba(255, 255, 255, 0.05);
}

.bubble--2 {
  width: 200px; height: 200px;
  bottom: -60px; left: -60px;
  background: rgba(255, 255, 255, 0.04);
}

.bubble--3 {
  width: 120px; height: 120px;
  top: 20%; left: 8%;
  background: rgba(255, 255, 255, 0.06);
}

.bubble--4 {
  width: 80px; height: 80px;
  top: 45%; right: 6%;
  background: rgba(255, 255, 255, 0.05);
}

.bubble--5 {
  width: 60px; height: 60px;
  top: 15%; left: 45%;
  background: rgba(255, 255, 255, 0.04);
}

.bubble--6 {
  width: 150px; height: 150px;
  bottom: 15%; right: 18%;
  background: rgba(255, 255, 255, 0.03);
}

.bubble--7 {
  width: 40px; height: 40px;
  top: 60%; left: 3%;
  background: rgba(255, 255, 255, 0.06);
}

.bubble--8 {
  width: 90px; height: 90px;
  bottom: 30%; left: 25%;
  background: rgba(255, 255, 255, 0.04);
}

/* --- Hero Content --- */
.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
  width: 100%;
  max-width: 800px;
}

/* Shared logo styles (used in footer) */
.hero__logo-icon {
  font-size: 1.2rem;
}

.hero__logo-text {
  color: var(--color-dark);
  font-weight: 800;
}

.hero__title {
  font-size: clamp(1.65rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  font-weight: 500;
  font-style: italic;
}

/* --- Store Buttons --- */
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 10px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.store-btn:active {
  transform: translateY(0);
}

.store-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn__text small {
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
  text-transform: uppercase;
}

.store-btn__text strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.store-btn--small {
  padding: 8px 18px;
  border-radius: 8px;
}

.store-btn--small .store-btn__text small {
  font-size: 0.5rem;
}

.store-btn--small .store-btn__text strong {
  font-size: 0.85rem;
}

/* ============================================
   PHONE MOCKUPS
   ============================================ */
.hero__phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
  padding: 0 24px;
  width: 100%;
  max-width: 1200px;
}

.phone {
  border-radius: 28px;
  background: #1a1a1a;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.phone__screen {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Phone sizes - center is biggest */
.phone--far-left,
.phone--far-right {
  width: 180px;
  height: 360px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.phone--left,
.phone--right {
  width: 210px;
  height: 420px;
  opacity: 0.92;
  margin-bottom: 10px;
}

.phone--center {
  width: 260px;
  height: 520px;
  z-index: 5;
}

/* --- Phone Internal Content --- */
.phone__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #333;
  background: #f8f8f8;
}

.phone__status-icons {
  font-size: 0.4rem;
  letter-spacing: 2px;
}

.phone__app-content {
  padding: 8px 10px;
  font-size: 0.6rem;
  color: #333;
  overflow: hidden;
}

.phone__close {
  font-size: 0.7rem;
  color: #999;
}

.phone__app-header {
  margin-bottom: 6px;
}

.phone__lesson-preview {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.phone__lesson-preview > div {
  flex: 1;
  height: 50px;
  border-radius: 8px;
}

.phone__lesson-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.phone__lesson-sub {
  font-size: 0.5rem;
  color: #999;
  margin-bottom: 8px;
}

.phone__leaderboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone__leader-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.55rem;
  padding: 4px 8px;
  background: #f5f8fa;
  border-radius: 6px;
}

.phone__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.45rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Drag area phone */
.phone__drag-area {
  display: flex;
  gap: 4px;
  margin: 6px 0;
}

.phone__drag-box {
  flex: 1;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 600;
}

.phone__img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.phone__img-item {
  height: 45px;
  border-radius: 6px;
}

/* Center phone - splash screen */
.phone__screen--center {
  background: linear-gradient(160deg, #1a1050 0%, #2d2080 30%, #4535a0 60%, #5040c0 80%, #6050e0 100%);
  position: relative;
  overflow: hidden;
}

.phone__splash {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone__splash-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone__splash-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.phone__splash-bubble--1 {
  width: 55%;
  aspect-ratio: 1;
  top: -12%;
  left: -18%;
}

.phone__splash-bubble--2 {
  width: 30%;
  aspect-ratio: 1;
  top: 30%;
  right: 5%;
}

.phone__splash-bubble--3 {
  width: 50%;
  aspect-ratio: 1;
  bottom: -8%;
  right: -15%;
  background: rgba(255, 255, 255, 0.06);
}

.phone__splash-bubble--4 {
  width: 35%;
  aspect-ratio: 1;
  bottom: 8%;
  left: -10%;
  background: rgba(255, 255, 255, 0.04);
}

.phone__splash-content {
  text-align: center;
  z-index: 1;
}

.phone__splash-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.phone__splash-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.phone__splash-tagline {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Left & right phones are smaller - scale splash down */
.phone--left .phone__splash-logo-img,
.phone--right .phone__splash-logo-img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.phone--left .phone__splash-icon,
.phone--right .phone__splash-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.phone--left .phone__splash-icon svg,
.phone--right .phone__splash-icon svg {
  width: 24px;
  height: 24px;
}

.phone--left .phone__splash-name,
.phone--right .phone__splash-name {
  font-size: 0.65rem;
}

.phone--left .phone__splash-tagline,
.phone--right .phone__splash-tagline {
  font-size: 0.4rem;
}

.phone--left .phone__splash-btn,
.phone--right .phone__splash-btn {
  padding: 5px 8px;
  font-size: 0.4rem;
  gap: 4px;
  margin: 3px auto;
}

.phone--left .phone__splash-btn svg,
.phone--right .phone__splash-btn svg {
  width: 10px;
  height: 10px;
}

.phone--left .phone__splash-sub,
.phone--right .phone__splash-sub {
  font-size: 0.32rem;
  margin: 3px 0 1px;
}

.phone--left .phone__splash-spinner,
.phone--right .phone__splash-spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
  margin-top: 8px;
}

/* Far-left & far-right even smaller */
.phone--far-left .phone__splash-icon,
.phone--far-right .phone__splash-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.phone--far-left .phone__splash-icon svg,
.phone--far-right .phone__splash-icon svg {
  width: 20px;
  height: 20px;
}

.phone--far-left .phone__splash-name,
.phone--far-right .phone__splash-name {
  font-size: 0.55rem;
}

.phone--far-left .phone__splash-tagline,
.phone--far-right .phone__splash-tagline {
  font-size: 0.35rem;
}

.phone__splash-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.phone__splash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #333;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.55rem;
  font-weight: 600;
  margin: 6px auto;
  width: 85%;
}

.phone__splash-sub {
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 2px;
}

.phone__splash-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin: 14px auto 0;
  animation: spin 1s linear infinite;
}

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

.phone__top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.5rem;
  flex-wrap: wrap;
}

.phone__badge-red {
  background: #e74c3c;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.4rem;
  font-weight: 700;
}

.phone__badge-item {
  font-size: 0.5rem;
}

.phone__badge-pro {
  background: #9b59b6;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.4rem;
  font-weight: 700;
}

.phone__streak-section {
  text-align: center;
  padding: 10px 0;
}

.phone__streak-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.phone__streak-sub {
  font-size: 0.5rem;
  color: #888;
}

.phone__characters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.phone__char {
  width: 50px;
  height: 60px;
  border-radius: 12px;
}

.phone__greeting-section {
  text-align: center;
  padding: 8px 0 4px;
}

.phone__greeting-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--color-dark);
}

.phone__greeting-sub {
  font-size: 0.45rem;
  color: #888;
  margin-top: 2px;
}

.phone__topic-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.phone__topic {
  text-align: center;
  font-size: 0.4rem;
  color: #666;
}

.phone__topic-check {
  width: 24px;
  height: 24px;
  background: #48c78e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  font-size: 0.55rem;
  font-weight: 700;
}

.phone__bottom-checks {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}

.phone__check-green {
  width: 28px;
  height: 28px;
  background: #48c78e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}

.phone__play-btn {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

/* Sentence phone */
.phone__sentence-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.phone__word-slot {
  padding: 6px 10px;
  background: #f5f8fa;
  border-radius: 8px;
  font-size: 0.55rem;
  color: #555;
}

.phone__word-slot--answer {
  background: #e8f4fd;
  color: var(--color-dark);
  font-weight: 600;
}

.phone__word-slot--highlight {
  background: #48c78e;
  color: #fff;
  font-weight: 600;
}

/* Japanese card phone */
.phone__japanese-card {
  background: #e8f4fd;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

.phone__jp-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.phone__jp-desc {
  font-size: 0.5rem;
  color: #555;
  line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-hero-bg);
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
}


.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px 32px;
  width: 100%;
}

.footer__brand {
  max-width: 420px;
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer__logo-img {
  height: 34px;
  width: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.footer__logo-text {
  color: #ffffff;
}

.footer__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.footer__store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links {
  padding-top: 2px;
}

.footer__links-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer__link {
  display: block;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: color var(--transition);
  text-decoration: none;
}

.footer__link:hover {
  color: #ffffff;
}

.footer__bottom {
  text-align: center;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* --- Large desktop (max 1440px) --- */
@media (max-width: 1440px) {
}

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  .hero__phones {
    gap: 12px;
  }

  .phone--far-left,
  .phone--far-right {
    width: 150px;
    height: 300px;
  }

  .phone--left,
  .phone--right {
    width: 180px;
    height: 360px;
  }

  .phone--center {
    width: 220px;
    height: 440px;
  }

  .footer__inner {
    gap: 0;
  }

}

/* --- Small tablet (max 768px) --- */
@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .footer {
    padding-bottom: 60px;
  }

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

  .hero__phones {
    gap: 8px;
    margin-top: 36px;
    padding: 0 12px;
  }

  .phone--far-left,
  .phone--far-right {
    display: none;
  }

  .phone--left,
  .phone--right {
    width: 140px;
    height: 280px;
    border-radius: 20px;
    padding: 4px;
    flex-shrink: 1;
  }

  .phone--left .phone__screen,
  .phone--right .phone__screen {
    border-radius: 16px;
  }

  .phone--center {
    width: 190px;
    height: 380px;
    border-radius: 24px;
    flex-shrink: 1;
  }

  .phone--center .phone__screen {
    border-radius: 20px;
  }

  .bubble--5,
  .bubble--8 {
    display: none;
  }

  /* Scale splash for tablet - center */
  .phone--center .phone__splash-logo-img {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .phone--center .phone__splash-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .phone--center .phone__splash-icon svg {
    width: 26px;
    height: 26px;
  }

  .phone--center .phone__splash-name {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .phone--center .phone__splash-tagline {
    font-size: 0.42rem;
  }

  .phone--center .phone__splash-btn {
    padding: 5px 10px;
    font-size: 0.42rem;
    gap: 5px;
    margin: 4px auto;
  }

  .phone--center .phone__splash-btn svg {
    width: 12px;
    height: 12px;
  }

  .phone--center .phone__splash-sub {
    font-size: 0.35rem;
    margin: 4px 0 2px;
  }

  .phone--center .phone__splash-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin-top: 10px;
  }

  /* Scale splash for tablet - left/right */
  .phone--left .phone__splash-logo-img,
  .phone--right .phone__splash-logo-img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
  }

  .phone--left .phone__splash-icon,
  .phone--right .phone__splash-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-bottom: 5px;
  }

  .phone--left .phone__splash-icon svg,
  .phone--right .phone__splash-icon svg {
    width: 18px;
    height: 18px;
  }

  .phone--left .phone__splash-name,
  .phone--right .phone__splash-name {
    font-size: 0.45rem;
  }

  .phone--left .phone__splash-tagline,
  .phone--right .phone__splash-tagline {
    font-size: 0.3rem;
  }

  .phone--left .phone__splash-btn,
  .phone--right .phone__splash-btn {
    padding: 3px 6px;
    font-size: 0.3rem;
    gap: 3px;
    margin: 2px auto;
  }

  .phone--left .phone__splash-btn svg,
  .phone--right .phone__splash-btn svg {
    width: 8px;
    height: 8px;
  }

  .phone--left .phone__splash-sub,
  .phone--right .phone__splash-sub {
    font-size: 0.25rem;
    margin: 2px 0 1px;
  }

  .phone--left .phone__splash-spinner,
  .phone--right .phone__splash-spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    margin-top: 5px;
  }

  /* Footer */
  .footer {
    padding: 28px 0 0;
  }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  .hero {
    padding-top: 76px;
  }

  .hero__content {
    padding: 0 16px;
  }

  .store-btn {
    padding: 10px 20px;
  }

  .hero__phones {
    gap: 6px;
    padding: 0 8px;
  }

  /* Let phones shrink to fit screen */
  .phone {
    flex-shrink: 1;
  }

  .phone--left,
  .phone--right {
    width: 28%;
    max-width: 110px;
    aspect-ratio: 1 / 2;
    height: auto;
    border-radius: 16px;
    padding: 3px;
  }

  .phone--left .phone__screen,
  .phone--right .phone__screen {
    border-radius: 14px;
  }

  .phone--center {
    width: 38%;
    max-width: 155px;
    aspect-ratio: 1 / 2;
    height: auto;
    border-radius: 20px;
    padding: 4px;
  }

  .phone--center .phone__screen {
    border-radius: 17px;
  }

  /* Scale splash for mobile - center */
  .phone--center .phone__splash-logo-img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
  }

  .phone--center .phone__splash-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-bottom: 5px;
  }

  .phone--center .phone__splash-icon svg {
    width: 18px;
    height: 18px;
  }

  .phone--center .phone__splash-name {
    font-size: 0.45rem;
    margin-bottom: 1px;
  }

  .phone--center .phone__splash-tagline {
    font-size: 0.3rem;
  }

  .phone--center .phone__splash-btn {
    padding: 3px 6px;
    font-size: 0.3rem;
    gap: 3px;
    margin: 2px auto;
    border-radius: 16px;
  }

  .phone--center .phone__splash-btn svg {
    width: 8px;
    height: 8px;
  }

  .phone--center .phone__splash-sub {
    font-size: 0.25rem;
    margin: 2px 0 1px;
  }

  .phone--center .phone__splash-spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    margin-top: 5px;
  }

  /* Scale splash for mobile - left/right */
  .phone--left .phone__splash-logo-img,
  .phone--right .phone__splash-logo-img {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
  }

  .phone--left .phone__splash-icon,
  .phone--right .phone__splash-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    margin-bottom: 3px;
  }

  .phone--left .phone__splash-icon svg,
  .phone--right .phone__splash-icon svg {
    width: 14px;
    height: 14px;
  }

  .phone--left .phone__splash-name,
  .phone--right .phone__splash-name {
    font-size: 0.32rem;
  }

  .phone--left .phone__splash-tagline,
  .phone--right .phone__splash-tagline {
    font-size: 0.22rem;
  }

  .phone--left .phone__splash-btn,
  .phone--right .phone__splash-btn {
    padding: 2px 4px;
    font-size: 0.22rem;
    gap: 2px;
    margin: 1px auto;
    border-radius: 12px;
  }

  .phone--left .phone__splash-btn svg,
  .phone--right .phone__splash-btn svg {
    width: 6px;
    height: 6px;
  }

  .phone--left .phone__splash-sub,
  .phone--right .phone__splash-sub {
    font-size: 0.18rem;
    margin: 1px 0;
  }

  .phone--left .phone__splash-spinner,
  .phone--right .phone__splash-spinner {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
    margin-top: 3px;
  }

  /* Footer */
  .footer {
    padding: 24px 0 0;
  }

  .footer__desc {
    font-size: 0.78rem;
    max-width: 280px;
  }

  .footer__link {
    font-size: 0.85rem;
    padding: 5px 0;
  }

  .container {
    padding: 0 16px;
  }
}

/* --- Very small mobile (max 360px) --- */
@media (max-width: 360px) {
  .phone--left,
  .phone--right {
    width: 26%;
  }

  .phone--center {
    width: 36%;
  }

  .store-btn {
    padding: 8px 16px;
  }

  .store-btn__text strong {
    font-size: 0.9rem;
  }

  .footer__inner {
    gap: 24px;
  }

  .phone__app-content {
    padding: 4px 6px;
    font-size: 0.5rem;
  }

  .phone__status-bar {
    padding: 4px 8px;
    font-size: 0.45rem;
  }

  .phone--center .phone__splash-logo-img {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
  }

  .phone--center .phone__splash-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    margin-bottom: 4px;
  }

  .phone--center .phone__splash-icon svg {
    width: 16px;
    height: 16px;
  }

  .phone--center .phone__splash-name {
    font-size: 0.38rem;
  }

  .phone--center .phone__splash-tagline {
    font-size: 0.25rem;
  }

  .phone--center .phone__splash-btn {
    padding: 2px 5px;
    font-size: 0.25rem;
    gap: 2px;
    margin: 2px auto;
  }

  .phone--center .phone__splash-btn svg {
    width: 7px;
    height: 7px;
  }

  .phone--center .phone__splash-sub {
    font-size: 0.2rem;
    margin: 2px 0 1px;
  }

  .phone--center .phone__splash-spinner {
    width: 12px;
    height: 12px;
    margin-top: 4px;
  }

  .phone--left .phone__splash-logo-img,
  .phone--right .phone__splash-logo-img {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
  }

  .phone--left .phone__splash-icon,
  .phone--right .phone__splash-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-bottom: 2px;
  }

  .phone--left .phone__splash-icon svg,
  .phone--right .phone__splash-icon svg {
    width: 12px;
    height: 12px;
  }

  .phone--left .phone__splash-name,
  .phone--right .phone__splash-name {
    font-size: 0.28rem;
  }

  .phone--left .phone__splash-tagline,
  .phone--right .phone__splash-tagline {
    font-size: 0.18rem;
  }

  .phone--left .phone__splash-btn,
  .phone--right .phone__splash-btn {
    padding: 2px 3px;
    font-size: 0.18rem;
    gap: 2px;
    margin: 1px auto;
  }

  .phone--left .phone__splash-btn svg,
  .phone--right .phone__splash-btn svg {
    width: 5px;
    height: 5px;
  }

  .phone--left .phone__splash-sub,
  .phone--right .phone__splash-sub {
    font-size: 0.15rem;
    margin: 1px 0;
  }

  .phone--left .phone__splash-spinner,
  .phone--right .phone__splash-spinner {
    width: 8px;
    height: 8px;
    border-width: 1px;
    margin-top: 2px;
  }
}

/* --- Extra small mobile (max 320px) --- */
@media (max-width: 320px) {
  .phone--left,
  .phone--right {
    width: 25%;
    border-radius: 14px;
    padding: 2px;
  }

  .phone--center {
    width: 35%;
    border-radius: 18px;
    padding: 3px;
  }

  .store-btn {
    padding: 7px 14px;
  }

  .store-btn__text strong {
    font-size: 0.8rem;
  }

  .store-btn__text small {
    font-size: 0.45rem;
  }

  .container {
    padding: 0 12px;
  }
}

/* --- Touch device optimizations --- */
@media (hover: none) {
  .store-btn:hover {
    transform: none;
    box-shadow: none;
  }

  .store-btn:active {
    transform: scale(0.97);
  }

  /* Ensure min 44px tap targets on touch devices */
  .store-btn {
    min-height: 44px;
  }

  .footer__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* --- Landscape phone --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero__title {
    margin-bottom: 12px;
  }

  .hero__subtitle {
    margin-bottom: 16px;
  }

  .hero__phones {
    margin-top: 24px;
  }

  .phone--center {
    height: 300px;
    width: 150px;
  }

  .phone--left,
  .phone--right {
    height: 240px;
    width: 120px;
  }
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Print styles --- */
@media print {
  .bubbles,
  .hero__phones,
  .store-btn {
    display: none;
  }

  .hero {
    min-height: auto;
    background: none;
    padding: 20px 0;
  }

  .footer {
    padding: 20px 0;
  }
}
