:root {
  --bg: #061826;
  --raised: #0c2438;
  --raised-2: #123049;
  --border: #1c3d58;
  --text: #eaf4fa;
  --muted: #8fb0c5;
  --accent: #36c9b4;
  --green: #45e08f;
  --gold: #f2c14e;
  --coral: #ff8a5b;
  --grid: rgba(54, 201, 180, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Nav */
nav { border-bottom: 1px solid var(--border); padding: 14px 0; background: rgba(6, 24, 38, 0.85); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
nav .wrap { display: flex; align-items: center; gap: 18px; }
nav img { width: 32px; height: 32px; border-radius: 8px; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
nav a.link { color: var(--muted); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
nav a.link:hover, nav a.link[aria-current] { color: var(--text); }
@media (max-width: 480px) {
  nav .wrap { gap: 12px; }
  nav .brand span { display: none; }
  nav a.link { font-size: 0.9rem; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 20%, rgba(54, 201, 180, 0.16), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px;
  border-bottom: 1px solid var(--border);
}
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 48px rgba(54, 201, 180, 0.28); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.05; letter-spacing: -0.03em; margin: 28px 0 14px; }
.hero h1 .green { color: var(--green); display: block; }
.hero .tagline { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--muted); max-width: 560px; margin: 0 auto; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; border: 0;
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--green); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }
.btn.soon { background: var(--raised); color: var(--muted); border: 1px solid var(--border); cursor: default; }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill { border: 1px solid var(--border); background: var(--raised); border-radius: 999px; padding: 6px 16px; font-size: 0.9rem; font-weight: 600; }
.pill.green { color: var(--green); }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
h2 .accent { color: var(--green); }
.lede { color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px 20px; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-weight: 800; margin-bottom: 12px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .cards.two { grid-template-columns: 1fr; } }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; color: var(--bg); background: var(--gold); border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { background: var(--raised-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; }

.pro { background: linear-gradient(180deg, rgba(242, 193, 78, 0.07), transparent); border: 1px solid rgba(242, 193, 78, 0.35); border-radius: 18px; padding: 28px; }
.pro h2 .gold { color: var(--gold); }
.pro ul { list-style: none; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 18px 0 8px; }
.pro li { padding-left: 26px; position: relative; color: var(--muted); }
.pro li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.pro li strong { color: var(--text); }
.pro .note { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

/* Screenshot carousel */
.carousel { position: relative; max-width: 330px; margin: 8px auto 0; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 100%; width: 100%; height: auto; scroll-snap-align: center; border-radius: 26px; border: 1px solid var(--border); cursor: zoom-in; }
.carousel .arrow { position: absolute; top: 45%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(6, 24, 38, 0.8); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.carousel .arrow:hover { border-color: var(--accent); }
.carousel .prev { left: -60px; }
.carousel .next { right: -60px; }
@media (max-width: 480px) { .carousel .prev { left: 8px; } .carousel .next { right: 8px; } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; }
.dots button.active { background: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.9); padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 24px; }

/* FAQ */
.faq details { background: var(--raised); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.readnext { display: grid; gap: 10px; }
.readnext a { display: block; background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; color: var(--text); text-decoration: none; font-weight: 600; }
.readnext a:hover { border-color: var(--accent); }
.readnext a span { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; }

/* Prose pages: support, privacy, beta, blog posts */
.prose { padding-top: 52px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; }
.prose .meta { color: var(--muted); margin-bottom: 32px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre { margin-bottom: 16px; }
.prose p, .prose li { color: #c9dbe6; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose code { background: var(--raised); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }
.prose pre { background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 0.88rem; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 16px; color: var(--muted); margin: 0 0 16px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.93rem; margin: 0; }
.prose th, .prose td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.prose th { background: var(--raised); color: var(--text); font-weight: 700; }
.prose td { color: #c9dbe6; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.callout { background: var(--raised); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 20px 0 24px; }
.callout p:last-child { margin-bottom: 0; }
.callout.app { border-left-color: var(--gold); }
figure.shot { max-width: 300px; margin: 20px auto 26px; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 18px; }
figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; text-align: center; line-height: 1.45; }
.steps-list { padding-left: 1.4em; }
.steps-list li { margin: 0 0 1em; padding-left: 4px; }
.steps-list a { overflow-wrap: anywhere; }
.post-cta { margin-top: 40px; padding: 22px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; display: flex; gap: 16px; align-items: center; }
.post-cta img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.post-cta p { margin: 0 !important; color: var(--muted); }
.post-cta strong { display: block; color: var(--text); }

/* Blog index */
.posts { list-style: none; padding: 0 !important; }
.posts li { border-top: 1px solid var(--border); padding: 22px 0; margin: 0 !important; }
.posts li:last-child { border-bottom: 1px solid var(--border); }
.posts h2 { font-size: 1.2rem; margin: 0 0 6px; }
.posts h2 a { color: var(--text); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { margin: 0 0 6px !important; }
.posts .date { color: var(--muted); font-size: 0.88rem; }

/* Support contact form */
.contact-form { margin-top: 16px; display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0 !important; color: var(--green) !important; }
.form-status:empty { display: none; }
.form-status.error { color: var(--coral) !important; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer span:first-child { margin-right: auto; }
