/* Droidy website — droidy.macplanet.vn (khung lấy từ web Peek, giao diện tối kiểu game) */
:root {
  --bg: #07090f;
  --bg-2: #0d1119;
  --card: #131824;
  --text: #f2f5fb;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, .1);
  --accent: #3ddb9e;
  --accent-2: #33a0ff;
  --accent-ink: #04140d;
  --accent-soft: rgba(61, 219, 158, .13);
  --pro: #ffc640;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px rgba(0,0,0,.55);
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif; letter-spacing: -.022em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; text-decoration: none; }
.nav .btn { padding: 7px 15px; font-size: 14px; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px; border: 0; cursor: pointer;
  font: 600 16px/1.2 inherit; font-family: inherit;
  background: var(--accent); color: var(--accent-ink); transition: filter .15s, transform .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; filter: none; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.release-line { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 40px; text-align: center; }
.hero .app-icon { width: 112px; height: 112px; margin: 0 auto 22px; filter: drop-shadow(0 14px 36px rgba(61,219,158,.35)); }
.hero h1 { font-size: clamp(42px, 7.4vw, 80px); font-weight: 700; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 680px; margin: 20px auto 32px; line-height: 1.4; }
.hero-media { margin: 56px auto 0; max-width: 1000px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec.alt { background: var(--bg-2); }
.eyebrow { display: block; color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
.sec-head p { font-size: 19px; color: var(--muted); margin-top: 16px; }

/* Feature rows with screenshot */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 14px; }
.feature-text p { color: var(--muted); font-size: 18px; }
.feature-text .keys { margin-top: 16px; font-size: 15px; color: var(--muted); }
kbd { font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
/* Ảnh tính năng: chỉ cửa sổ Peek + nút, nền trong suốt (bóng đổ có sẵn trong ảnh) */
.shot { display: flex; justify-content: center; margin: -24px -20px; }
.shot img { width: auto; height: auto; max-width: 100%; max-height: 560px; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; margin-bottom: 72px; }
  .feature.flip .feature-text { order: 0; }
}

/* Pro feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.tile { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.sec.alt .tile { box-shadow: none; }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { position: relative; background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.best { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan h3 { font-size: 20px; letter-spacing: -.01em; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.plan li.off { color: var(--muted); text-decoration: line-through; }
.plan li.off svg { color: var(--muted); opacity: .5; }
.plan .btn { width: 100%; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; line-height: 1.7; }
.notice { display: none; max-width: 620px; margin: 24px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: 15px; text-align: center; }
.notice.show { display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta img { width: 88px; height: 88px; margin: 0 auto 20px; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 19px; margin-bottom: 30px; }

/* ---------- Simple pages ---------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5.5vw, 56px); font-weight: 700; margin-bottom: 10px; }
.page .updated { color: var(--muted); margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.015em; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .lede { font-size: 19px; color: var(--muted); }

/* Changelog */
.release { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 170px 1fr; gap: 28px; }
.release:first-of-type { border-top: 0; }
.release .meta h2 { font-size: 28px; margin: 0 0 4px; }
.release .meta .muted { font-size: 14px; }
.release .badge { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.release .notes h3 { font-size: 16px; margin: 0 0 8px; letter-spacing: 0; }
.release .notes ul { margin: 0 0 18px; padding-left: 20px; }
.release .notes li { margin: 5px 0; }
.release .notes p { margin-bottom: 10px; }
.release .dl { font-size: 14px; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* Support cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0 8px; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Thanks */
.steps { text-align: left; max-width: 520px; margin: 30px auto; padding-left: 22px; }
.steps li { margin: 10px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); color: var(--muted); font-size: 13px; padding: 36px 0 44px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Danh sách chờ Peek Pro (khi chưa mở bán) */
.wl { display: flex; gap: 8px; max-width: 440px; margin: 16px auto 8px; position: relative; }
.wl input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.12)); background: var(--bg, #fff); color: var(--text); font: inherit; font-size: 16px; }
.wl .btn { white-space: nowrap; }
.wl-msg { min-height: 1.4em; font-size: 15px; margin-top: 6px; }
.wl-fine { font-size: 13px; margin-top: 6px; }
.plan button[disabled], .plan button { cursor: pointer; }
@media (max-width: 480px) { .wl { flex-direction: column; } }
.wl-pill { text-align: center; margin: -8px 0 22px; }
.wl-pill a { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; font-weight: 600; }
.wl-offer { margin: 14px auto 0; max-width: 520px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--accent); font-size: 15px; line-height: 1.5; }
.wl-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }

/* Trang báo chí /press/ */
.page .wrap.press-grid { max-width: var(--wrap); display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin-top: 8px; margin-bottom: 24px; }
@media (max-width: 760px) { .page .wrap.press-grid { grid-template-columns: 1fr; } }
.press-shot { margin: 0; }
.press-shot img { width: 100%; height: 300px; object-fit: contain; background: var(--bg-2); border-radius: 18px; padding: 10px; }
.press-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.press-shot figcaption strong { color: var(--text); }
.press-logos { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; margin: 18px 0 14px; }
.press-logos figure { margin: 0; text-align: center; font-size: 14px; }
.press-logos img { margin: 0 auto 10px; }
.press-video { width: 100%; border-radius: 18px; box-shadow: var(--shadow); background: #000; margin-top: 8px; aspect-ratio: 16 / 9; }

/* Ưu đãi gói 3 Mac */
.promo-pill { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 auto 22px; padding: 7px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-size: 14.5px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.promo-pill:hover { text-decoration: none; border-color: var(--accent); }
.promo-pill b { color: var(--accent); }
.promo-pill code, .promo-note code { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 6px; border-radius: 6px; background: var(--card, rgba(127,127,127,.12)); border: 1px dashed var(--accent); }
.price .was { font-size: 24px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.promo-note { font-size: 14px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }

.share { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.share-btn { font: 600 13.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.share-lead { margin: 30px 0 4px; color: var(--muted); font-size: 15px; }

/* Nút chia sẻ có icon */
.share-btn { display: inline-flex; align-items: center; gap: 7px; }
.share-btn svg { width: 15px; height: 15px; flex: none; }
.share-x:hover { color: var(--text); border-color: var(--text); }
.share-threads:hover { color: var(--text); border-color: var(--text); }
.share-facebook:hover { color: #1877f2; border-color: #1877f2; }

/* ---------- Droidy ---------- */
body { background: radial-gradient(1200px 600px at 50% -200px, rgba(61,219,158,.16), transparent 70%), radial-gradient(900px 500px at 90% 10%, rgba(51,160,255,.12), transparent 70%), var(--bg); background-attachment: scroll; }
.hero { padding-top: 92px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.chip { font-size: 13.5px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; }
.hero-shot { margin: 56px auto 0; max-width: 1040px; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
.hero-shot img { width: 100%; height: auto; }
.pro-badge { display: inline-block; font: 800 11px/1 -apple-system, sans-serif; letter-spacing: .04em; padding: 3px 7px; border-radius: 99px; color: #201400; background: linear-gradient(90deg, #ffd25a, #ff8a4c); vertical-align: 3px; margin-left: 6px; }
.shot.frame img { border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px var(--line); max-height: 520px; }
.shot.frame { margin: 0; }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--muted); font-weight: 600; }
.compare td:first-child { color: var(--muted); }
.compare .us { color: var(--accent); font-weight: 600; }
.compare-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); padding: 6px 10px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps-row .tile { position: relative; padding-top: 60px; }
.steps-row .tile::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 820px) { .steps-row { grid-template-columns: 1fr; } }
.plan .price small { color: var(--muted); }
.hero h1 { font-size: clamp(40px, 6.4vw, 70px); }
#pro .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
#pro .tile { padding: 22px; }
#pro .tile h3 { font-size: 17.5px; }
#pro .tile p { font-size: 14.5px; }
@media (max-width: 1000px) { #pro .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #pro .grid { grid-template-columns: 1fr; } }
