/*
Theme Name: Fillnex
Theme URI: https://fillnex.com
Author: Fillnex
Author URI: https://fillnex.com
Description: Custom theme for Fillnex — smart form automation
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fillnex
*/

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:       #06060a;
  --s1:       #0c0c12;
  --s2:       #111118;
  --border:   rgba(255,255,255,.06);
  --border2:  rgba(255,255,255,.1);
  --white:    #f0f0f8;
  --muted:    #4a4a60;
  --muted2:   #7a7a96;
  --accent:   #7c6af7;
  --accent2:  #a89eff;
  --green:    #22c55e;
  --green2:   #4ade80;
  --yellow:   #fbbf24;
  --red:      #ef4444;
  --tag:      rgba(124,106,247,.12);
  --radius:   14px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(124,106,247,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,106,247,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

/* ── Layout ────────────────────────────────────────────────── */
.site { position: relative; z-index: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 64px 24px; }

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,10,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 60px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.site-branding a {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 20px;
  color: var(--white); text-decoration: none;
}
.site-branding a span { color: var(--accent2); }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; gap: 28px; list-style: none; }
.main-navigation ul li a {
  font-size: 13px; color: var(--muted2);
  text-decoration: none; transition: color .15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a { color: var(--white); }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #6a58e0; text-decoration: none; }

/* Mobile nav toggle */
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--muted2); font-size: 22px; cursor: pointer;
  margin-left: auto;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tag); border: 1px solid rgba(124,106,247,.25);
  border-radius: 20px; padding: 5px 16px;
  font-size: 12px; color: var(--accent2);
  font-family: 'DM Mono', monospace; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.05; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent2); }
.hero p {
  font-size: 18px; color: var(--muted2);
  max-width: 540px; margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent), #5b4de0);
  color: #fff; padding: 14px 32px;
  border-radius: 12px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 8px 32px rgba(124,106,247,.3);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,106,247,.4);
  text-decoration: none; color: #fff;
}
.hero-sub {
  font-size: 12px; color: var(--muted);
  margin-top: 16px; font-family: 'DM Mono', monospace;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all .15s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6a58e0; color: #fff; text-decoration: none; }
.btn-ghost {
  background: var(--s1); border: 1px solid var(--border2);
  color: var(--muted2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent2); text-decoration: none; }
.btn-outline {
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent2);
}
.btn-outline:hover { background: var(--tag); text-decoration: none; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--border2); }
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
}

