:root {
  color-scheme: dark;
  --bg: #0b0d0d;
  --bg-soft: #121515;
  --surface: #1b1e1e;
  --raised: #252929;
  --text: #f7f5ef;
  --muted: #a9aba6;
  --ink: #101212;
  --pink: #ff42cf;
  --yellow: #ffe11a;
  --green: #7dff7a;
  --rose: #ff7aa8;
  --violet: #a755ff;
  --hairline: #343939;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(255, 66, 207, 0.22), transparent 55%),
    radial-gradient(900px 500px at 92% 8%, rgba(255, 225, 26, 0.12), transparent 50%),
    radial-gradient(800px 480px at 70% 100%, rgba(167, 85, 255, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--yellow);
}

a:hover {
  color: var(--green);
}

.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.header-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
}

.site-nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px var(--pink);
}

.lang-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button.active {
  background: var(--yellow);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px);
  min-height: calc(100dvh - 67px);
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 1023px) {
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-lead {
    max-width: min(48ch, 100%);
    margin-inline: auto;
  }

  .hero .store-links {
    justify-content: center;
    direction: ltr;
  }

  .hero-art {
    padding-bottom: 32px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero-lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  margin: 0 0 28px;
  max-width: min(48ch, 100%);
}

.hero-art {
  display: grid;
  place-items: center;
}

.phone-frame {
  margin: 0;
  width: min(280px, 72%);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid var(--hairline);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 66, 207, 0.25),
    0 28px 55px rgba(0, 0, 0, 0.55);
}

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

/* Store badges — matching PNG assets (same aspect ratio as other Bylishi apps) */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  direction: ltr;
}

.store-badge {
  display: block;
  line-height: 0;
  transition: opacity 0.15s ease, translate 0.15s ease;
}

.store-badge:hover {
  opacity: 0.88;
  translate: 0 -2px;
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* Sections */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-alt {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-block: 1px solid var(--hairline);
}

.section h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  margin: 0 0 12px;
  text-align: center;
  font-weight: 900;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 46px;
  max-width: 58ch;
  font-size: 17px;
}

/* Features */
.features {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.feature {
  background: var(--surface);
  border: 2px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}

.feature:nth-child(2) .feature-icon { background: var(--pink); }
.feature:nth-child(3) .feature-icon { background: var(--green); }
.feature:nth-child(4) .feature-icon { background: var(--violet); color: var(--text); }
.feature:nth-child(5) .feature-icon { background: var(--rose); }
.feature:nth-child(6) .feature-icon { background: var(--yellow); }

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Screenshots */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(210px, 28vw, 280px);
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 2px solid var(--hairline);
  box-shadow: var(--shadow);
}

/* Model / availability */
.model-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.model-card {
  background: var(--raised);
  border: 2px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
}

.model-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--yellow);
}

.model-card p {
  margin: 0;
  color: var(--muted);
}

/* CTA */
.cta-card {
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 66, 207, 0.22), rgba(255, 225, 26, 0.08));
  border: 2px solid var(--pink);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px) 24px;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin-bottom: 10px;
}

.cta-card .section-sub {
  margin-bottom: 28px;
}

.cta-card .store-links {
  justify-content: center;
}

/* Try also — other ByLiShi apps (even rows; no orphan card) */
.also-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 640px) {
  .also-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.also-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  min-height: 168px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  background: var(--card, var(--surface, rgba(255,255,255,0.72)));
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft, 0 8px 22px rgba(0,0,0,0.06));
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.also-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, var(--accent-strong, #735cff));
  color: inherit;
}
.also-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #fff;
}
.also-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.also-card h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text, inherit);
}
.also-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #6b6570);
  line-height: 1.4;
}
.also-local {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong, var(--accent, #735cff));
}
.also-studio {
  text-align: center;
  margin-top: 28px;
}
.also-studio a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: var(--accent, var(--accent-strong, #333));
  border: 2px solid var(--accent-strong, var(--accent, #222));
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-soft, 0 8px 22px rgba(0,0,0,0.08));
}
.also-studio a:hover {
  filter: brightness(0.95);
  color: #fff;
}
/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

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

#landing[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature, .store-badge { transition: none; }
  .feature:hover, .store-badge:hover { transform: none; translate: none; }
}
