/* Hidden Gem Studio — site styles (landing + legal pages).
   Self-contained: system fonts only, no external scripts or trackers. */

:root {
  --accent: #7C3AED;             /* violet */
  --accent-strong: #6D28D9;
  --accent-2: #A855F7;
  --accent-soft: #F1EBFF;        /* lavender wash */
  --accent-softer: #F8F5FF;
  --bg: #FCFBFF;
  --surface: #FFFFFF;
  --surface-muted: #F6F3FD;
  --header-bg: rgba(252, 251, 255, 0.8);
  --text: #16132A;
  --text-secondary: #57536E;
  --text-tertiary: #8C88A3;
  --hairline: #ECE8F6;
  --shadow: 0 18px 48px rgba(76, 45, 160, 0.10);
  --shadow-sm: 0 6px 18px rgba(76, 45, 160, 0.08);
  --max-width: 820px;
  --wide: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #A78BFA;
    --accent-strong: #8B5CF6;
    --accent-2: #C084FC;
    --accent-soft: #241B3D;
    --accent-softer: #17122A;
    --bg: #0D0A18;
    --surface: #161226;
    --surface-muted: #1B1630;
    --header-bg: rgba(13, 10, 24, 0.8);
    --text: #F4F2FB;
    --text-secondary: #B4AFC9;
    --text-tertiary: #8A85A1;
    --hairline: #2A2440;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
}
.site-header.legal { border-bottom-color: var(--hairline); }
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.site-nav a { color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  overflow-wrap: anywhere;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.30);
}
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Shared section bits ---------- */
.container { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.section-lead { font-size: 18px; color: var(--text-secondary); margin: 0; }

/* ---------- Landing: header width ---------- */
.landing .site-header__inner { max-width: var(--wide); }
.landing .site-nav { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 20%, var(--accent-soft), transparent 65%),
    linear-gradient(180deg, var(--accent-softer), var(--bg));
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-height: 600px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero h1 {
  font-size: 66px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
}
.hero h1 .swash { position: relative; display: inline-block; }
.hero h1 .swash svg {
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  width: 100%; height: 18px;
}
.hero-sub { font-size: 19px; color: var(--text-secondary); max-width: 460px; margin: 0 0 34px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 560px; }
.hero-blob {
  position: absolute;
  inset: 4% -12% 0 2%;
  border-radius: 58% 42% 46% 54% / 48% 40% 60% 52%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%),
    linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, transparent));
}
.phone {
  position: absolute;
  width: 250px;
  aspect-ratio: 1320 / 2868;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(150deg, #3b3550, #121019 45%, #2a2538);
  box-shadow:
    0 40px 70px rgba(60, 30, 130, 0.30),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone-back { right: 4%; top: 64px; transform: rotate(14deg); }
.phone-front { left: 14%; top: 8px; transform: rotate(10deg); z-index: 2; }
.hero-spark {
  position: absolute;
  width: 54px; height: 54px;
  left: 6%; bottom: 70px;
  z-index: 3;
  filter: drop-shadow(0 10px 18px rgba(109, 40, 217, 0.35));
}

/* ---------- Apps ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.app-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 28px 28px 150px;
  box-shadow: var(--shadow);
}
.app-card.featured { grid-column: span 2; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-icon { width: 60px; height: 60px; border-radius: 15px; display: block; box-shadow: var(--shadow-sm); flex: none; }
.app-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.app-sub { color: var(--text-secondary); margin: 2px 0 0; font-size: 15px; }
.pill {
  margin-left: auto;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.app-desc { color: var(--text-secondary); margin: 0 0 18px; max-width: 560px; }
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  font-size: 15px;
}
.features li { position: relative; padding-left: 26px; }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft);
}
.features li::after {
  content: "";
  position: absolute; left: 5px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.store-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding: 5px 16px;
  border-radius: 10px;
  background: #0B0B0F;
  color: #fff;
  line-height: 1.15;
  border: 1px solid #2c2c33;
}
.store-badge small { font-size: 10px; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.app-legal { font-size: 14px; color: var(--text-tertiary); }
.app-legal a { color: var(--text-secondary); }
.card-scene {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 140px;
  pointer-events: none;
}
.card-shot {
  position: absolute;
  right: 36px; bottom: -40px;
  width: 170px;
  aspect-ratio: 1320 / 2868;
  padding: 7px;
  border-radius: 32px;
  background: linear-gradient(150deg, #3b3550, #121019 45%, #2a2538);
  box-shadow: 0 24px 50px rgba(60, 30, 130, 0.28);
  transform: rotate(8deg);
}
.card-shot img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
@media (prefers-color-scheme: dark) { .card-scene { opacity: 0.35; } }
.app-card.featured .app-body { max-width: calc(100% - 210px); }

.app-card.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px 150px;
  border-style: dashed;
  border-width: 1.5px;
  background: linear-gradient(180deg, var(--surface), var(--accent-softer));
}
.soon-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.soon-icon svg { width: 28px; height: 28px; }
.app-card.soon h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.app-card.soon p { margin: 0 0 18px; color: var(--text-secondary); font-size: 15px; }

/* ---------- About ---------- */
.about .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.about-art { position: relative; aspect-ratio: 1 / 0.86; }
.about-blob {
  position: absolute; inset: 0;
  border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%;
  background:
    radial-gradient(circle at 70% 25%, color-mix(in srgb, #ffffff 70%, transparent), transparent 40%),
    linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 30%, var(--accent-soft)));
  box-shadow: var(--shadow);
}
.about-gem {
  position: absolute;
  width: 46%;
  left: 27%; top: 18%;
  filter: drop-shadow(0 30px 40px rgba(109, 40, 217, 0.35));
  animation: float 6s ease-in-out infinite;
}
.about-tile {
  position: absolute;
  width: 22%;
  right: 12%; bottom: 14%;
  border-radius: 24%;
  box-shadow: 0 18px 36px rgba(20, 40, 120, 0.30);
  transform: rotate(-8deg);
}
.about-dot { position: absolute; border-radius: 50%; background: var(--surface); opacity: .8; }
.about-dot.d1 { width: 16px; height: 16px; left: 16%; top: 22%; }
.about-dot.d2 { width: 10px; height: 10px; left: 22%; bottom: 22%; }
.about-dot.d3 { width: 22px; height: 22px; right: 18%; top: 14%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .about-gem { animation: none; } }

.about p.lead { color: var(--text-secondary); font-size: 18px; margin: 0 0 36px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.value h3 { margin: 0 0 4px; font-size: 17px; }
.value p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

/* ---------- Contact band ---------- */
.contact-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--accent-softer), var(--accent-soft));
  text-align: center;
}
.contact-band .waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; }
.contact-band .container { position: relative; padding-top: 80px; padding-bottom: 88px; }
.contact-band p { color: var(--text-secondary); font-size: 18px; max-width: 460px; margin: 0 auto 28px; }
.contact-email { display: block; margin-top: 16px; font-size: 15px; color: var(--text-secondary); }

