:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --card: #1e293b;
  --card-soft: rgba(30, 41, 59, 0.72);
  --card-strong: rgba(15, 23, 42, 0.82);
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --neon: #38bdf8;
  --white: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(56, 189, 248, 0.38);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
  --glow: 0 0 34px rgba(56, 189, 248, 0.28);
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 78px;
  color-scheme: dark;
}

body.light-mode {
  --bg: #f8fafc;
  --bg-deep: #e2e8f0;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.9);
  --white: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(37, 99, 235, 0.28);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.2), transparent 34rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 32%, var(--bg-deep));
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08), transparent 28rem);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; }

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  letter-spacing: -0.04em;
}

p { margin: 0 0 1rem; color: var(--muted); }
ul, ol { color: var(--muted); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.narrow-container { width: min(860px, calc(100% - 40px)); }
.overflow-hidden { overflow: hidden; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  z-index: 9999;
  padding: 10px 16px;
  clip: auto;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
}

.glass-panel,
.glass-card,
.futuristic-widget,
.post-card,
.category-card,
.tool-card,
.tip-card,
.trending-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.62));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.light-mode .glass-panel,
body.light-mode .glass-card,
body.light-mode .futuristic-widget,
body.light-mode .post-card,
body.light-mode .category-card,
body.light-mode .tool-card,
body.light-mode .tip-card,
body.light-mode .trending-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.72));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 14px;
  padding: 0.78rem 1.16rem;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  min-height: 44px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1d4ed8 58%, var(--neon));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34), inset 0 1px rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { box-shadow: 0 22px 46px rgba(56, 189, 248, 0.33); }
.btn-ghost {
  color: var(--white);
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.45);
}
.btn-ghost:hover { border-color: var(--line-strong); box-shadow: var(--glow); }
.btn-large { padding: 0.98rem 1.45rem; border-radius: 16px; }
.center-action { text-align: center; margin-top: 1.2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.86);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}
body.light-mode .site-header { background: rgba(248, 250, 252, 0.76); }
body.light-mode .site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }
.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--neon);
  border-radius: 14px;
  background: radial-gradient(circle at 35% 20%, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.18);
  font-size: 1.3rem;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: Poppins, sans-serif; font-size: 1.36rem; letter-spacing: -0.05em; color: var(--white); }
.brand-copy small { color: var(--muted-2); font-size: 0.72rem; font-weight: 700; }
.primary-nav { justify-self: center; }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--blue), var(--neon));
  transition: transform 0.28s ease;
}
.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.7rem; }
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 1.12rem;
}
.icon-btn:hover { border-color: var(--line-strong); background: rgba(30, 41, 59, 0.62); color: var(--neon); }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.56);
}
.mobile-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; border-radius: 99px; background: var(--white); }

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-modal.is-open { opacity: 1; visibility: visible; }
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.78); backdrop-filter: blur(8px); }
.search-modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 40px));
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.search-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  background: transparent;
  font-size: 1.5rem;
}

.search-form {
  display: flex;
  gap: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
}
.search-field {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.92rem 1rem;
  color: var(--white);
  background: transparent;
}
.search-field::placeholder { color: var(--muted-2); }
.search-submit {
  width: 54px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  display: grid;
  place-items: center;
}

