/* ───────── KeyPaste landing · brand palette sampled from the app icon ─────────
   deep navy  #121A2E → #1E2235     accent periwinkle  #6087F2 → #8280F8
   slate text #53628A               light blue glyph   #6690F7
*/
:root {
  --bg:        #0E1422;
  --bg-2:      #121A2E;
  --surface:   #1A2235;
  --surface-2: #20293E;
  --border:    #2B3550;
  --text:      #EaEeF7;
  --muted:     #93A0C4;
  --slate:     #53628A;
  --accent:    #6087F2;
  --accent-2:  #8280F8;
  --accent-3:  #6690F7;
  --grad:      linear-gradient(120deg, #6690F7 0%, #8280F8 60%, #A88CFB 100%);
  --radius:    16px;
  --maxw:      1080px;
  --shadow:    0 20px 60px -20px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: rgba(96,135,242,.14);
  color: #B9C6FF;
  padding: .12em .4em;
  border-radius: 6px;
  border: 1px solid rgba(96,135,242,.18);
}

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

/* ambient brand glow */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}
.glow--a { width: 620px; height: 620px; top: -240px; right: -160px;
  background: radial-gradient(circle, rgba(130,128,248,.55), transparent 70%); }
.glow--b { width: 560px; height: 560px; top: 480px; left: -220px;
  background: radial-gradient(circle, rgba(96,135,242,.40), transparent 70%); }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  backdrop-filter: blur(10px);
}
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,20,34,.85), rgba(14,20,34,0));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand__icon { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.brand__name { font-size: 1.1rem; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: .94rem; font-weight: 500; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__gh {
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px;
  color: var(--text) !important; background: var(--surface);
}
.nav__gh:hover { border-color: var(--accent); }

/* ───────── Hero ───────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 90px;
}
.pill {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: #B9C6FF; background: rgba(96,135,242,.12);
  border: 1px solid rgba(96,135,242,.25); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -.03em; margin-bottom: 20px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.note { font-size: .86rem; color: var(--slate); margin-top: 20px; max-width: 34em; }
.note--center { text-align: center; margin: 18px auto 0; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.cta--center { justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem; padding: 13px 24px; border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--grad); color: #0B0F1C;
  box-shadow: 0 10px 30px -8px rgba(130,128,248,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(130,128,248,.75); color: #0B0F1C; }
.btn--ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }

/* hero demo window */
.hero__demo { display: flex; flex-direction: column; gap: 14px; }
.window {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.window__title { margin-left: 10px; font-size: .8rem; color: var(--slate); }
.window__body { padding: 20px 22px 26px; }
.field { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(43,53,80,.5); font-size: .92rem; }
.field__label { color: var(--slate); width: 64px; }
.field__val { color: var(--muted); }
.composer {
  /* fixed height reserved for the tallest (expanded) state so swapping
     the demo text never reflows the hero / rest of the page */
  margin-top: 18px; height: 230px; font-size: .98rem; color: var(--text);
  white-space: pre-wrap; position: relative; overflow: hidden;
  contain: layout;
}
.typed { display: inline; }
.caret {
  display: inline-block; width: 2px; height: 1.15em; vertical-align: text-bottom;
  background: var(--accent-3); margin-left: 1px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo__cap { font-size: .82rem; color: var(--slate); text-align: center; }

/* the typing demo runs via CSS content swaps on .typed */
.typed::after {
  content: ";email";
  animation: demo 9s infinite;
}
@keyframes demo {
  0%   { content: ""; }
  6%   { content: ";"; }
  10%  { content: ";e"; }
  13%  { content: ";em"; }
  16%  { content: ";ema"; }
  19%  { content: ";emai"; }
  22%  { content: ";email"; }
  30%  { content: ";email"; }                 /* pause on trigger */
  34%, 92% { content: "Hi there,\A \A Thanks for reaching out — you can get me at\A colizej@doxtin.com any time.\A \A Best,\A Jordan"; }
  100% { content: ""; }
}

/* ───────── Sections ───────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; }
.section--alt {
  max-width: none; background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.025em;
  text-align: center; margin-bottom: 14px;
}
.section__sub { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 48px; }

/* features grid */
.grid {
  margin-top: 50px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__ico {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 12px; background: rgba(96,135,242,.12);
  border: 1px solid rgba(96,135,242,.22); margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* install */
.install { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 26px; }
.steps li { display: flex; gap: 18px; }
.steps__n {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; color: #0B0F1C; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(130,128,248,.6);
}
.steps h3 { font-size: 1.08rem; margin-bottom: 5px; }
.steps p { color: var(--muted); font-size: .95rem; }
.mini { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.mini li { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.mini strong { color: var(--text); font-weight: 600; }
.mini code { font-size: .82em; word-break: break-all; }
.install__shot img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.install__shot figcaption { text-align: center; color: var(--slate); font-size: .82rem; margin-top: 12px; }

/* screenshots */
.shots { margin-top: 50px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shots figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: transform .18s ease; }
.shots figure:hover { transform: translateY(-4px); }
.shots img { width: 100%; border-radius: 10px; display: block; }
.shots figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

/* community packs */
.packs { text-align: center; }
.packs .pill { margin-bottom: 18px; }
.packs .section__sub { margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.chip {
  font-size: .9rem; font-weight: 500; color: #B9C6FF;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }

/* compare */
.compare { margin-top: 40px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
.compare thead th { font-size: 1rem; color: var(--muted); }
.compare td:first-child { color: var(--muted); }
.compare .hl { color: var(--text); font-weight: 600; }
.compare th.hl, .compare td.hl {
  background: rgba(96,135,242,.08);
  border-left: 1px solid rgba(96,135,242,.25); border-right: 1px solid rgba(96,135,242,.25);
}
.compare thead th.hl { color: var(--accent-3); }

/* final CTA */
.finalcta { text-align: center; }
.finalcta__icon { width: 78px; height: 78px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 22px; }
.finalcta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
.finalcta p { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }

/* footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__row {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 24px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.brand--sm .brand__icon { width: 24px; height: 24px; }
.brand--sm .brand__name { font-size: 1rem; }
.footer__links { display: flex; gap: 24px; font-size: .92rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__fine {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 34px;
  color: var(--slate); font-size: .82rem;
}

/* ───────── Responsive ───────── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero__demo { order: 2; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .install { grid-template-columns: 1fr; }
  .install__shot { max-width: 460px; margin: 0 auto; }
  .nav__links a:not(.nav__gh) { display: none; }
}
@media (max-width: 560px) {
  .grid, .shots { grid-template-columns: 1fr; }
  .cta { flex-direction: column; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .typed::after { animation: none; content: "Hi there, …  →  expands instantly"; }
  .caret { animation: none; }
  html { scroll-behavior: auto; }
}
