/* ============================================================
   DoubleCamVlog — Aurora Glass design system (adapted from v2live)
   Dark base + drifting aurora blobs + frosted glass surfaces.
   ============================================================ */

:root {
  --bg: #07080f;
  --text: #f2f3f8;
  --body: #c3c9d6;
  --muted: #8b93a7;
  --violet: #7c5cff;
  --pink: #ff5ca8;
  --cyan: #38d6ff;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(124, 92, 255, 0.5);
  --accent: #b3a3ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --maxw: 44rem;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --icon-radius: 24%;
  --grad: linear-gradient(95deg, #a78bff, #ff7ac2, #6fd8ff);
  --grad-btn: linear-gradient(95deg, var(--violet), var(--pink));
}

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

html {
  font-size: 106%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* --- Aurora background (fixed, animated, no extra DOM) --- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

body::before {
  width: 48vw;
  height: 48vw;
  min-width: 26rem;
  min-height: 26rem;
  background: #5b3df5;
  top: -16%;
  left: -10%;
  animation: aurora-a 18s ease-in-out infinite alternate;
}

body::after {
  width: 40vw;
  height: 40vw;
  min-width: 22rem;
  min-height: 22rem;
  background: #d43ad0;
  top: 6%;
  right: -14%;
  animation: aurora-b 22s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 4vh, 0) scale(1.14); }
}

@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to { transform: translate3d(-4vw, 6vh, 0) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(124, 92, 255, 0.45);
  color: #fff;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--icon-radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 26px rgba(124, 92, 255, 0.5);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-title h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-title .tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover .brand-name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title {
  margin-top: 0.85rem;
}

/* --- Locale dropdown --- */
.locale-switch {
  position: relative;
  flex-shrink: 0;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.locale-trigger:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
}

.locale-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.2s;
}

.locale-switch.is-open .locale-caret {
  transform: rotate(180deg);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 40;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 11.5rem;
  max-height: min(70vh, 22rem);
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 17, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

/* Keep scrollbar always visible (incl. macOS overlay scrollbars). */
.locale-menu::-webkit-scrollbar {
  width: 10px;
}

.locale-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.locale-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.locale-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
  background-clip: padding-box;
}

.locale-menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
}

.locale-menu a:hover {
  background: var(--glass-strong);
}

.locale-menu a[aria-current="page"],
.locale-menu a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* --- Nav pills --- */
nav.site-nav {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  font-size: 0.88rem;
}

nav.site-nav a {
  color: var(--muted);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

nav.site-nav a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--accent-soft);
}

nav.site-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 650;
  border-color: transparent;
  background: var(--grad-btn);
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.35);
}

@media (max-width: 480px) {
  .header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .locale-switch {
    align-self: flex-end;
  }
}

/* --- Main content --- */
main {
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

main h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

main h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--grad);
}

main h2:first-child {
  margin-top: 0;
}

main p,
main li {
  color: var(--body);
  margin: 0.65rem 0;
}

main ul {
  padding-left: 1.25rem;
}

main strong {
  color: var(--text);
  font-weight: 650;
}

main .note {
  font-size: 0.92rem;
  color: var(--body);
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(255, 92, 168, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

/* Glass card hero (product lead / contact) */
.hero {
  background:
    radial-gradient(ellipse 120% 160% at 0% 0%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 120% 160% at 100% 100%, rgba(255, 92, 168, 0.12), transparent 55%),
    var(--glass);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin: 0 0 0.5rem;
}

.hero p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
}

/* App Store CTA */
.cta-store {
  display: inline-flex;
  align-items: center;
  margin-top: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.4);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-store:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(124, 92, 255, 0.55);
}

.cta-store span {
  transition: transform 0.2s;
}

.cta-store:hover span {
  transform: translate(2px, -2px);
}

/* Secondary link under the product hero CTA (browser tool). */
.try-link {
  display: block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.try-link:hover {
  color: var(--text);
}

/* Numbered glass step cards */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0 0 0.75rem;
  padding: 1rem 1.1rem 1rem 3rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, transform 0.25s;
}

.steps li:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}

/* Feature / topic cards */
.feature-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  margin: 0;
  padding: 1.05rem 1.15rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-grid li:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-grid strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* Link tiles (product page "Links") */
.link-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.link-grid li {
  margin: 0;
}

.link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.link-grid a::after {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.25s;
}

.link-grid a:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.link-grid a:hover::after {
  transform: translateX(3px);
}

/* --- Landing layout (product page) --- */
main.main-landing {
  max-width: 56rem;
}

.hero-landing {
  text-align: center;
  padding: 3.4rem 1rem 2.4rem;
}

.hero-landing .hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 24px 70px rgba(124, 92, 255, 0.55);
}

.hero-landing h1 {
  margin: 1.8rem auto 0.9rem;
  max-width: 30rem;
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.12;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-landing p {
  max-width: 36rem;
  margin: 0 auto 1.9rem;
  font-size: 1.05rem;
  color: var(--body);
}

/* Feature cards under the steps */
.feature-cards {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.6rem;
}

.feature-cards li {
  margin: 0;
  padding: 1.5rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-cards li:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-cards .fico {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.7rem;
  line-height: 1;
}

.feature-cards .fico svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.feature-cards strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.feature-cards p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--body);
}

/* Centered contact card (support page) */
.hero-contact {
  text-align: center;
  padding: 2.2rem 1.4rem;
}

.hero-contact a[href^="mailto"] {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hero-contact a[href^="mailto"]:hover {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
}

@media (min-width: 700px) {
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
  }

  .steps-grid li {
    margin: 0;
  }

  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 20, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.35rem 1.25rem;
}

.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* --- Language hub (root index) --- */
.hub {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.hub-card {
  max-width: 28rem;
  width: 100%;
  padding: 2.4rem 1.8rem;
  background:
    radial-gradient(ellipse 130% 140% at 15% 0%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(ellipse 130% 140% at 90% 100%, rgba(255, 92, 168, 0.14), transparent 60%),
    var(--glass);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hub .brand-mark {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.2rem;
  border-radius: 26%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 16px 48px rgba(124, 92, 255, 0.55);
}

.hub .brand-mark img {
  width: 100%;
  height: 100%;
}

.hub h1 {
  font-size: 2rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
  font-weight: 750;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hub-bilingual {
  line-height: 1.55;
}

.hub-sep {
  display: inline-block;
  margin: 0 0.35rem;
  opacity: 0.45;
}

.hub-hint {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hub-hint a {
  font-weight: 600;
}

.hub .choices-label {
  display: block;
  margin: 1.25rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.locale-switch--hub {
  display: inline-block;
  margin: 0.5rem auto 0;
}

.locale-switch--hub .locale-trigger {
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
}

.hub .locale-switch--hub .locale-menu {
  inset-inline-start: 50%;
  inset-inline-end: auto;
  transform: translateX(-50%);
  text-align: start;
}

/* --- Screenshot placeholders (replaced by App Store Connect artwork) --- */
.shots {
  margin: 2.2rem 0 0.6rem;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.1rem 0 0.7rem;
}

.shot-ph {
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  border: 1.5px dashed var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0 0.6rem;
}

.shot-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

/* --- Bottom CTA --- */
.bottom-cta {
  text-align: center;
  padding: 2.6rem 1rem 2.2rem;
}

.bottom-cta h2 {
  margin: 0 auto 1.4rem;
}
