/* Featherclip site - design tokens + global styles.
   Dark, terminal-heritage only - nods to the app's boot splash
   (near-black background, pink-glowing feather). */

:root {
  --bg: #0a0d0a;
  --bg-wash-1: #12241a;
  --bg-wash-2: #0d1a12;
  --bg-wash-3: #0a0d0a;
  --surface: rgba(20, 26, 21, 0.75);
  --surface-solid: #10140f;
  --border: #1e3a24;
  --text: #e9e9e4;
  --text-muted: #8fa88f;
  --accent: #f49bb8;
  --accent-2: #c9a6f5;
  --accent-strong: #ec6f9b;
  --feather-color: #ec6f9b;
  --shadow: 0 12px 40px rgba(57, 255, 106, 0.1);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.4);
  --warn-bg: #201a08;
  --warn-border: #6b5313;
  --warn-text: #e8c15a;
  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Ambient gradient wash behind everything - soft, slow drift. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, var(--bg-wash-1) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, var(--bg-wash-2) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, var(--bg-wash-3) 0%, transparent 55%);
  opacity: 0.35;
  animation: fc-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes fc-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Terminal texture (the "guts" showing through the soft shell) ---------- */
.pixel-grid-bg { position: relative; }
.pixel-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at center, black 0%, transparent 75%);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-strong);
  text-align: center;
  margin: 0 0 10px;
}
.eyebrow::before { content: "// "; opacity: 0.55; }

/* Always renders dark-terminal regardless of site theme, deliberately - a
   window into the app's actual boot-splash identity, not a themed card. */
.terminal-panel {
  background: #0a0d0a;
  border: 1px solid #1e3a24;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-soft);
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #1e3a24;
}
.terminal-titlebar .dot { width: 8px; height: 8px; border-radius: 50%; background: #2b4a2f; }
.terminal-label { color: #5fae6e; font-size: 12px; margin-left: 6px; }
.terminal-body { padding: 18px 20px 22px; }
.terminal-line {
  color: #39ff6a;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  align-items: baseline;
  margin-top: 14px;
}
.terminal-line:first-child { margin-top: 0; }
.terminal-line .prompt { color: #3e7a46; flex-shrink: 0; }
.terminal-line .status { margin-left: auto; color: #ec6f9b; font-weight: 700; font-size: 12px; }
.terminal-desc {
  color: #3e7a46;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin: 3px 0 0 22px;
}

/* ---------- Top discord bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.topbar a { text-decoration: underline; text-underline-offset: 2px; }
.topbar-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-close:hover { background: rgba(255, 255, 255, 0.35); }
.topbar.is-hidden { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-right: auto;
}
.brand .fc-logo-small { width: 26px; height: 26px; color: var(--feather-color); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent-strong); }

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-discord:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface-solid);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 22px;
    gap: 16px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 46px rgba(236, 111, 155, 0.28); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-strong); color: var(--accent-strong); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero-feather { width: 220px; height: 220px; margin: 0 auto 8px; color: var(--feather-color); }
.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 2px;
  margin: 8px 0 6px;
}
.hero .tagline {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections / cards ---------- */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 30px);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}


.shot-slot {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ---------- Reveal-on-scroll ---------- */
/* Hidden-until-scrolled only when JS is present (the `.js` class is set in
   <head> before first paint). Without JS the content stays visible instead
   of blank, since the reveal is driven by an IntersectionObserver. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier-card.featured { border-color: var(--accent-strong); position: relative; }
.tier-name { font-weight: 800; font-size: 17px; }
.tier-price { font-size: 30px; font-weight: 800; background: linear-gradient(90deg, var(--accent-strong), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-price small { font-size: 15px; font-weight: 600; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.tier-desc { color: var(--text-muted); font-size: 14.5px; line-height: 1.5; flex-grow: 1; }
.tier-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }

/* ---------- Warning box (SmartScreen) ---------- */
.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.warn-box .warn-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.warn-box b { font-weight: 800; }

/* ---------- Download page specifics ---------- */
.download-hero { text-align: center; padding: 72px 0 40px; }
.download-meta { color: var(--text-muted); font-size: 13.5px; margin-top: 10px; }
.whats-new { max-width: 640px; margin: 0 auto; }
.whats-new ul { padding-left: 20px; line-height: 1.85; }
.whats-new li { margin-bottom: 4px; }

/* ---------- Support page ---------- */
.support-hero { text-align: center; padding: 100px 0; }
.support-hero .hero-feather { width: 160px; height: 160px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
.footer-brand .fc-logo-small { width: 18px; height: 18px; color: var(--feather-color); }
.footer a:hover { color: var(--accent-strong); }

/* ---------- Feather SVG animation ---------- */
.fc-px {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  animation: fc-reveal 0.16s ease-out forwards;
  animation-delay: calc(var(--n, 0) * 14ms);
}
@keyframes fc-reveal {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
.fc-shakewrap.is-shaking { animation: fc-shake 0.5s ease-in-out; }
@keyframes fc-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-3px, 2px); }
  30% { transform: translate(2px, -2px); }
  45% { transform: translate(-2px, 1px); }
  60% { transform: translate(2px, -2px); }
  75% { transform: translate(-1px, 1px); }
  90% { transform: translate(1px, -1px); }
}
.fc-px-static { opacity: 1; }

/* Motion policy: animations play for everyone, regardless of the OS
   reduced-motion setting (deliberate product decision — the target audience
   commonly disables Windows animations, and we still want the site alive). */

@media (max-width: 560px) {
  .hero { padding: 64px 0 40px; }
  .hero-feather { width: 160px; height: 160px; }
  .section { padding: 44px 0; }
}