.hero-section {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 5.4rem 0 4.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 72vw;
  height: 72vw;
  max-width: 960px;
  max-height: 900px;
  background:
    radial-gradient(circle at 30% 38%, rgba(56, 189, 248, 0.34), transparent 32%),
    radial-gradient(circle at 65% 35%, rgba(124, 58, 237, 0.3), transparent 34%),
    radial-gradient(circle at 72% 70%, rgba(59, 130, 246, 0.24), transparent 28%);
  filter: blur(20px);
  opacity: 0.95;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: perspective(600px) rotateX(62deg) translateY(28%);
  transform-origin: bottom;
  opacity: 0.22;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--neon);
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  padding: 0.46rem 0.74rem;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}
.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 6.2vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin-bottom: 1.2rem;
}
.hero-copy h1::first-letter { color: var(--white); }
.hero-copy h1 { text-shadow: 0 0 50px rgba(56, 189, 248, 0.12); }
.hero-copy p { max-width: 590px; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.9rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.3rem, 4vw, 3rem); }
.hero-stats div { display: grid; gap: 0.15rem; }
.hero-stats strong { color: var(--white); font-size: 1.65rem; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }
.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.workspace-card {
  position: relative;
  width: min(620px, 100%);
  min-height: 400px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.2), rgba(2, 6, 23, 0.86)),
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.26), transparent 26%),
    radial-gradient(circle at 78% 30%, rgba(168, 85, 247, 0.28), transparent 28%),
    linear-gradient(135deg, #111827, #020617);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 40px 120px rgba(2, 6, 23, 0.62), 0 0 76px rgba(56, 189, 248, 0.18);
  transform: rotateX(4deg) rotateY(-8deg);
  animation: floatY 7s ease-in-out infinite;
}
.workspace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.28;
}
.workspace-topbar {
  position: absolute;
  left: 34px;
  top: 30px;
  display: flex;
  gap: 9px;
}
.workspace-topbar span { width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 18px currentColor; }
.workspace-topbar span:nth-child(2) { background: #a855f7; }
.workspace-topbar span:nth-child(3) { background: #22c55e; }
.code-window {
  position: absolute;
  left: 42px;
  bottom: 82px;
  width: 58%;
  padding: 28px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.code-line { display: block; height: 10px; border-radius: 99px; margin: 12px 0; background: rgba(248, 250, 252, 0.72); box-shadow: 0 0 18px rgba(248, 250, 252, 0.18); }
.code-line.wide { width: 92%; }
.code-line.medium { width: 72%; }
.code-line.short { width: 42%; }
.code-line.cyan { background: var(--neon); }
.code-line.violet { background: #a855f7; }
.ai-panel {
  position: absolute;
  right: 42px;
  top: 72px;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 28px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: var(--glow);
}
.ai-panel strong { font-family: Poppins, sans-serif; font-size: 4rem; color: var(--neon); line-height: 1; }
.ai-panel span { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.laptop-base {
  position: absolute;
  left: 24%;
  bottom: 36px;
  width: 54%;
  height: 22px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(90deg, #0f172a, #334155, #0f172a);
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.42);
}
.floating-tech-card {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--neon);
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--glow);
  font-weight: 900;
  font-family: Poppins, sans-serif;
  animation: floatY 5.5s ease-in-out infinite;
}
.card-code { left: 2%; top: 20%; width: 78px; height: 68px; font-size: 1.7rem; }
.card-ai { right: 1%; top: 8%; width: 86px; height: 86px; font-size: 2rem; animation-delay: -1.2s; }
.card-cpu { right: 15%; bottom: 10%; width: 62px; height: 62px; animation-delay: -2s; }
.floating-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 28px var(--neon);
  animation: particleDrift 9s linear infinite;
}
.particle-a { left: 10%; top: 22%; }
.particle-b { left: 44%; top: 18%; animation-delay: -2s; }
.particle-c { right: 10%; top: 72%; animation-delay: -4s; }

.featured-categories { margin-top: -3.5rem; position: relative; z-index: 5; border-radius: var(--radius-lg); padding: 1.2rem; }
.section-heading { margin-bottom: 1.35rem; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.65rem); }
.section-heading p { max-width: 760px; }
.section-heading.centered { text-align: center; display: grid; justify-items: center; }
.compact-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.compact-heading h2 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); margin: 0; }
.compact-heading a { color: var(--neon); font-weight: 900; font-size: 0.9rem; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.95rem; }
.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.28rem;
  border-radius: 18px;
  padding: 1.25rem 0.75rem;
  min-height: 142px;
}
.category-card::before,
.post-card::before,
.tool-card::before,
.futuristic-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.category-card:hover,
.post-card:hover,
.tool-card:hover,
.tip-card:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: 0 24px 70px rgba(2, 6, 23, 0.42), var(--glow); }
.category-card:hover::before,
.post-card:hover::before,
.tool-card:hover::before,
.futuristic-widget:hover::before { opacity: 1; }
.category-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 0.35rem;
  color: var(--neon);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.16));
  font-size: 2.3rem;
}
.category-android { color: #2dd4bf; }
.category-ai { color: #8b5cf6; }
.category-wordpress { color: #38bdf8; }
.category-website { color: #60a5fa; }
.category-security { color: #facc15; }
.category-card strong { color: var(--white); font-weight: 900; }
.category-card small { color: var(--muted); }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1.35rem;
  align-items: start;
  margin-top: 1.35rem;
}
.latest-posts,
.archive-panel { border-radius: var(--radius-lg); padding: 1.2rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.archive-grid { grid-template-columns: repeat(2, 1fr); }
.post-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.post-card:hover .post-thumbnail img { transform: scale(1.07); }
.post-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}
.single-hero .post-badge { position: static; width: fit-content; margin-bottom: 1rem; }
.post-card-body { padding: 1rem; }
.post-card-body h2,
.post-card-body h3 { margin: 0 0 0.65rem; font-size: 1.05rem; line-height: 1.28; letter-spacing: -0.03em; }
.post-card-body a:hover { color: var(--neon); }
.post-card-body p { font-size: 0.9rem; margin-bottom: 0.9rem; }
.post-meta,
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.82rem;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.read-more { display: inline-flex; margin-top: 0.85rem; color: var(--neon); font-weight: 900; }

.sidebar-area { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-height) + 18px); }
.futuristic-widget {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1rem;
}
.widget-title { font-size: 1.05rem; margin-bottom: 0.9rem; }
.mini-post { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.mini-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post img { width: 76px; height: 56px; object-fit: cover; border-radius: 12px; }
.mini-post h4 { font-family: Inter, sans-serif; letter-spacing: -0.02em; font-size: 0.88rem; line-height: 1.28; margin: 0 0 0.2rem; }
.mini-post h4 a:hover { color: var(--neon); }
.mini-post span { color: var(--muted-2); font-size: 0.76rem; }
.sidebar-category-list,
.footer-category-list,
.footer-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-category-list li,
.footer-category-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.sidebar-category-list li:last-child,
.footer-category-list li:last-child { border-bottom: 0; }
.sidebar-category-list a:hover,
.footer-menu a:hover { color: var(--neon); }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-row a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-weight: 900;
  font-size: 0.78rem;
}
.social-row a:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.5);
  outline: 0;
  padding: 0.85rem 0.9rem;
}
.newsletter-form .btn { white-space: nowrap; }
.ad-widget { padding: 0; background: transparent; border: 0; box-shadow: none; }
.ad-banner {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  border-radius: 20px;
  padding: 1.6rem;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background:
    radial-gradient(circle at 88% 50%, rgba(56, 189, 248, 0.42), transparent 32%),
    linear-gradient(135deg, #1d4ed8, #020617 62%);
}
.ad-banner strong { font-family: Poppins, sans-serif; font-size: 1.55rem; line-height: 1.12; text-transform: uppercase; max-width: 260px; }
.ad-banner em { color: var(--neon); font-style: normal; font-size: 1.22rem; }
.ad-banner small { width: fit-content; margin-top: 0.6rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: rgba(15, 23, 42, 0.52); font-weight: 900; }

.trending-section { margin-top: 1.35rem; border-radius: var(--radius-lg); padding: 1.2rem; }
.slider-shell { position: relative; }
.trending-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.trending-track::-webkit-scrollbar { display: none; }
.trending-card {
  position: relative;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 0.75rem;
}
.trending-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; opacity: 0.82; }
.trending-card h3 { font-family: Inter, sans-serif; letter-spacing: -0.02em; font-size: 0.9rem; line-height: 1.25; margin: 0.65rem 0 0; }
.trend-number {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  border-radius: 10px;
  padding: 0.24rem 0.48rem;
  background: linear-gradient(135deg, var(--blue), var(--neon));
  color: #fff;
  font-weight: 900;
}
.slider-arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: rgba(2, 6, 23, 0.78);
  box-shadow: var(--glow);
  font-size: 1.8rem;
}
.slider-arrow.prev { left: -18px; }
.slider-arrow.next { right: -18px; }

