/* =========================================================================
   PCSoftware — shared design system
   Dark, blue/green glassmorphism, matching the PcCleaner app's own palette.
   No framework — every rule below is hand-written for this site.
   ========================================================================= */

:root {
  /* Deep black base — matches the logo's pure-black backdrop. */
  --bg: #07080b;
  --bg-elev: #0b0d12;
  --surface: #14171fcc;
  --surface-solid: #14171f;
  --surface-2: #1a1e28cc;
  --border: #262b37;
  --border-soft: #262b3780;

  /* Electric blue (the logo's "P") + bright metallic silver/white (the logo's "S"). */
  --blue: #3b7cff;
  --blue-deep: #1a3fc4;
  --silver: #eef1f7;
  --blue-rgb: 59, 124, 255;
  --blue-deep-rgb: 26, 63, 196;
  --silver-rgb: 238, 241, 247;

  --text: #eceff4;
  --muted: #8b90a0;
  --muted-dim: #5f6472;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-glow-blue: 0 0 40px rgba(var(--blue-rgb), 0.3);
  --shadow-glow-silver: 0 0 34px rgba(var(--silver-rgb), 0.16);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);

  --container: 1180px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

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

/* ---------- Animated flowing gradient background ----------
   Fixed, behind everything. Three soft blurred blobs drifting slowly via transform
   (compositor-only, no layout/paint cost) — same "cheap ambient motion" approach as the
   app's own background animation. Respects prefers-reduced-motion via the reset above. */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.bg-field::before,
.bg-field::after,
.bg-field .blob {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.bg-field::before {
  width: 620px; height: 620px;
  background: var(--blue);
  top: -160px; left: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.bg-field::after {
  width: 560px; height: 560px;
  background: var(--silver);
  bottom: -180px; right: -140px;
  animation: drift2 26s ease-in-out infinite alternate;
}
.bg-field .blob {
  width: 420px; height: 420px;
  background: linear-gradient(135deg, var(--blue), var(--silver));
  top: 40%; left: 50%;
  opacity: 0.14;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(80px, 60px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(-70px, -50px); } }
@keyframes drift3 { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.15); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--silver);
  background: rgba(var(--silver-rgb), 0.1);
  border: 1px solid rgba(var(--silver-rgb), 0.25);
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--silver));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 620px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--blue), var(--silver));
  color: #08090c;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn-primary:hover { box-shadow: var(--shadow-glow-blue), var(--shadow-glow-silver); transform: translateY(-2px); }
/* Diagonal light-sweep on hover — a small nod to the logo's sliced, fast-motion letterforms. */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left 0.55s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { border-color: rgba(var(--blue-rgb), 0.5); transform: translateY(-2px); }

.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Glass card ---------- */
.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), var(--surface) 35%, rgba(20,23,29,0.9));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass-card.hoverable:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--blue-rgb), 0.4);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}

/* ---------- Navbar ---------- */
.navbar {
  /* No transform/filter/backdrop-filter directly on .navbar: any of those would make it the
     "containing block" for its position:fixed descendants (the mobile .nav-links panel), which
     silently shrinks that panel to the navbar's own tiny box instead of the viewport. The glass
     blur lives on the ::before pseudo-element instead, which has no descendants and so can't
     cause that problem. */
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.navbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s var(--ease);
}
.navbar.scrolled::before { background: rgba(15, 17, 21, 0.92); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  color: var(--muted); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--bg-elev);
    flex-direction: column; align-items: stretch; padding: 24px; gap: 4px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 16px; font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-actions .btn-secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero .logo-badge {
  width: 84px; height: 84px; border-radius: 22px; margin-bottom: 28px;
  box-shadow: var(--shadow-glow-blue), var(--shadow-glow-silver);
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 900px; line-height: 1.08; }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 24px 0 36px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .hero-meta { margin-top: 22px; color: var(--muted-dim); font-size: 13px; }

/* Subtle floating particles — pure CSS, compositor-only (transform+opacity), scoped to .hero
   so it never competes with the sitewide .bg-field blobs for attention. */
