/* ────────────────────────────────────────────────────────────────
   Camly — getcamly.com landing page
   Dark, minimal, premium. No external fonts or scripts.
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0a0e;
  --surface:   #14141a;
  --surface-2: #1c1c24;
  --border:    #2a2a34;
  --text:      #f5f5f7;
  --text-dim:  #9090a0;
  --brand:     #5b6cff;
  --brand-2:   #b084ff;
  --grad:      linear-gradient(135deg, #5b6cff 0%, #b084ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,108,255,.18), rgba(176,132,255,.12));
  --shadow:    0 30px 80px -20px rgba(91,108,255,.35);
}

/* base reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55
    -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Noto Sans CJK JP", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; }
p  { margin: 0; color: var(--text-dim); }

/* ─── header ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 36px;
  background: rgba(10,10,14,.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  color: white; font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 14px rgba(91,108,255,.5);
}
.brand-mark.small { width: 22px; height: 22px; font-size: .8rem; border-radius: 6px; }
.brand-name { font-size: 1.05rem; }
.site-header nav { display: flex; gap: 26px; align-items: center; }
.site-header nav a { color: var(--text-dim); font-size: .92rem; transition: color .15s; }
.site-header nav a:hover { color: var(--text); }
.cta-mini {
  background: var(--grad);
  color: white !important;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 600;
}

/* language selector — tucked in next to the nav links */
.lang-switch {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 26px 6px 12px;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.lang-switch:hover { border-color: var(--brand); }

/* ─── hero ─── */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px;
  max-width: 1180px; margin: 0 auto;
  padding: 100px 36px 80px;
  align-items: center;
}
.hero-text .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 22px 0 32px; max-width: 540px;
  font-size: 1.15rem; line-height: 1.6;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row.centered { justify-content: center; }
.cta {
  display: inline-flex; flex-direction: column;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 600; text-align: left;
  transition: transform .12s ease, box-shadow .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta-line1 { font-size: 1rem; }
.cta-line2 { font-size: .8rem; opacity: .75; font-weight: 500; margin-top: 2px; }
.cta-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 12px 30px -8px rgba(91,108,255,.6);
}
.cta-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-bullets {
  margin: 32px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-bullets li {
  font-size: .92rem; color: var(--text-dim);
  padding-left: 22px; position: relative;
}
.hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 2px; background: var(--brand);
  border-radius: 2px;
}

/* hero art — schematic phone + PC window in pure CSS */
.hero-art {
  position: relative;
  height: 480px;
  display: grid; place-items: center;
}
.hero-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(closest-side, rgba(91,108,255,.32), transparent 70%);
  filter: blur(30px); z-index: -1;
}
.phone {
  position: absolute; top: 20px; left: 30px;
  width: 180px; height: 380px;
  background: #1a1a22; border-radius: 32px;
  border: 1px solid var(--border);
  padding: 14px; box-shadow: var(--shadow);
  transform: rotate(-6deg);
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%; border-radius: 22px;
  background: linear-gradient(135deg, #2d3450, #5b4f8a 60%, #aa6f9e);
  overflow: hidden;
}
.phone-cam-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.08), transparent 40%);
}
.phone-status {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  color: white; font-size: .65rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
}
.phone-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34c759; box-shadow: 0 0 8px #34c759;
}
.phone-zoom {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  color: white; font-size: .7rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
}
.phone-record {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: white;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.35),
    0 0 0 6px rgba(255,255,255,.12);
}
.phone-record::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: #ff3b30;
}

.pc {
  position: absolute; top: 80px; right: 0;
  width: 360px; border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  overflow: hidden;
  transform: rotate(3deg);
  z-index: 1;
}
.pc-bar {
  display: flex; gap: 6px;
  padding: 10px 12px;
  background: #0d0d12;
  border-bottom: 1px solid var(--border);
}
.pc-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.pc-bar span:nth-child(1) { background: #ff605c; }
.pc-bar span:nth-child(2) { background: #ffbd44; }
.pc-bar span:nth-child(3) { background: #00ca4e; }
.pc-body { padding: 14px; }
.pc-preview {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px;
  background: linear-gradient(135deg, #2d3450, #5b4f8a 60%, #aa6f9e);
  border: 1px solid var(--border);
}
.pc-stats {
  margin-top: 10px;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: .72rem; color: var(--text-dim);
}

/* ─── features ─── */
.features {
  max-width: 1180px; margin: 0 auto;
  padding: 100px 36px 60px;
}
.features h2 { text-align: center; max-width: 22ch; margin: 0 auto 56px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform .15s ease, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.card-icon {
  font-size: 1.8rem; margin-bottom: 14px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border-radius: 12px;
}
.card h3 { margin-bottom: 8px; }

/* ─── compatibility strip ─── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 36px;
  text-align: center;
  background:
    radial-gradient(closest-side, rgba(91,108,255,.06), transparent 70%);
}
.strip-label {
  font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 20px;
}
.strip-logos {
  display: flex; flex-wrap: wrap;
  gap: 14px 36px; justify-content: center;
}
.strip-logos span {
  font-weight: 600; color: var(--text);
  opacity: .85;
}

/* ─── how it works ─── */
.how {
  max-width: 1180px; margin: 0 auto;
  padding: 100px 36px;
}
.how h2 { text-align: center; margin-bottom: 56px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  font-weight: 700; color: white;
  margin-bottom: 16px;
}

/* ─── privacy callout ─── */
.privacy-cta {
  max-width: 1180px; margin: 0 auto;
  padding: 80px 36px;
}
.privacy-cta > div {
  background: var(--grad-soft);
  border: 1px solid rgba(91,108,255,.3);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
}
.privacy-cta p { max-width: 50ch; margin: 16px auto 22px; }
.link-arrow {
  color: var(--brand);
  font-weight: 600;
}
.link-arrow:hover { color: var(--brand-2); }

/* ─── FAQ ─── */
.faq {
  max-width: 760px; margin: 0 auto;
  padding: 80px 36px;
}
.faq h2 { text-align: center; margin-bottom: 40px; }
details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; font-size: 1.4rem; color: var(--text-dim);
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; }

/* ─── final CTA ─── */
.final-cta {
  max-width: 1180px; margin: 0 auto;
  padding: 100px 36px;
  text-align: center;
}
.final-cta h2 { margin-bottom: 32px; }

/* ─── footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 36px 60px;
  background: var(--surface);
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: 0 auto 18px;
  flex-wrap: wrap; gap: 18px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--text-dim); font-size: .9rem; }
.site-footer nav a:hover { color: var(--text); }
.copy {
  max-width: 1180px; margin: 0 auto;
  font-size: .75rem; color: var(--text-dim);
}

/* ─── responsive ─── */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 70px; }
  .hero-art { height: 420px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a:not(.cta-mini) { display: none; }
}
@media (max-width: 560px) {
  .hero-art .pc { width: 280px; right: -20px; }
  .hero-art .phone { left: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-cta > div { padding: 36px 24px; }
  h1 { font-size: 2.2rem; }
}

/* ─── markdown-style legal pages ─── */
.legal {
  max-width: 720px; margin: 0 auto;
  padding: 80px 36px;
}
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal h2 {
  font-size: 1.2rem; margin: 36px 0 12px;
  letter-spacing: 0;
}
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal time {
  display: block; color: var(--text-dim); margin-bottom: 32px;
}
.legal table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
}
.legal th, .legal td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.legal th { color: var(--text-dim); font-weight: 600; }
