/* Wairy — Nocturne theme: blue-grey ground, blurple accent, Inter. Fonts
   self-hosted (no CDN), matching the macOS app's design system. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap;
  src: url('fonts/inter-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap;
  src: url('fonts/inter-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap;
  src: url('fonts/inter-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap;
  src: url('fonts/inter-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap;
  src: url('fonts/spacemono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap;
  src: url('fonts/spacemono-700-latin.woff2') format('woff2'); }

:root {
  /* blurple accent, matching the app's #9184D9 */
  --amber: #9184D9;
  --amber-2: #7c6fd0;
  --bg: #161826;
  --bg-2: #1b1d2b;
  --surface: #232532;
  --surface-2: #2C2E3D;
  --line: #2c2f3d;
  --text: #E9E9ED;
  --muted: #9397AB;
  --radius: 14px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* faint blurple dot grid for depth */
  background-image: radial-gradient(rgba(145,132,217,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: var(--amber); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono { font-family: 'Space Mono', monospace; }

/* ---- Atomic decorations ---- */
.starburst {
  position: absolute; pointer-events: none;
  width: 80px; height: 80px; opacity: .5;
}
.starburst::before, .starburst::after {
  content: ''; position: absolute; inset: 0;
  background:
    conic-gradient(from 0deg,
      transparent 0deg 10deg, var(--amber) 10deg 12deg, transparent 12deg 42deg,
      var(--amber) 42deg 44deg, transparent 44deg 90deg);
  mask: radial-gradient(circle, transparent 6px, #000 7px);
}
.starburst::after { transform: rotate(45deg); opacity: .5; }

/* ---- Nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,24,38,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600;
  font-size: 19px; letter-spacing: .04em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-family: 'Space Mono', monospace;
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  transition: color .2s; }
.nav-links a:hover { color: var(--amber); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--amber); font-weight: 600;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--amber);
  font-family: 'Inter', sans-serif; font-size: 15px;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px);
  background: rgba(145,132,217,.12); }
.btn:active { transform: translateY(1px); background: rgba(145,132,217,.22); }
.btn.ghost { color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: rgba(233,233,237,.06); }

/* ---- Hero ---- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
/* soft radial bloom behind the hero, echoing the eye's glow */
.hero::before {
  content: ''; position: absolute; left: 66%; top: 42%; width: 760px; height: 760px;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(145,132,217,0.12), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center; position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Mono', monospace; font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 700;
  line-height: 1.04; letter-spacing: -.02em; }
.hero h1 .amber { color: var(--amber); text-shadow: 0 0 30px rgba(145,132,217,.4); }
.hero p.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted);
  margin: 22px 0 32px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px;
  font-family: 'Space Mono', monospace; }

/* Orbiting eye visual */
.eye-stage { position: relative; display: grid; place-items: center;
  min-height: 360px; }
.eye-stage img.eye { width: 210px; height: 210px; position: relative; z-index: 2;
  filter: drop-shadow(0 20px 50px rgba(145,132,217,.28)); }
.orbit { position: absolute; border: 1.5px solid rgba(145,132,217,.24);
  border-radius: 50%; }
.orbit.o1 { width: 360px; height: 150px; transform: rotate(22deg); }
.orbit.o2 { width: 320px; height: 200px; transform: rotate(-28deg); }
.orbit.o3 { width: 400px; height: 120px; transform: rotate(64deg); }

/* Sections */
.slant { position: relative; }
.section { padding: 78px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600;
  letter-spacing: -.015em; margin-bottom: 12px; }
.section .sub { color: var(--muted); font-size: 18px; max-width: 60ch;
  margin-bottom: 40px; }

/* Section eyebrow kicker (mono, glowing prefix line) */
.sec-kicker { font-family: 'Space Mono', monospace; color: var(--amber);
  font-size: 13px; text-transform: uppercase; letter-spacing: .2em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-kicker::before { content: ''; width: 26px; height: 2px;
  background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); padding: 18px 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center;
  font-family: 'Space Mono', monospace; font-size: 14px; color: var(--muted);
  letter-spacing: .02em; }
.trust-inner span { display: flex; align-items: center; gap: 9px; }
.trust-inner b { color: var(--text); font-weight: 400; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 8px var(--amber); flex: none; }

/* Orbit/sparkle divider */
.divider { display: flex; align-items: center; justify-content: center; gap: 0;
  height: 2px; max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(145,132,217,.35), transparent); }
