﻿/*
Theme Name: PulseAvesta
Theme URI: https://pulseavesta.example.com
Author: PulseAvesta
Author URI: https://pulseavesta.example.com
Description: Marketing/SaaS theme for PulseAvesta - a self-hosted uptime, latency, and content-change monitor. Dark, glow-accented design matching the product's own brand (indigo accent, JetBrains Mono for data, Inter for UI). Ships with a full front page (hero, features, how-it-works, live status preview, pricing, FAQ, CTA), plus standard page/post/archive templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pulsewatch
Tags: dark-mode, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, saas, landing-page

This theme, like its parent product, uses no CSS framework and no JS build
step - every style below is hand-written and every script in assets/js is
plain ES2017, loaded directly with no bundler.
*/

/* =========================================================
   Design tokens
   Same variable names/roles as the PulseAvesta app's own
   internal/... static/style.css, so a developer moving between
   product UI and marketing site recognizes the system immediately.
   Values differ on purpose: the app is light-mode with a dark
   sidebar; this marketing site is dark-mode throughout, matching
   the app's logged-out /login /signup screens.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root{
  /* Surfaces */
  --bg:#0A0B12;
  --bg-2:#0E1016;
  --surface:#12141F;
  --surface-2:#171926;
  --surface-border:#242739;

  /* Brand accent - matches the product's --accent/--accent-2 exactly */
  --accent:#5B5FEF;
  --accent-2:#8B8FF5;
  --accent-3:#A78BFA;
  --accent-soft:rgba(91,95,239,.14);

  /* Status colors - matches the product's --up/--down/--warn exactly */
  --up:#17A673;
  --up-soft:rgba(23,166,115,.14);
  --down:#E5484D;
  --down-soft:rgba(229,72,77,.14);
  --warn:#DD9917;
  --warn-soft:rgba(221,153,23,.14);

  /* Text */
  --text:#F4F5FA;
  --text-2:#A6ABC2;
  --text-3:#6E7288;

  --radius:12px;
  --radius-lg:20px;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 20px 50px -20px rgba(0,0,0,.6);
  --ease:cubic-bezier(.4,0,.2,1);
  --container:1160px;
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after{ box-sizing:border-box; }
*{ margin:0; padding:0; }
html{ color-scheme:dark; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
body{
  font-family:'Inter', -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }
ul{ list-style:none; }
.mono{ font-family:'JetBrains Mono', monospace; }
:focus-visible{ outline:2px solid var(--accent-2); outline-offset:3px; border-radius:4px; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.visually-hidden{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link{
  position:absolute; left:16px; top:-60px; z-index:1000;
  background:var(--accent); color:#fff; padding:10px 16px; border-radius:8px;
  font-weight:600; font-size:14px; transition:top .2s var(--ease);
}
.skip-link:focus{ top:16px; }

/* =========================================================
   Decorative dark background (shared by every page)
   Same recipe as the product's own /login /signup pages:
   sidebar-dark gradient + animated grid + floating glow blobs.
   ========================================================= */
.pw-bg{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none;
  background:
    radial-gradient(circle at 12% 8%, rgba(91,95,239,.22), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(167,139,250,.16), transparent 45%),
    linear-gradient(160deg, #14162A 0%, var(--bg-2) 55%, var(--bg) 100%);
}
.pw-grid{
  position:absolute; inset:-10%; opacity:.4;
  background-image:
    linear-gradient(rgba(139,143,245,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,143,245,.07) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(circle at 50% 15%, #000 0%, transparent 65%);
  animation:pwGridPan 44s linear infinite;
}
@keyframes pwGridPan{ from{ transform:translate(0,0); } to{ transform:translate(44px,44px); } }
.pw-blob{ position:absolute; border-radius:50%; filter:blur(90px); opacity:.45; mix-blend-mode:screen; animation:pwBlobFloat 18s var(--ease) infinite alternate; }
.pw-blob-1{ width:520px; height:520px; top:-180px; left:-160px; background:radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent) 70%); }
.pw-blob-2{ width:460px; height:460px; top:20%; right:-180px; background:radial-gradient(circle at 60% 40%, var(--accent-3), #6B4FD8 70%); animation-delay:-6s; }
.pw-blob-3{ width:360px; height:360px; bottom:-120px; left:20%; background:radial-gradient(circle at 50% 50%, #33D9B2, var(--accent-2) 70%); opacity:.3; animation-delay:-12s; }
@keyframes pwBlobFloat{ 0%{ transform:translate(0,0) scale(1);} 100%{ transform:translate(36px,-40px) scale(1.12);} }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:14.5px; font-weight:600; border-radius:10px; border:1px solid transparent;
  padding:12px 22px; cursor:pointer; transition:filter .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease);
  white-space:nowrap;
}
.btn svg{ width:16px; height:16px; flex-shrink:0; }
.btn-primary{ background:linear-gradient(135deg, var(--accent), var(--accent-3)); color:#fff; box-shadow:0 8px 24px -8px rgba(91,95,239,.6); }
.btn-primary:hover{ filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 12px 30px -8px rgba(91,95,239,.75); }
.btn-primary:active{ transform:translateY(0); }
.btn-ghost{ background:rgba(255,255,255,.04); color:var(--text); border-color:var(--surface-border); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.2); }
.btn-lg{ padding:15px 28px; font-size:16px; }
.btn-block{ width:100%; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,11,18,.72); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.site-header .container{ display:flex; align-items:center; gap:28px; padding-top:14px; padding-bottom:14px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:17px; letter-spacing:-.01em; margin-right:auto; }
.brand-mark{
  width:32px; height:32px; border-radius:10px; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent), var(--accent-3));
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px -2px rgba(139,143,245,.6);
}
.brand-mark svg{ width:18px; height:18px; }

.primary-nav{ display:flex; align-items:center; gap:6px; }
.primary-nav a{
  font-size:14px; font-weight:500; color:var(--text-2); padding:9px 14px; border-radius:8px;
  transition:color .15s var(--ease), background .15s var(--ease);
}
.primary-nav a:hover{ color:var(--text); background:rgba(255,255,255,.05); }
.header-actions{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none; width:40px; height:40px; border-radius:9px; border:1px solid var(--surface-border);
  background:rgba(255,255,255,.04); color:var(--text); align-items:center; justify-content:center; cursor:pointer;
}
.nav-toggle svg{ width:20px; height:20px; }

@media (max-width:900px){
  .primary-nav{
    position:fixed; inset:64px 12px auto 12px; z-index:99;
    background:var(--surface); border:1px solid var(--surface-border); border-radius:var(--radius-lg);
    flex-direction:column; align-items:stretch; padding:10px; gap:2px; box-shadow:var(--shadow);
    transform:translateY(-8px); opacity:0; pointer-events:none; transition:transform .2s var(--ease), opacity .2s var(--ease);
  }
  .primary-nav.is-open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .primary-nav a{ padding:12px 14px; }
  .nav-toggle{ display:inline-flex; }
  .header-actions .btn-ghost{ display:none; }
}

/* =========================================================
   Sections / typography rhythm
   ========================================================= */
section{ position:relative; padding:96px 0; }
@media (max-width:700px){ section{ padding:64px 0; } }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:'JetBrains Mono', monospace;
  font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-2);
  background:var(--accent-soft); border:1px solid rgba(139,143,245,.25); padding:6px 12px; border-radius:999px;
}
.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; }
.section-head h2{ font-size:clamp(26px,4vw,38px); font-weight:800; letter-spacing:-.02em; margin:14px 0 12px; }
.section-head p{ font-size:16.5px; color:var(--text-2); }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding:120px 0 80px; }
.hero .container{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
@media (max-width:980px){ .hero .container{ grid-template-columns:1fr; } .hero{ padding:56px 0 40px; text-align:center; } .hero-copy > *{ margin-left:auto; margin-right:auto; } }
.hero-copy .eyebrow{ margin-bottom:22px; animation:pwFadeUp .6s var(--ease) both; }
.hero-copy h1{
  font-size:clamp(34px,5.4vw,58px); font-weight:800; letter-spacing:-.03em; line-height:1.08;
  margin-bottom:20px; animation:pwFadeUp .6s .06s var(--ease) both;
}
.hero-copy h1 .grad{ background:linear-gradient(135deg, var(--accent-2), var(--accent-3)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-copy .lead{ font-size:18px; color:var(--text-2); max-width:520px; margin-bottom:32px; animation:pwFadeUp .6s .12s var(--ease) both; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; animation:pwFadeUp .6s .18s var(--ease) both; }
@media (max-width:980px){ .hero-actions{ justify-content:center; } }
.hero-meta{ display:flex; gap:22px; margin-top:34px; flex-wrap:wrap; animation:pwFadeUp .6s .24s var(--ease) both; }
@media (max-width:980px){ .hero-meta{ justify-content:center; } }
.hero-meta div{ font-size:13px; color:var(--text-3); display:flex; align-items:center; gap:7px; }
.hero-meta svg{ width:15px; height:15px; color:var(--up); flex-shrink:0; }
@keyframes pwFadeUp{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }

/* Live status preview card in the hero */
.status-card{
  background:rgba(18,20,31,.75); backdrop-filter:blur(18px);
  border:1px solid var(--surface-border); border-radius:var(--radius-lg);
  box-shadow:0 0 0 1px rgba(255,255,255,.03), var(--shadow), 0 0 70px -20px rgba(91,95,239,.4);
  padding:22px; animation:pwFadeUp .7s .2s var(--ease) both;
}
.status-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.status-card-head .dots{ display:flex; gap:6px; }
.status-card-head .dots span{ width:9px; height:9px; border-radius:50%; background:var(--surface-border); }
.status-card-head .live{ display:flex; align-items:center; gap:6px; font-family:'JetBrains Mono', monospace; font-size:11.5px; color:var(--up); font-weight:600; }
.status-card-head .live i{ width:7px; height:7px; border-radius:50%; background:var(--up); box-shadow:0 0 0 rgba(23,166,115,.5); animation:pwPulseDot 1.8s ease-out infinite; }
@keyframes pwPulseDot{ 0%{ box-shadow:0 0 0 0 rgba(23,166,115,.55);} 70%{ box-shadow:0 0 0 8px rgba(23,166,115,0);} 100%{ box-shadow:0 0 0 0 rgba(23,166,115,0);} }
.monitor-row{ display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid rgba(255,255,255,.05); }
.monitor-row:last-child{ border-bottom:none; }
.monitor-row .pulse{ width:8px; height:8px; border-radius:50%; background:var(--up); flex-shrink:0; }
.monitor-row.is-down .pulse{ background:var(--down); }
.monitor-row .name{ font-size:13.5px; font-weight:600; flex:1; min-width:0; }
.monitor-row .url{ font-size:11.5px; color:var(--text-3); display:block; }
.monitor-row .rt{ font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--text-2); }
.monitor-row .badge{ font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; }
.badge-up{ background:var(--up-soft); color:var(--up); }
.badge-down{ background:var(--down-soft); color:var(--down); }
.uptime-strip{ display:flex; gap:2px; margin-top:8px; height:14px; }
.uptime-strip span{ flex:1; border-radius:2px; background:var(--up); opacity:.85; }
.uptime-strip span.down{ background:var(--down); }
.uptime-strip span.warn{ background:var(--warn); }

/* =========================================================
   Logo strip (trust bar)
   ========================================================= */
.logo-strip{ padding:36px 0; border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.logo-strip p{ text-align:center; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin-bottom:22px; }
.logo-row{ display:flex; justify-content:center; align-items:center; gap:48px; flex-wrap:wrap; opacity:.55; }
.logo-row span{ font-weight:700; font-size:15px; color:var(--text-2); }

/* =========================================================
   Features grid
   ========================================================= */
.features-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .features-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .features-grid{ grid-template-columns:1fr; } }
.feature-card{
  background:var(--surface); border:1px solid var(--surface-border); border-radius:var(--radius-lg);
  padding:26px; transition:transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  opacity:0; transform:translateY(16px);
}
.feature-card.is-visible{ animation:pwFadeUp .55s var(--ease) both; animation-delay:var(--reveal-delay,0ms); }
.feature-card:hover{ transform:translateY(-4px); border-color:rgba(139,143,245,.35); box-shadow:0 20px 40px -20px rgba(91,95,239,.5); }
.feature-icon{
  width:42px; height:42px; border-radius:11px; margin-bottom:16px;
  background:var(--accent-soft); color:var(--accent-2);
  display:flex; align-items:center; justify-content:center;
}
.feature-icon svg{ width:22px; height:22px; }
.feature-card h3{ font-size:17px; font-weight:700; margin-bottom:8px; letter-spacing:-.01em; }
.feature-card p{ font-size:14px; color:var(--text-2); line-height:1.65; }

/* =========================================================
   How it works
   ========================================================= */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; counter-reset:step; }
@media (max-width:820px){ .steps{ grid-template-columns:1fr; gap:40px; } }
.step{ position:relative; padding-left:0; opacity:0; transform:translateY(16px); }
.step.is-visible{ animation:pwFadeUp .55s var(--ease) both; animation-delay:var(--reveal-delay,0ms); }
.step-num{
  width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono', monospace; font-weight:700; font-size:15px;
  background:linear-gradient(135deg, var(--accent), var(--accent-3)); color:#fff; margin-bottom:18px;
  box-shadow:0 8px 20px -6px rgba(91,95,239,.6);
}
.step h3{ font-size:16.5px; font-weight:700; margin-bottom:8px; }
.step p{ font-size:14px; color:var(--text-2); }
.steps-connector{ display:none; }
@media (min-width:821px){
  .steps{ position:relative; }
  .steps::before{
    content:''; position:absolute; top:20px; left:16.5%; right:16.5%; height:1px;
    background:linear-gradient(90deg, transparent, var(--surface-border) 15%, var(--surface-border) 85%, transparent);
  }
}

/* =========================================================
   Stats band
   ========================================================= */
.stats-band{ padding:56px 0; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
@media (max-width:700px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
.stat{ padding:20px; }
.stat .num{ font-family:'JetBrains Mono', monospace; font-size:clamp(28px,4vw,40px); font-weight:700; color:var(--text);
  background:linear-gradient(135deg, var(--text), var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .label{ font-size:13px; color:var(--text-3); margin-top:6px; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:stretch; }
.pricing-grid.cols-2{ grid-template-columns:repeat(2,1fr); max-width:760px; margin:0 auto; }
@media (max-width:900px){ .pricing-grid{ grid-template-columns:1fr; max-width:420px; margin:0 auto; } }
.price-card{
  background:var(--surface); border:1px solid var(--surface-border); border-radius:var(--radius-lg);
  padding:30px; display:flex; flex-direction:column; position:relative;
  opacity:0; transform:translateY(16px);
}
.price-card.is-visible{ animation:pwFadeUp .55s var(--ease) both; animation-delay:var(--reveal-delay,0ms); }
.price-card.featured{
  border-color:rgba(139,143,245,.5); background:linear-gradient(180deg, rgba(91,95,239,.08), var(--surface) 40%);
  box-shadow:0 0 0 1px rgba(139,143,245,.15), 0 30px 60px -24px rgba(91,95,239,.55); transform:scale(1.02) translateY(16px);
}
.price-card.featured.is-visible{ transform:scale(1.02) translateY(0); }
.price-badge{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background:linear-gradient(135deg, var(--accent), var(--accent-3)); color:#fff; font-size:11.5px; font-weight:700;
  padding:5px 14px; border-radius:999px; letter-spacing:.02em; box-shadow:0 6px 16px -4px rgba(91,95,239,.6);
}
.price-card h3{ font-size:16px; font-weight:700; margin-bottom:6px; }
.price-card .price-desc{ font-size:13.5px; color:var(--text-3); margin-bottom:20px; min-height:34px; }
.price-amount{ display:flex; align-items:baseline; gap:6px; margin-bottom:24px; font-family:'JetBrains Mono', monospace; }
.price-amount .amount{ font-size:38px; font-weight:700; }
.price-amount .period{ font-size:13px; color:var(--text-3); }
.price-features{ display:flex; flex-direction:column; gap:11px; margin-bottom:28px; flex:1; }
.price-features li{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--text-2); }
.price-features svg{ width:16px; height:16px; color:var(--up); flex-shrink:0; margin-top:2px; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .testimonial-grid{ grid-template-columns:1fr; max-width:520px; margin:0 auto; } }
.testimonial{
  background:var(--surface); border:1px solid var(--surface-border); border-radius:var(--radius-lg); padding:26px;
  opacity:0; transform:translateY(16px);
}
.testimonial.is-visible{ animation:pwFadeUp .55s var(--ease) both; animation-delay:var(--reveal-delay,0ms); }
.testimonial .stars{ display:flex; gap:3px; color:var(--warn); margin-bottom:14px; }
.testimonial .stars svg{ width:15px; height:15px; }
.testimonial p{ font-size:14.5px; color:var(--text-2); line-height:1.7; margin-bottom:20px; }
.testimonial-author{ display:flex; align-items:center; gap:11px; }
.testimonial-avatar{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent-2), var(--accent-3)); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:13px; color:#fff;
}
.testimonial-author .who{ font-size:13.5px; font-weight:600; }
.testimonial-author .role{ font-size:12px; color:var(--text-3); }

/* =========================================================
   FAQ (native <details>, zero JS required)
   ========================================================= */
.faq-list{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{
  background:var(--surface); border:1px solid var(--surface-border); border-radius:14px; overflow:hidden;
}
.faq-item summary{
  list-style:none; cursor:pointer; padding:18px 22px; display:flex; align-items:center; justify-content:space-between;
  font-size:15px; font-weight:600; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chev{ width:18px; height:18px; flex-shrink:0; color:var(--text-3); transition:transform .2s var(--ease); }
.faq-item[open] summary .chev{ transform:rotate(180deg); }
.faq-item .faq-body{ padding:0 22px 20px; font-size:14px; color:var(--text-2); line-height:1.7; }

/* =========================================================
   Final CTA band
   ========================================================= */
.cta-band{
  border-radius:var(--radius-lg); padding:64px 40px; text-align:center; overflow:hidden; position:relative;
  background:linear-gradient(135deg, rgba(91,95,239,.18), rgba(167,139,250,.12)); border:1px solid rgba(139,143,245,.3);
}
.cta-band h2{ font-size:clamp(24px,3.6vw,34px); font-weight:800; letter-spacing:-.02em; margin-bottom:14px; }
.cta-band p{ color:var(--text-2); margin-bottom:28px; font-size:16px; }
.cta-band .hero-actions{ justify-content:center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ border-top:1px solid rgba(255,255,255,.06); padding:64px 0 32px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; margin-bottom:48px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand p{ font-size:13.5px; color:var(--text-3); margin-top:12px; max-width:280px; line-height:1.7; }
.footer-col h4{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); margin-bottom:14px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:13.5px; color:var(--text-2); transition:color .15s var(--ease); }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding-top:28px; border-top:1px solid rgba(255,255,255,.06); }
.footer-bottom p{ font-size:12.5px; color:var(--text-3); }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:34px; height:34px; border-radius:9px; border:1px solid var(--surface-border);
  display:flex; align-items:center; justify-content:center; color:var(--text-2);
  transition:color .15s var(--ease), border-color .15s var(--ease);
}
.footer-social a:hover{ color:var(--text); border-color:rgba(255,255,255,.25); }
.footer-social svg{ width:16px; height:16px; }

/* =========================================================
   Generic content pages (page.php / single.php / archive.php)
   ========================================================= */
.page-hero{ padding:80px 0 40px; text-align:center; }
.page-hero h1{ font-size:clamp(28px,4.5vw,44px); font-weight:800; letter-spacing:-.02em; }
.page-hero .meta{ color:var(--text-3); font-size:13.5px; margin-top:10px; }
.content-wrap{ max-width:760px; margin:0 auto; padding-bottom:80px; }
.content-wrap .entry-content{ font-size:16px; color:var(--text-2); line-height:1.8; }
.content-wrap .entry-content h2{ font-size:24px; font-weight:700; color:var(--text); margin:36px 0 14px; }
.content-wrap .entry-content h3{ font-size:19px; font-weight:700; color:var(--text); margin:28px 0 10px; }
.content-wrap .entry-content p{ margin-bottom:16px; }
.content-wrap .entry-content a{ color:var(--accent-2); text-decoration:underline; }
.content-wrap .entry-content ul, .content-wrap .entry-content ol{ margin:0 0 16px 22px; list-style:revert; }
.content-wrap .entry-content img{ border-radius:var(--radius); margin:20px 0; }
.content-wrap .entry-content blockquote{ border-left:3px solid var(--accent); padding-left:18px; color:var(--text-2); font-style:italic; margin:20px 0; }
.content-wrap .entry-content pre{ background:var(--surface); border:1px solid var(--surface-border); border-radius:10px; padding:16px; overflow-x:auto; font-family:'JetBrains Mono', monospace; font-size:13px; margin-bottom:16px; }
.content-wrap .entry-content code{ font-family:'JetBrains Mono', monospace; background:var(--surface); padding:2px 6px; border-radius:5px; font-size:.9em; }

.archive-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:700px){ .archive-grid{ grid-template-columns:1fr; } }
.post-card{ background:var(--surface); border:1px solid var(--surface-border); border-radius:var(--radius-lg); padding:24px; transition:border-color .2s var(--ease), transform .2s var(--ease); }
.post-card:hover{ border-color:rgba(139,143,245,.35); transform:translateY(-3px); }
.post-card .post-meta{ font-size:12px; color:var(--text-3); margin-bottom:10px; font-family:'JetBrains Mono', monospace; }
.post-card h2{ font-size:18px; font-weight:700; margin-bottom:10px; }
.post-card h2 a:hover{ color:var(--accent-2); }
.post-card p{ font-size:14px; color:var(--text-2); }

.pagination{ display:flex; justify-content:center; gap:8px; margin-top:40px; }
.pagination a, .pagination span{ padding:9px 14px; border-radius:8px; border:1px solid var(--surface-border); font-size:13.5px; }
.pagination .current{ background:var(--accent); border-color:var(--accent); }

.comments-area{ margin-top:56px; padding-top:40px; border-top:1px solid var(--surface-border); }
.comments-area h3{ font-size:19px; font-weight:700; margin-bottom:20px; }
.comment-list{ display:flex; flex-direction:column; gap:18px; margin-bottom:32px; }
.comment-form input, .comment-form textarea{
  width:100%; background:var(--surface); border:1px solid var(--surface-border); border-radius:8px;
  padding:11px 13px; color:var(--text); font:inherit; font-size:14px; margin-bottom:12px;
}
.comment-form input:focus, .comment-form textarea:focus{ outline:none; border-color:var(--accent); }
.comment-form label{ display:block; font-size:13px; color:var(--text-2); margin-bottom:6px; }

.error-404{ text-align:center; padding:120px 0; }
.error-404 .code{ font-family:'JetBrains Mono', monospace; font-size:15vw; line-height:1; font-weight:700;
  background:linear-gradient(135deg, var(--accent-2), var(--accent-3)); -webkit-background-clip:text; background-clip:text; color:transparent;
  max-font-size:140px; }
@media (min-width:700px){ .error-404 .code{ font-size:120px; } }
.error-404 h1{ font-size:24px; margin:16px 0 10px; }
.error-404 p{ color:var(--text-2); margin-bottom:28px; }

