:root {
  --bg: #08111f;
  --surface: rgba(11, 19, 34, 0.8);
  --surface-soft: rgba(15, 25, 42, 0.88);
  --surface-strong: rgba(18, 29, 47, 0.96);
  --border: rgba(130, 151, 184, 0.16);
  --border-strong: rgba(130, 151, 184, 0.28);
  --text: #e7edf7;
  --muted: #99a8bf;
  --accent: #0f6fff;
  --accent-strong: #0b4fc4;
  --accent-soft: rgba(15, 111, 255, 0.16);
  --shadow-lg: 0 24px 80px rgba(1, 6, 17, 0.48);
  --shadow-md: 0 18px 40px rgba(1, 6, 17, 0.28);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 111, 255, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(9, 183, 164, 0.16), transparent 24%),
    linear-gradient(180deg, #0b1423 0%, var(--bg) 42%, #07101c 100%);
  color: var(--text);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  position: relative;
  overflow-x: hidden;
}

.site-container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.site-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: rgba(15, 111, 255, 0.2);
  top: 4rem;
  right: -6rem;
}

.orb-two {
  width: 280px;
  height: 280px;
  background: rgba(19, 184, 166, 0.18);
  left: -7rem;
  bottom: 10rem;
}

.site-header,
.site-main,
.site-footer-wrap {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0 0.8rem;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.96), rgba(8, 17, 31, 0.82));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(130, 151, 184, 0.08);
}

.studio-nav {
  padding: 0.95rem 1.1rem;
  border-radius: 24px;
  background: rgba(8, 16, 29, 0.72);
  border: 1px solid rgba(130, 151, 184, 0.14);
  box-shadow: 0 12px 40px rgba(1, 6, 17, 0.24);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--text);
}

.brand-mark,
.app-icon,
.feature-icon {
  display: grid;
  place-items: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f8fbff;
  background: linear-gradient(135deg, var(--accent), #13b8a6);
  box-shadow: 0 14px 32px rgba(15, 111, 255, 0.24);
}

.brand-title,
.display-title,
.section-heading h2,
.hero-side h2,
.surface-panel h2,
.surface-panel h3,
.footer-heading {
  font-family: 'Sora', sans-serif;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
}

.brand-caption,
.lead-copy,
.section-heading p,
.surface-panel p,
.hero-side p,
.footer-meta,
.site-footer p,
.screenshot-copy p,
.stat-card small,
.privacy-list,
.contact-chip span {
  color: var(--muted);
}

.brand-caption {
  font-size: 0.88rem;
}

.nav-toggle {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  background: rgba(15, 25, 42, 0.92);
}

.nav-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(15, 111, 255, 0.15);
}

.site-nav {
  gap: 0.3rem;
  margin-left: auto;
  margin-right: 1rem;
}