.special-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 1.35rem; margin-top: 1.35rem; }
.ai-tools-section,
.quick-tips,
.faq-section { border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.tool-comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.15rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tool-card strong { display: block; font-family: Poppins, sans-serif; font-size: 1.15rem; }
.tool-card span { color: #facc15; display: block; margin: 0.35rem 0; }
.tool-card a { color: var(--neon); font-weight: 900; }
.tip-list { display: grid; gap: 0.75rem; }
.tip-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 0.75rem;
  border-radius: 16px;
  padding: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tip-card span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(56, 189, 248, 0.14); }
.tip-card p { margin: 0; font-size: 0.9rem; }
.faq-section { margin-top: 1.35rem; }
.faq-list { display: grid; gap: 0.75rem; max-width: 880px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(15, 23, 42, 0.44); }
.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  color: var(--white);
  background: transparent;
  text-align: left;
  font-weight: 900;
}
.faq-item button span { transition: transform 0.25s ease; }
.faq-item.is-open button span { transform: rotate(45deg); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.faq-content > p { overflow: hidden; padding: 0 1.1rem; margin: 0; }
.faq-item.is-open .faq-content { grid-template-rows: 1fr; }
.faq-item.is-open .faq-content > p { padding-bottom: 1rem; }
.community-cta { margin: 1.35rem auto 3rem; }
.community-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(56, 189, 248, 0.36);
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.34), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(124, 58, 237, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(15, 23, 42, 0.86));
  box-shadow: var(--shadow), var(--glow);
}
.community-card h2 { max-width: 820px; font-size: clamp(1.7rem, 4vw, 3.4rem); }
.community-card p { max-width: 720px; }