.divider .orb { position: relative; width: 26px; height: 26px; flex: none; }
.divider .orb::before { content: ''; position: absolute; inset: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.divider .orb span { position: absolute; inset: -3px; border: 1.5px solid rgba(145,132,217,.4);
  border-radius: 50%; animation: spin 7s linear infinite; }
.divider .orb span:nth-child(2) { inset: -9px; border-color: rgba(145,132,217,.22);
  transform: rotate(60deg); animation-duration: 11s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px; }
.card { position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(145,132,217,.45);
  box-shadow: 0 22px 50px -24px rgba(0,0,0,.7); }
.card::after { content: ''; position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px; background: var(--amber); opacity: .08;
  transform: rotate(45deg); border-radius: 14px; }
.card .ico { width: 46px; height: 46px; border-radius: 12px;
  background: rgba(145,132,217,.14); border: 1px solid rgba(145,132,217,.30);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 22px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Screenshots gallery */
.shots { display: flex; flex-direction: column; gap: 54px; }
.shot { min-width: 0; }
.shot img { display: block; width: 100%; max-width: 100%; height: auto;
  filter: drop-shadow(0 26px 55px rgba(0,0,0,.6)) drop-shadow(0 0 42px rgba(145,132,217,.16)); }
.shot figcaption { margin-top: 16px; color: var(--muted);
  font-family: 'Space Mono', monospace; font-size: 14.5px; text-align: center; }
.shot figcaption b { color: var(--amber); font-weight: 700; }

/* Screens / tabs list */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
  align-items: center; }
.tablist { list-style: none; display: grid; gap: 14px; }
.tablist li { display: flex; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .2s ease, transform .2s ease; }
.tablist li:hover { border-color: rgba(145,132,217,.45); transform: translateX(4px); }
.tablist .n { font-family: 'Space Mono', monospace; font-weight: 700;
  color: var(--amber); }
.tablist strong { display: block; font-size: 17px; font-weight: 600; }
.tablist span { color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 760px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; position: relative; }
.plan.pro { border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 60px -18px rgba(145,132,217,.5); }
.plan .tag { position: absolute; top: 18px; right: 18px;
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--amber);
  text-transform: uppercase; letter-spacing: 1px; }
.plan h3 { font-size: 24px; font-weight: 700; }
.plan .price { font-size: 40px; font-weight: 700; margin: 8px 0 4px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; color: var(--muted);
  font-size: 15px; }
.plan li::before { content: '✦'; position: absolute; left: 0; color: var(--amber); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px;
  padding: 16px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { font-weight: 600; font-size: 14px; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--surface-2); border: 1.5px solid rgba(233,233,237,0.16);
  border-radius: 10px; padding: 13px 14px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 15px; }
.form input::placeholder, .form textarea::placeholder { color: #6f7284; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--amber); background: #2a2c3b; }
.form select option { background: var(--surface-2); color: var(--text); }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-family: 'Space Mono', monospace; font-size: 14px; }

/* Content pages */
.page { padding: 60px 0 80px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  letter-spacing: -.015em; margin-bottom: 8px; }
.page .updated { color: var(--muted); font-family: 'Space Mono', monospace;
  font-size: 13px; margin-bottom: 30px; }
.prose h2 { font-size: 24px; font-weight: 600; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { color: #c3c6d4; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--text); }
.callout { background: var(--surface); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 16px 20px; margin: 20px 0; }

/* Changelog */
.release { border-left: 2px solid var(--line); padding: 0 0 8px 26px;
  margin-left: 6px; position: relative; }
.release::before { content: ''; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px var(--bg); }
.release + .release { margin-top: 8px; }
.release h2 { font-size: 24px; font-weight: 700; display: flex; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.release h2 .ver { color: var(--amber); }
.release .date { font-family: 'Space Mono', monospace; font-size: 13px;
  color: var(--muted); font-weight: 400; }
.release .tag { font-family: 'Space Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px; color: #E7E5FE;
  background: #423A6A; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.release ul { list-style: none; padding: 0; margin: 14px 0 28px; display: grid; gap: 9px; }
.release li { padding-left: 24px; position: relative; color: #c3c6d4; }
.release li::before { content: '✦'; position: absolute; left: 0; color: var(--amber);
  font-size: 13px; top: 2px; }
.release li b { color: var(--text); font-weight: 600; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 60px;
  background: var(--bg-2); margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--amber); text-decoration: none; }
.foot-brand { color: var(--muted); font-size: 14px; font-family: 'Space Mono', monospace; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .plans { grid-template-columns: 1fr; }
  .eye-stage { min-height: 260px; order: -1; }
  .nav-links a:not(.btn) { display: none; }
}
