/* Divee landing — one dark brand theme, independent of OS color scheme */
:root {
  color-scheme: dark;
  --bg: #120f26;
  --bg-deep: #0c0a1c;
  --panel: #1c1a2e;
  --panel-2: #23203a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f2ff;
  --muted: #b7b2d6;
  --dim: #8f89b5;
  --accent: #a99bff;
  --accent-2: #7c6cff;
  --blue: #3478f6;
  --blue-hover: #4a88ff;
  --radius: 18px;
  --max: 1120px;
  --gutter: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 78% -5%, rgba(124, 92, 255, 0.32), transparent 70%),
    radial-gradient(700px 520px at 5% 18%, rgba(52, 70, 200, 0.22), transparent 70%),
    radial-gradient(900px 700px at 90% 55%, rgba(150, 60, 190, 0.16), transparent 70%),
    linear-gradient(180deg, #171236 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-repeat: no-repeat;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #c9c0ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- header ---------- */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { color: var(--text); }
.header-links { display: flex; align-items: center; gap: 6px; }
.header-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; border: 1px solid transparent;
}
.header-links a:hover { color: var(--text); border-color: var(--line); }
.header-links .lang { border-color: var(--line); color: var(--text); }

/* ---------- labels & headings ---------- */
.label {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
:lang(ko) h1, :lang(ko) h2 { letter-spacing: -0.035em; line-height: 1.2; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 18px 0 0; }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
.hero .lede { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-q { color: var(--muted); font-size: clamp(17px, 2.2vw, 22px); font-weight: 600; margin: 0 0 12px; }
.cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(52, 120, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.note {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--dim); margin: 0;
}

.reel {
  position: relative;
  margin: 44px auto 0;
  max-width: 1040px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(169, 155, 255, 0.22);
  box-shadow: 0 30px 80px rgba(5, 3, 20, 0.6), 0 0 0 6px rgba(124, 108, 255, 0.06);
  background: #1a1440;
  aspect-ratio: 16 / 9;
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-toggle {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--mono); letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(12, 10, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.reel-toggle:hover { background: rgba(12, 10, 28, 0.9); }
.reel-toggle[hidden] { display: none; }
.reel.is-paused .reel-toggle {
  bottom: 50%; transform: translate(-50%, 50%);
  font-size: 15px; padding: 14px 22px; background: rgba(52, 120, 246, 0.92); border-color: transparent;
}
@media (max-width: 559px) {
  .reel { border-radius: 12px; }
  .reel-toggle { bottom: 6px; padding: 6px 11px; font-size: 11.5px; }
  .reel.is-paused .reel-toggle { font-size: 14px; padding: 11px 18px; }
}
.reel-caption { color: var(--dim); font-size: 14px; margin: 14px 0 0; }

/* ---------- sections ---------- */
.section { padding: 88px 0 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }

.feature {
  display: grid; gap: 32px; align-items: center;
  padding-top: 88px;
}
.feature-text p { color: var(--muted); margin: 16px 0 0; }
.feature-text ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-text li {
  position: relative; padding-left: 22px; margin-top: 10px; color: var(--muted);
}
.feature-text li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent-2);
}
.feature-text li strong { color: var(--text); font-weight: 650; }
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(5, 3, 20, 0.5);
  background: #2c2860;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 6fr; gap: 56px; }
  .feature.flip .feature-text { order: 2; }
}

/* AI cards */
.ai-grid {
  display: grid; gap: 14px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
@media (min-width: 900px) {
  .ai-grid { grid-template-columns: repeat(6, 1fr); }
  .ai-grid > .card { grid-column: span 2; }
  .ai-grid > .card:nth-child(-n+2) { grid-column: span 3; }
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.card p { color: var(--muted); margin: 8px 0 0; font-size: 15.5px; }
.card .try { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.4;
  color: #ddd7ff;
  background: rgba(124, 108, 255, 0.16);
  border: 1px solid rgba(169, 155, 255, 0.22);
  border-radius: 8px;
  padding: 4px 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ai-note { color: var(--dim); font-size: 15px; margin: 18px 0 0; max-width: 820px; }

/* Instant cards demo */
.console {
  background: #17152a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 24px 60px rgba(5, 3, 20, 0.5);
}
.console-row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 12px 14px; border-radius: 12px;
}
.console-row + .console-row { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.console-row:first-child { background: var(--blue); }
.console-row:first-child .out { color: rgba(255, 255, 255, 0.85); }
.console .in { font-family: var(--mono); font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.console .in::before { content: "\2726  "; color: var(--accent); }
.console-row:first-child .in::before { color: #fff; }
.console .out { font-size: 14px; color: var(--muted); }
@media (min-width: 560px) {
  .console-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .console .out { text-align: right; }
}

/* also inside */
.mini-grid {
  display: grid; gap: 12px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.mini-grid .card { padding: 18px 20px; }
.mini-grid h3 { font-size: 17px; }
.mini-grid p { font-size: 15px; margin-top: 4px; }

/* privacy */
.privacy-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promises li { padding: 18px 20px; }
.promises strong { display: block; color: var(--text); font-size: 16.5px; }
.promises span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.table-card { padding: 22px 22px 10px; }
.table-card h3 { margin-bottom: 4px; }
.table-card > p { margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 500; border-top: 0; }
td { color: var(--muted); }
td:first-child { color: var(--text); }
td:last-child { padding-right: 0; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr { display: block; }
  tr { border-top: 1px solid var(--line); padding: 10px 0; }
  th, td { border: 0; padding: 0; }
  td { display: inline; }
  td:first-child { display: block; font-weight: 600; margin-bottom: 2px; }
  td:last-child::before { content: " \2192  "; color: var(--dim); }
}
.perm-note { color: var(--dim); font-size: 14.5px; margin: 14px 0 12px; }

/* faq */
.faq { max-width: 820px; margin: 36px auto 0; display: grid; gap: 10px; }
.faq details {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 20px; position: relative;
  font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0; }
.faq details > div p + p { margin-top: 10px; }

/* final cta */
.final { text-align: center; padding: 104px 0 24px; }
.final img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; }

/* footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px; padding-top: 28px; padding-bottom: 40px;
  color: var(--dim); font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }

/* Korean: wide tracking on mono labels splits Hangul syllables apart */
:lang(ko) .label, :lang(ko) .note { letter-spacing: 0.06em; }

.ph-badge { display: inline-block; margin-top: 14px; line-height: 0; }
.ph-badge img { max-width: 100%; height: auto; }
