/* BgCam website: the app's black-to-indigo with gold accents. */
:root {
  --indigo: #3533cc;
  --navy: #1a1966;
  --gold: #e6b84a;
  --ink: #1d1d2b;
  --muted: #5d5d73;
  --line: #e6e6f0;
  --bg: #f6f6fb;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--indigo); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 30, 0.92); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #d8d8ff; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 8px 16px; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 800; text-decoration: none; border-radius: 12px;
  padding: 14px 22px; font-size: 16px; border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.5); }
.btn.ghost[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* Hero */
.hero {
  color: #fff;
  background: linear-gradient(120deg, #000 0%, #14134a 45%, var(--indigo) 100%);
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 12px 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: #d8d8ff; margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13px; color: #b9b9e6; margin-top: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Phone frame */
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 10px;
  background: linear-gradient(135deg, #8e8e93, #3a3a3c 30%, #9a9aa0 50%, #3a3a3c 70%, #8e8e93);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.phone > .screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #000; border: 6px solid #000; }
.phone > .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .island { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 12px; background: #000; z-index: 2; }
.hero-art { position: relative; height: 520px; }
/* The store images already include a phone frame, so they are shown as they are. */
.hero-art .shot { position: absolute; width: 58%; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.hero-art .s1 { left: 0; top: 50px; transform: rotate(-6deg); }
.hero-art .s2 { right: 0; top: 0; z-index: 2; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img { width: 100%; border-radius: 18px; display: block; box-shadow: 0 12px 30px rgba(20, 20, 60, 0.18); }
.bubble-demo {
  position: absolute; right: 14px; top: 70px; width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #fff; background: radial-gradient(circle at 50% 38%, #f2c9a5 0 22%, transparent 23%),
    radial-gradient(ellipse at 50% 92%, #2a2a2a 0 42%, transparent 43%), linear-gradient(160deg, #3d6fd6, #1a1966);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); z-index: 3;
}

/* Sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; letter-spacing: -0.01em; }
section .sub { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #ecebff; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.strip figure img { width: 150px; height: 266px; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 8px 20px rgba(20, 20, 60, 0.15); }
.strip figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.shots { display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 24px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; text-align: center; }
.shots .phone { width: 230px; }
.shots figcaption { margin-top: 14px; font-weight: 700; }

.dark { background: linear-gradient(180deg, var(--navy), #08081f); color: #fff; }
.dark .sub { color: #c9c9ee; }
.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.dark .card p { color: #c9c9ee; }
.dark .card .ic { background: rgba(230, 184, 74, 0.18); }

.download { text-align: center; }
.download .box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 24px; max-width: 720px; margin: 0 auto; }
.download code { font-size: 12px; word-break: break-all; background: #f1f1f8; padding: 8px 10px; border-radius: 8px; display: block; margin: 8px 0 0; }
.steps { text-align: left; margin: 22px auto 0; max-width: 560px; color: var(--muted); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: 36px; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc p, .doc li { color: #33334a; }
.doc .summary { background: #ecebff; border-radius: 14px; padding: 18px 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Footer */
footer { background: #08081f; color: #b9b9e6; padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-right: 18px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 400px; max-width: 420px; margin: 0 auto; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { display: none; }
}