/* ── Section ───────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-tag {
  font-size: 10px; font-weight: 700;
  color: var(--muted); letter-spacing: .1em;
  text-transform: uppercase; font-family: 'DM Mono', monospace;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; margin-bottom: 16px;
}
.section-title span { color: var(--accent2); }
.section-sub { font-size: 16px; color: var(--muted2); max-width: 520px; }
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ── Feature grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 48px;
}
.feature-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: rgba(124,106,247,.3); }
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 760px; margin: 48px auto 0;
}
.pricing-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative;
}
.pricing-card.popular {
  border-color: rgba(124,106,247,.4);
  background: linear-gradient(160deg, rgba(124,106,247,.06), var(--s1));
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
}
.pricing-plan { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; font-family: 'DM Mono', monospace; }
.pricing-price { font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800; margin-bottom: 4px; }
.pricing-price sup { font-size: 20px; vertical-align: super; }
.pricing-price sub { font-size: 14px; color: var(--muted2); font-weight: 400; }
.pricing-trial { font-size: 12px; color: var(--green2); font-family: 'DM Mono', monospace; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 13px; color: var(--muted2); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--green2); font-weight: 700; flex-shrink: 0; }
.pricing-features li.muted::before { color: var(--muted); }
.pricing-btn { display: block; text-align: center; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: all .15s; }
.pricing-btn-primary { background: var(--accent); color: #fff; }
.pricing-btn-primary:hover { background: #6a58e0; text-decoration: none; color: #fff; }
.pricing-btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--muted2); }
.pricing-btn-ghost:hover { border-color: var(--accent); color: var(--accent2); text-decoration: none; }

/* ── Stats ─────────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--border); gap: 1px;
}
.stat { background: var(--s1); padding: 28px; text-align: center; }
.stat-val { font-family: 'Syne', sans-serif; font-size: 34px; font-weight: 800; color: var(--accent2); margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--muted2); font-family: 'DM Mono', monospace; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq-item.open { border-color: rgba(124,106,247,.3); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; background: var(--s1); font-size: 14px; font-weight: 600; gap: 16px; }
.faq-q:hover { background: var(--s2); }
.faq-icon { width: 22px; height: 22px; border: 1px solid var(--border2); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: all .2s; }
.faq-item.open .faq-icon { border-color: var(--accent); transform: rotate(45deg); color: var(--accent2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--s1); }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 16px 20px 20px; font-size: 14px; color: var(--muted2); line-height: 1.7; border-top: 1px solid var(--border); }

/* ── Blog ──────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.post-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.post-card:hover { border-color: var(--border2); }
.post-thumbnail img { width: 100%; height: 180px; object-fit: cover; }
.post-body { padding: 20px; }
.post-meta { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; margin-bottom: 8px; }
.post-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.post-title a { color: var(--white); text-decoration: none; }
.post-title a:hover { color: var(--accent2); }
.post-excerpt { font-size: 13px; color: var(--muted2); line-height: 1.6; }
.post-cat { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; font-family: 'DM Mono', monospace; background: var(--tag); color: var(--accent2); border: 1px solid rgba(124,106,247,.2); margin-bottom: 8px; }

/* ── Single post ───────────────────────────────────────────── */
.entry-content { font-size: 15px; line-height: 1.8; color: var(--muted2); }
.entry-content h1,.entry-content h2,.entry-content h3 { color: var(--white); margin: 32px 0 16px; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 19px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul,.entry-content ol { margin: 16px 0 16px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content code { font-family: 'DM Mono', monospace; font-size: 13px; background: var(--s2); border: 1px solid var(--border2); border-radius: 4px; padding: 2px 6px; color: var(--accent2); }
.entry-content pre { background: var(--s2); border: 1px solid var(--border2); border-radius: 10px; padding: 20px; overflow-x: auto; margin: 20px 0; }
.entry-content pre code { border: none; background: none; padding: 0; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; background: var(--tag); border-radius: 0 8px 8px 0; margin: 20px 0; }
.entry-content a { color: var(--accent2); }
.entry-content img { border-radius: 10px; margin: 20px 0; }

/* ── CTA box ───────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #0d0b2a, #0a0620);
  border: 1px solid rgba(124,106,247,.3);
  border-radius: 20px; padding: 56px; text-align: center;
}
.cta-box h2 { font-size: 32px; margin-bottom: 12px; }
.cta-box p { color: var(--muted2); font-size: 16px; margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.footer-brand .logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent2); }
.footer-brand p { font-size: 13px; color: var(--muted2); line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-family: 'DM Mono', monospace; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted2); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 32px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--muted);
}

/* ── Notices (WP) ──────────────────────────────────────────── */
.wp-block-image img { border-radius: 10px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption-text { font-size: 12px; color: var(--muted2); text-align: center; margin-top: 8px; }

/* ── Page hero ─────────────────────────────────────────────── */
.page-hero { text-align: center; padding: 64px 24px 48px; }
.page-hero h1 { font-size: 44px; margin-bottom: 14px; }
.page-hero p { font-size: 16px; color: var(--muted2); max-width: 480px; margin: 0 auto; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .main-navigation.active { display: block; position: absolute; top: 60px; left: 0; right: 0; background: var(--s1); border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .main-navigation.active ul { flex-direction: column; gap: 4px; }
  .menu-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* ── Comparison pages ──────────────────────────────────────── */
.vs-badge { display:inline-flex;align-items:center;gap:8px;background:var(--tag);border:1px solid rgba(124,106,247,.25);border-radius:20px;padding:5px 14px;font-size:12px;color:var(--accent2);font-family:"DM Mono",monospace;margin-bottom:20px; }