.site-nav .nav-link,
.page-nav-link,
.footer-links a,
.text-link,
.external-link,
.mini-product-link {
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-nav .nav-link {
  color: var(--muted);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .nav-link.active,
.site-nav .nav-link:hover {
  color: var(--text);
  background: rgba(21, 33, 53, 0.8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 25, 42, 0.86);
  color: var(--text);
}

.contact-chip:hover {
  background: rgba(21, 33, 53, 0.96);
}

.page-nav-shell {
  margin-top: 0.8rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-nav-link {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(130, 151, 184, 0.1);
  background: rgba(10, 18, 32, 0.66);
  font-weight: 600;
}

.page-nav-link:hover,
.page-nav-link.is-current {
  color: var(--text);
  border-color: var(--border);
  background: rgba(21, 33, 53, 0.88);
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.6rem 0 2rem;
}

.surface-panel,
.surface-soft {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.surface-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.surface-soft {
  background: var(--surface-soft);
  padding: 1.4rem;
}

.landing-hero,
.hero-panel,
.cta-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.hero-split,
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.landing-hero {
  display: grid;
  gap: 1rem;
}

.hero-badge,
.product-tag,
.meta-chip,
.pill-label,
.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.96rem;
  border-radius: 999px;
  background: rgba(15, 25, 42, 0.9);
  border: 1px solid rgba(130, 151, 184, 0.14);
  color: var(--accent);
  margin-bottom: 1.05rem;
}

.hero-intro {
  max-width: 760px;
  padding: 0.25rem 0.1rem 0.5rem;
}

.hero-intro-title {
  margin: 0 0 0.9rem;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.hero-intro-copy {
  max-width: 66ch;
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.display-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  max-width: 11ch;
}

.lead-copy {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.hero-actions,
.product-actions,
.meta-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-modern,
.btn-modern-secondary {
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
}

.btn-modern {
  background: linear-gradient(135deg, var(--accent), #13b8a6);
  border-color: transparent;
}

.btn-modern:hover,
.btn-modern:focus {
  background: linear-gradient(135deg, var(--accent-strong), #0f998a);
  border-color: transparent;
}

.btn-modern-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(15, 25, 42, 0.86);
}

.btn-modern-secondary:hover,
.btn-modern-secondary:focus {
  color: var(--text);
  background: rgba(21, 33, 53, 0.96);
  border-color: var(--accent-soft);
}

.studio-summary,
.hero-side {
  height: 100%;
}

.app-hero-stack {
  display: grid;
  gap: 1rem;
}

.app-hero-intro {
  max-width: 860px;
}

.app-display-title {
  max-width: 13ch;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
}

.app-summary-panel {
  padding: 1.5rem;
}

.app-summary-panel h2 {
  max-width: 18ch;
}

.hero-image-panel {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  min-height: 320px;
  background:
    radial-gradient(circle at top left, rgba(15, 111, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 31, 50, 0.96), rgba(11, 19, 34, 0.92));
}

.hero-image-panel::after {
  content: '';
  position: absolute;
  inset: auto 1.2rem 1.2rem auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(19, 184, 166, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid rgba(130, 151, 184, 0.12);
  box-shadow: 0 24px 50px rgba(1, 6, 17, 0.28);
}

.hero-banner-panel {
  min-height: 0;
  padding: 0.85rem;
}

.hero-banner-image {
  min-height: 0;
  aspect-ratio: 16 / 6.4;
  object-position: center;
}

.hero-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-product-link {
  min-height: 100%;
}

.hero-caption-panel {
  padding: 0.15rem 0.1rem 0;
}

.hero-caption-text {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.studio-summary h2,
.hero-side h2 {
  font-size: 1.55rem;
  margin: 0.5rem 0 0.7rem;
}

.mini-product-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.mini-product-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--text);
  background: rgba(21, 33, 53, 0.6);
  border: 1px solid rgba(130, 151, 184, 0.1);
}

.mini-product-link:hover {
  background: rgba(21, 33, 53, 0.88);
  border-color: var(--border);
}

.hero-product-link {
  padding: 0.95rem 1rem;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.05rem;
}

.mini-product-link strong,
.contact-chip,
.text-link,
.external-link,
.footer-links a {
  color: var(--text);
}

.mini-product-link small {
  color: var(--muted);
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-heading {
  padding: 0.25rem 0.1rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin: 0.4rem 0 0.75rem;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 64ch;
  margin: 0;
  line-height: 1.8;
}

.feature-card,
.highlight-card,
.product-card,
.process-card,
.privacy-card,
.story-card,
.screenshot-card,
.external-links-panel,
.site-footer {
  padding: 1.5rem;
}

.feature-card,
.highlight-card,
.product-card,
.process-card,
.privacy-card,
.story-card,
.screenshot-card,
.screenshot-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-card h3,
.highlight-card h3,
.product-card h3,
.process-card h3,
.privacy-card h3,
.story-card h3,
.screenshot-copy h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
}

.small-icon {
  width: 48px;
  height: 48px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 25, 42, 0.84);
  border: 1px solid rgba(130, 151, 184, 0.14);
}

.stat-card strong {
  display: block;
  font-size: 1rem;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: auto -18% -30% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  pointer-events: none;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.product-tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 25, 42, 0.88);
  border: 1px solid rgba(130, 151, 184, 0.14);
  color: var(--accent);
}

.text-link:hover,
.external-link:hover,
.footer-links a:hover,
.mini-product-link:hover small,
.link-chip:hover {
  color: var(--accent);
}

.product-actions {
  margin-top: auto;
}

.process-step {
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 1.2rem;
  margin: 0;
  line-height: 1.75;
}

.external-links-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.external-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 25, 42, 0.88);
  border: 1px solid rgba(130, 151, 184, 0.14);
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.screenshot-card {
  gap: 1rem;
}

.screenshot-frame {
  position: relative;
  border-radius: 24px;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(21, 33, 53, 0.98), rgba(11, 19, 34, 0.92));
  border: 1px solid rgba(130, 151, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  aspect-ratio: 1125 / 2436;
  object-fit: cover;
  background: #0b1423;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.35rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

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

.faq-item p {
  margin: 1rem 0 0;
  max-width: 72ch;
  line-height: 1.8;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.site-footer-wrap {
  padding-bottom: 2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.footer-heading {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.footer-links {
  gap: 0.55rem 1rem;
}

.footer-links-column {
  flex-direction: column;
  align-items: flex-start;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(130, 151, 184, 0.08);
}

.toast {
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.theme-babytalk {
  --accent: #f97360;
  --accent-strong: #e65842;
  --accent-soft: rgba(249, 115, 96, 0.14);
}

.theme-gametime {
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.14);
}

.theme-tunescroll {
  --accent: #0f9d8a;
  --accent-strong: #0b7c6d;
  --accent-soft: rgba(15, 157, 138, 0.14);
}

@media (max-width: 991.98px) {
  .site-header {
    padding-top: 0.8rem;
  }

  .studio-nav {
    padding: 0.85rem 1rem;
  }

  .site-nav {
    margin: 1rem 0 0.85rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions > * {
    width: 100%;
    justify-content: center;
  }

  .hero-split,
  .cta-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-link-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-panel,
  .hero-image {
    min-height: 280px;
  }

  .hero-intro {
    max-width: none;
  }

  .compact-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .site-container {
    width: min(100% - 1rem, 1180px);
  }

  .site-main {
    padding: 1.2rem 0 1.5rem;
  }

  .display-title,
  .hero-intro-title {
    max-width: none;
    font-size: clamp(1.95rem, 10vw, 3.1rem);
  }

  .surface-panel,
  .surface-soft {
    border-radius: 24px;
  }

  .feature-card,
  .highlight-card,
  .product-card,
  .process-card,
  .privacy-card,
  .story-card,
  .faq-item,
  .screenshot-card,
  .external-links-panel,
  .site-footer,
  .landing-hero,
  .hero-panel,
  .cta-panel {
    padding: 1.25rem;
  }

  .stat-grid,
  .compact-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-image-panel {
    padding: 0.7rem;
  }

  .hero-image {
    min-height: 220px;
  }

  .hero-banner-image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 575.98px) {
  .page-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .hero-actions > .btn,
  .hero-actions > button,
  .product-actions > .btn,
  .cta-panel .btn,
  .cta-panel button {
    width: 100%;
  }

  .stat-grid,
  .compact-stats {
    grid-template-columns: 1fr;
  }
}