/* ---------- Footers ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--hairline); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-tag { margin: 10px 0 0 44px; color: var(--text-tertiary); font-size: 14px; }
.footer h4 { margin: 0 0 12px; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a { color: var(--text-secondary); font-size: 14px; }
.footer li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Simple footer (legal pages) */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 56px; background: var(--surface-muted); }
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-secondary);
}
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal-main { max-width: var(--max-width); margin: 0 auto; padding: 56px 24px 24px; }
.legal-main h1 { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.updated { color: var(--text-tertiary); font-size: 15px; margin: 0 0 32px; }
.intro { font-size: 18px; color: var(--text-secondary); margin: 0 0 8px; }
.legal-main h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; margin: 44px 0 12px; scroll-margin-top: 80px; }
.legal-main h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { margin: 0 0 14px; padding-left: 22px; }
.legal-main li { margin: 0 0 9px; }
.legal-main strong { font-weight: 700; color: var(--text); }
.callout {
  background: var(--accent-softer);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 20px;
}
.callout ul { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 48px; }
  .hero h1 { font-size: 54px; }
  .hero-visual { height: 480px; max-width: 520px; width: 100%; margin: 0 auto; }
  .apps-grid { grid-template-columns: minmax(0, 1fr); }
  .app-card.featured { grid-column: auto; }
  .about .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner { padding: 12px 16px; flex-wrap: wrap; gap: 8px 16px; }
  .landing .site-nav { order: 3; width: 100%; margin: 0; justify-content: flex-start; gap: 22px; }
  .site-nav { gap: 18px; font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 17px; }
  .hero-visual { height: 400px; }
  .phone { width: 170px; padding: 6px; border-radius: 30px; }
  .phone img { border-radius: 25px; }
  .phone-front { left: 8%; }
  .phone-back { right: 2%; top: 50px; }
  .app-card { padding: 22px 20px 130px; }
  .app-card.featured .app-body { max-width: none; }
  .card-shot { display: none; }
  .app-card { padding-bottom: 110px; }
  .app-card.soon { padding: 32px 20px 96px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-main { padding: 36px 16px 16px; }
  .legal-main h1 { font-size: 30px; }
  .legal-main h2 { font-size: 20px; }
  .site-footer__inner { padding: 24px 16px; }
}
