/* Droply — dark, modern theme. No framework. CSS-only animations. */

:root {
  --bg: #0a0e1a;
  --bg-2: #0d1223;
  --card: #121a30;
  --card-2: #0f1628;
  --border: #232b45;
  --border-2: #2c3654;
  --text: #eaf0ff;
  --muted: #9aa4c7;
  --muted-2: #6b7498;
  --accent: #5b8cff;
  --accent-2: #8f5bff;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Background glow ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 15% -5%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 85% 0%, rgba(143, 91, 255, 0.16), transparent 60%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center; color: white; font-weight: 800;
  box-shadow: 0 6px 18px rgba(91, 140, 255, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px rgba(91, 140, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(91, 140, 255, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(91, 140, 255, 0.1); border: 1px solid var(--border-2);
  color: var(--muted); font-size: 13px; margin-bottom: 26px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  max-width: 900px; margin: 0 auto 22px;
}
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ---------- Hero mockup ---------- */
.hero-visual {
  margin: 64px auto 0; max-width: 900px; position: relative;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
  animation: floatUp 0.9s ease both;
}
.hero-visual .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.hero-visual .bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3654; }
.hero-visual .bar span:nth-child(1) { background: #ff5f57; }
.hero-visual .bar span:nth-child(2) { background: #febc2e; }
.hero-visual .bar span:nth-child(3) { background: #28c840; }
.hero-visual .screen { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.hero-visual .pane { padding: 32px; display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: center; }
.hero-visual .pane.left { border-right: 1px solid var(--border); }
.qr-fake {
  width: 150px; height: 150px; border-radius: 12px; background: #fff;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%), linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%), linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.transfer-card { width: 100%; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.transfer-card .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.progress { height: 8px; border-radius: 6px; background: #0a0f1e; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 40%; background: var(--gradient); border-radius: 6px; animation: fill 2.4s ease-in-out infinite; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(91, 140, 255, 0.12); display: grid; place-items: center; margin-bottom: 18px; font-size: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 26px;
  width: 40px; height: 40px; border-radius: 11px; background: var(--gradient);
  display: grid; place-items: center; font-weight: 800; color: #fff; box-shadow: 0 8px 20px rgba(91, 140, 255, 0.4);
}
.step h3 { margin: 12px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform 0.25s ease; }
.shot:hover { transform: scale(1.02); }
.shot .cap { padding: 16px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.shot .frame { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, var(--card), var(--card-2)); color: var(--muted); }

/* ---------- Download CTA band ---------- */
.download-band { background: linear-gradient(180deg, rgba(91, 140, 255, 0.08), transparent); }
.download-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.dl-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; transition: transform 0.2s ease, border-color 0.2s ease;
}
.dl-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.dl-card .os-icon { font-size: 34px; margin-bottom: 12px; }
.dl-card h3 { font-size: 18px; margin-bottom: 4px; }
.dl-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.dl-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.14); position: relative; }
.dl-card.recommended::after {
  content: "Detected"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details.qa { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background: var(--card); }
details.qa summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent); font-size: 22px; transition: transform 0.2s ease; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { color: var(--muted); padding: 0 0 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 12px; }

/* ---------- Content pages (docs / legal) ---------- */
.page { padding: 64px 0; }
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 90px; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--card); }
.side-nav h4 { font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; margin: 14px 0 8px; }
.side-nav h4:first-child { margin-top: 0; }
.side-nav a { display: block; color: var(--muted); font-size: 14px; padding: 6px 8px; border-radius: 8px; }
.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin-bottom: 10px; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose ul, .prose ol { margin: 14px 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }
.prose code { background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; color: #cbd5ff; }
.prose pre { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; margin: 16px 0; }
.prose pre code { background: none; border: 0; padding: 0; color: #cbd5ff; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 18px; color: var(--muted); margin: 18px 0; background: var(--card); border-radius: 0 8px 8px 0; }
.updated { color: var(--muted-2); font-size: 14px; margin-bottom: 30px; }
.callout { border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 16px 18px; background: rgba(91, 140, 255, 0.06); margin: 18px 0; color: var(--muted); }

/* ---------- Download page specifics ---------- */
.dl-hero { text-align: center; padding: 72px 0 40px; }
.primary-dl { max-width: 520px; margin: 32px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.primary-dl .os-badge { font-size: 44px; margin-bottom: 8px; }
.primary-dl h2 { font-size: 24px; margin-bottom: 6px; }
.dl-meta { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 14px 0 24px; }
.dl-meta b { color: var(--text); font-weight: 600; }
.checksum { margin-top: 18px; font-size: 12px; color: var(--muted); }
.checksum code { display: block; margin-top: 6px; background: var(--card-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; word-break: break-all; font-family: ui-monospace, monospace; color: #9fb0e6; }
.other-os { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); color: var(--ok); font-size: 12px; font-weight: 600; }

/* ---------- Release notes ---------- */
.release { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; background: var(--card); }
.release .rhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.release .rhead h2 { font-size: 22px; }
.release .rhead .date { color: var(--muted); font-size: 14px; }
.release ul { margin: 12px 0 0 20px; }
.release li { color: var(--muted); margin-bottom: 6px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes floatUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fill { 0% { width: 8%; } 50% { width: 92%; } 100% { width: 8%; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid, .steps, .shots, .download-cards, .other-os { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .hero-visual .screen { grid-template-columns: 1fr; }
  .hero-visual .pane.left { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .features-grid, .steps, .shots, .download-cards, .footer-grid, .other-os { grid-template-columns: 1fr; }
  .dl-meta { gap: 12px; }
  section { padding: 60px 0; }
}
