/* VoiceStock base styles — light "Apple" theme, aligned with the home page.
   Self-contained: the subpage no longer depends on the home stylesheet. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #111827;
  --muted: #5d6678;
  --accent: #2fbf71;   /* green  */
  --accent-2: #0071e3; /* blue (primary) */
  --accent-3: #ff8a00; /* orange */
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 30px 90px rgba(30, 41, 59, 0.14);
  --card-shadow: 0 18px 54px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 113, 227, 0.16), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(255, 138, 0, 0.13), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

#dot-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.6;
  z-index: -2;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
}

.glow-a {
  top: -140px;
  left: -120px;
  background: rgba(0, 113, 227, 0.22);
}

.glow-b {
  bottom: -180px;
  right: -100px;
  background: rgba(255, 138, 0, 0.18);
}

/* ── Floating glass header (matches home) ── */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.8);
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: #fff;
  color: var(--text);
}

.nav-cta {
  color: #fff !important;
  background: var(--accent-2);
}

.nav-cta:hover {
  background: #0063c6 !important;
  color: #fff !important;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.22);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

/* ── Language switch ── */
.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--text);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  padding: 40px 6vw 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer h4 {
  color: var(--text);
  margin-bottom: 6px;
}

.site-footer p {
  font-size: 13px;
}

.icp {
  justify-self: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.copyright {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

/* ── Responsive ── */
@media (max-width: 920px) {
  /* On small screens the header returns to normal flow (no fixed pill),
     so the wrapped nav never overlaps the hero. */
  .site-header {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-radius: 0;
    border-width: 0 0 1px;
    padding: 14px 4vw;
    box-shadow: none;
  }

  .brand {
    margin-right: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .icp,
  .copyright {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .brand-tag {
    display: none;
  }

  .site-nav a {
    font-size: 12px;
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  #dot-canvas {
    display: none;
  }
}