.hero { position: relative; overflow: hidden; }
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-particles i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.9), rgba(var(--blue-rgb), 0));
  opacity: 0; animation: particle-float linear infinite;
}
.hero-particles i:nth-child(3n+2) { background: radial-gradient(circle, rgba(var(--silver-rgb), 0.85), rgba(var(--silver-rgb), 0)); }
.hero > .container { position: relative; z-index: 1; }
@keyframes particle-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-260px) translateX(var(--drift, 30px)); opacity: 0; }
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid; gap: 24px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.feature-card { padding: 28px; }
.feature-card .icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.18), rgba(var(--silver-rgb), 0.18));
  border: 1px solid var(--border-soft);
  /* Cut-corner "plate" shape, echoing the logo's angled badge outline. */
  clip-path: polygon(22% 0%, 78% 0%, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0% 78%, 0% 22%);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ---------- Product card (homepage "Our Software" grid + Products page) ---------- */
.product-card {
  padding: 32px; display: flex; flex-direction: column; height: 100%;
}
.product-card .icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.18), rgba(var(--silver-rgb), 0.18));
  border: 1px solid var(--border-soft);
  clip-path: polygon(22% 0%, 78% 0%, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0% 78%, 0% 22%);
}
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; flex: 1; }
.product-card.coming-soon { opacity: 0.6; }
.product-card.coming-soon .icon { background: var(--surface-2); }

/* ---------- Screenshot mockup (stand-in for real product screenshots) ---------- */
.mockup-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #12141b, #0c0e12);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}
.mockup-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border-soft);
}
.mockup-titlebar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mockup-body { padding: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mockup-tile {
  border-radius: var(--radius-sm); padding: 16px; background: var(--surface-2);
  border: 1px solid var(--border-soft);
}
.mockup-tile .label { font-size: 10px; letter-spacing: 0.06em; color: var(--muted-dim); text-transform: uppercase; font-weight: 700; }
.mockup-tile .value { font-size: 22px; font-weight: 700; margin-top: 8px; }
.mockup-tile .bar { height: 5px; border-radius: 3px; background: var(--border); margin-top: 12px; overflow: hidden; }
.mockup-tile .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--silver)); }
@media (max-width: 720px) { .mockup-body { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stats ---------- */
.stats-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; text-align: center; }
.stat { flex: 1; min-width: 140px; }
.stat .num { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 22px 4px; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.faq-q .plus { font-size: 20px; color: var(--muted); transition: transform 0.25s var(--ease); flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--silver); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 4px 22px; font-size: 14px; line-height: 1.7; max-width: 760px; }

/* ---------- Pricing ---------- */
.pricing-card {
  padding: 32px; display: flex; flex-direction: column; position: relative;
}
.pricing-card.featured { border-color: rgba(var(--silver-rgb), 0.5); box-shadow: var(--shadow-card), var(--shadow-glow-silver); }
.pricing-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--silver)); color: #08090c;
  font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: var(--radius-pill);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pricing-card h3 { font-size: 20px; }
.pricing-card .price { font-size: 42px; font-weight: 800; margin: 18px 0 4px; }
.pricing-card .price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.pricing-card .desc { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.pricing-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.pricing-card ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.pricing-card ul li.disabled { color: var(--muted-dim); }
.pricing-card ul li .check { color: var(--silver); flex-shrink: 0; }
.pricing-card ul li .cross { color: var(--muted-dim); flex-shrink: 0; }

/* ---------- Changelog ---------- */
.changelog-entry { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border-soft); }
.changelog-entry:first-child { padding-top: 0; }
.changelog-entry .meta { color: var(--muted); font-size: 13px; }
.changelog-entry .ver { color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.changelog-entry h4 { font-size: 15px; margin-bottom: 10px; }
.changelog-entry ul { display: flex; flex-direction: column; gap: 8px; }
.changelog-entry ul li { color: var(--muted); font-size: 14px; padding-left: 18px; position: relative; }
.changelog-entry ul li::before { content: "—"; position: absolute; left: 0; color: var(--muted-dim); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px; }
.tag.new { background: rgba(var(--silver-rgb), 0.15); color: var(--silver); }
.tag.fix { background: rgba(var(--blue-rgb), 0.15); color: var(--blue); }
.tag.improved { background: rgba(255,255,255,0.08); color: var(--muted); }
@media (max-width: 640px) { .changelog-entry { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text); font-size: 14px; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--silver); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border-soft); color: var(--muted-dim); font-size: 13px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Page header (non-home pages) ---------- */
.page-header { padding: 150px 0 60px; text-align: center; }
.page-header .eyebrow { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(32px, 5vw, 48px); }
.page-header p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 16px auto 0; }

/* ---------- Misc utility ---------- */
.divider { height: 1px; background: var(--border-soft); margin: 0; }
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border-soft); font-size: 12px; color: var(--muted);
}
