/* Quill website — shared styles */
:root {
  --accent: #6C63FF;
  --accent-soft: rgba(108, 99, 255, 0.12);
  --bg: #0f0f14;
  --bg-card: #17171f;
  --text: #e8e8ee;
  --text-dim: #9a9aa8;
  --border: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.cta {
  background: var(--accent); color: #fff; padding: 0.45rem 1rem;
  border-radius: 8px; font-weight: 600;
}
.nav-links a.cta:hover { filter: brightness(1.1); }

/* Hero */
.hero { text-align: center; padding: 5.5rem 0 4rem; }
.hero .logo-big { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero p.sub {
  max-width: 620px; margin: 1.25rem auto 0; color: var(--text-dim);
  font-size: 1.15rem;
}
.hero .badges { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Store buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 0.7rem 1.3rem; border-radius: 12px; color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.store-btn:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .lines { text-align: left; line-height: 1.25; }
.store-btn .small { display: block; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.store-btn .big { display: block; font-size: 1.05rem; font-weight: 600; }
.store-btn.disabled { opacity: 0.55; cursor: default; }
.store-btn.disabled:hover { border-color: var(--border); transform: none; }

/* Sections */
section { padding: 4rem 0; }
section h2 {
  font-size: 1.9rem; font-weight: 700; text-align: center; letter-spacing: -0.01em;
}
section p.lead { text-align: center; color: var(--text-dim); max-width: 640px; margin: 0.8rem auto 0; }

/* Feature grid */
.grid {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--accent); font-size: 1.3rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Security strip */
.sec-strip {
  margin-top: 2.8rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.sec-strip div h4 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.sec-strip div p { color: var(--text-dim); font-size: 0.92rem; }

/* Invite note */
.invite {
  margin-top: 2.5rem; text-align: center; background: var(--accent-soft);
  border: 1px solid rgba(108, 99, 255, 0.3); border-radius: 14px; padding: 1.6rem;
}
.invite p { color: var(--text); max-width: 700px; margin: 0 auto; }

/* Document pages (privacy / terms / support) */
.doc { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.doc h1 { font-size: 2rem; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.doc .meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; }
.doc h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; text-align: left; }
.doc p { margin-bottom: 0.9rem; }
.doc ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.doc li { margin-bottom: 0.45rem; }
.doc code {
  background: rgba(127, 127, 127, 0.18); padding: 0.08rem 0.35rem;
  border-radius: 4px; font-size: 0.92em;
}
.doc hr { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 2.2rem 0; margin-top: 2rem; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; color: var(--text-dim); font-size: 0.9rem;
}
.foot .links { display: flex; gap: 1.4rem; }
.foot a { color: var(--text-dim); }
.foot a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .nav-links { gap: 0.9rem; }
  .nav-links a:not(.cta) { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
}