.page-shell { padding: 3rem 0 3.4rem; }
.archive-header { margin-bottom: 1.4rem; }
.archive-header h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.single-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.single-article { border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.single-hero { display: grid; justify-items: start; margin-bottom: 1.4rem; }
.single-hero h1 { font-size: clamp(2.1rem, 5vw, 4rem); max-width: 920px; }
.single-meta a { color: var(--neon); }
.single-thumbnail { overflow: hidden; border-radius: 24px; margin: 1.4rem 0 2rem; border: 1px solid var(--line); }
.single-thumbnail img { width: 100%; max-height: 540px; object-fit: cover; }
.futuristic-entry {
  color: var(--muted);
  font-size: 1.04rem;
}
.futuristic-entry > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.futuristic-entry h2,
.futuristic-entry h3,
.futuristic-entry h4 { color: var(--white); margin-top: 2rem; }
.futuristic-entry a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.futuristic-entry pre,
.futuristic-entry code {
  border-radius: 14px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--line);
}
.futuristic-entry code { padding: 0.12rem 0.35rem; }
.futuristic-entry pre { padding: 1rem; overflow-x: auto; }
.futuristic-entry blockquote {
  border-left: 4px solid var(--neon);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.08);
}
.single-footer { display: grid; gap: 1rem; margin-top: 2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); }
.tag-list a { padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(56, 189, 248, 0.12); color: var(--neon); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: center; border-radius: 20px; padding: 1rem; }
.author-box img { border-radius: 50%; }
.post-navigation,
.comments-area { margin-top: 1rem; border-radius: var(--radius-lg); padding: 1.2rem; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation div:last-child { text-align: right; }
.post-navigation a { color: var(--neon); font-weight: 900; }
.comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.comment-body { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: rgba(15, 23, 42, 0.38); }
.comment-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; color: var(--muted-2); }
.comment-author img { border-radius: 50%; }
.comment-reply-link { color: var(--neon); font-weight: 900; }
.comment-form { display: grid; gap: 0.9rem; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.46);
  padding: 0.85rem 1rem;
  outline: 0;
}
.form-submit .submit { border: 0; border-radius: 14px; padding: 0.85rem 1.1rem; color: #fff; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--neon)); }
.empty-state { text-align: center; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); }
.empty-state .search-form { max-width: 520px; margin: 1.5rem auto; }
.pagination-wrap { margin-top: 1.4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--white); padding: 0 0.7rem; }
.page-numbers.current,
.page-numbers:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.elementor-fullwidth-template { min-height: 60vh; }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.58);
  padding-top: 3rem;
}
.footer-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(circle at 15% 25%, rgba(56, 189, 248, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1.2fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding-bottom: 2.3rem;
}
.footer-grid h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-about p { max-width: 300px; font-size: 0.9rem; }
.footer-menu { display: grid; gap: 0.45rem; }
.footer-menu li { color: var(--muted); font-size: 0.9rem; }
.footer-category-list li { padding: 0.32rem 0; }
.footer-newsletter .newsletter-form { margin-top: 1rem; }
.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.1rem 0;
}
.footer-bottom p { margin: 0; font-size: 0.86rem; }
.footer-bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted-2); font-size: 0.86rem; }
.footer-bottom a:hover { color: var(--neon); }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-8deg); }
  50% { transform: translateY(-16px) rotateX(3deg) rotateY(-5deg); }
}
@keyframes particleDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.25; }
  45% { opacity: 0.9; }
  100% { transform: translate3d(70px, 120px, 0) scale(0.2); opacity: 0; }
}

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: auto auto 1fr; }
  .mobile-toggle { display: block; order: 2; }
  .primary-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: calc(var(--header-height) + 10px);
    z-index: 1100;
    justify-self: stretch;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 1rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu { display: grid; gap: 0.2rem; }
  .nav-menu a { min-height: 46px; }
  .header-actions { order: 3; justify-self: end; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .content-layout,
  .single-layout { grid-template-columns: 1fr; }
  .sidebar-area { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .special-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .container, .narrow-container { width: min(100% - 28px, var(--container)); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 1.1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-section { min-height: auto; padding: 3.6rem 0 4rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 14vw, 4.2rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .hero-stats strong { font-size: 1.25rem; }
  .workspace-card { min-height: 330px; transform: none; }
  .code-window { left: 24px; bottom: 68px; width: 68%; padding: 18px; }
  .ai-panel { right: 22px; top: 70px; width: 132px; height: 132px; }
  .ai-panel strong { font-size: 3rem; }
  .floating-tech-card { display: none; }
  .featured-categories { margin-top: -2rem; }
  .compact-heading { align-items: flex-start; flex-direction: column; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid,
  .archive-grid,
  .tool-comparison-grid,
  .sidebar-area,
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .slider-arrow { display: none; }
  .community-card { grid-template-columns: 1fr; }
  .community-card .btn { width: 100%; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation div:last-child { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .header-actions .icon-btn:first-child { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .single-article,
  .latest-posts,
  .archive-panel,
  .featured-categories,
  .trending-section { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
