/* =========================================================
   DailyToolStack — Premium Dark Theme (Clean + Fast + SEO)
   - Minimal glow
   - Premium spacing
   - Blog-ready typography
   - Tool UI optimized
   - Mobile-first responsive
========================================================= */

/* ------------------------------
   Tokens (Design System)
------------------------------ */
:root {
  /* Backgrounds */
  --bg: #080a0f;
  --bg2: #0d1117;
  --panel: rgba(255, 255, 255, 0.045);
  --panel2: rgba(255, 255, 255, 0.075);
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);

  /* Text */
  --text: rgba(248, 250, 252, 0.94);
  --muted: rgba(226, 232, 240, 0.68);

  /* Borders */
  --border: rgba(255, 255, 255, 0.10);
  --border2: rgba(255, 255, 255, 0.14);

  /* Brand */
  --brand: #2dd4bf;
  --brand2: #38bdf8;
  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;

  /* Radius */
  --radius: 8px;
  --radius-sm: 6px;

  /* Shadow */
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.24);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.38);

  /* Focus */
  --ring: 0 0 0 4px rgba(45, 212, 191, 0.20);

  /* Layout */
  --container: 1120px;
  --section-pad: 72px;
}

/* ------------------------------
   Base Reset
------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 300px),
    linear-gradient(135deg, rgba(45, 212, 191, 0.07), transparent 34%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 8%, rgba(45, 212, 191, 0.12), transparent 28%),
    radial-gradient(circle at 88% 2%, rgba(56, 189, 248, 0.10), transparent 26%);
  opacity: 0.72;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: rgba(45, 212, 191, 0.30);
}

/* ------------------------------
   Global Links
------------------------------ */
a {
  color: rgba(238, 242, 255, 0.92);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: rgba(255, 255, 255, 0.98);
}

/* ------------------------------
   Layout Helpers
------------------------------ */
.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section.alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-subtitle {
  margin: 0 0 24px;
  max-width: 75ch;
  color: var(--muted);
  line-height: 1.85;
}

/* ------------------------------
   Typography
------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: var(--radius);
  background: rgba(45, 212, 191, 0.08);
  color: rgba(204, 251, 241, 0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-header > div {
  max-width: 760px;
}

.section-header .section-subtitle {
  margin-bottom: 0;
}

p {
  margin: 0 0 14px;
}

small {
  color: var(--muted);
}

/* Inline code */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(238, 242, 255, 0.92);
}

/* Code blocks */
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  overflow-x: auto;
  line-height: 1.7;
  color: rgba(238, 242, 255, 0.92);
}

/* ------------------------------
   Accessibility / Focus
------------------------------ */
:where(a, button, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: rgba(45, 212, 191, 0.55);
}

.sr-only-focusable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only-focusable:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(8, 10, 15, 0.98);
  border: 1px solid var(--border2);
  color: var(--text);
  z-index: 9999;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* ------------------------------
   Header / Navigation
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8, 10, 15, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 18px;
  color: rgba(238, 242, 255, 0.95);
}

.logo::before,
.footer-logo::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.36);
}

.logo-dot {
  color: var(--brand2);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 650;
  font-size: 14.5px;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: rgba(238, 242, 255, 0.95);
}

.nav a.active {
  color: rgba(238, 242, 255, 0.95);
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 2px;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: 0.95;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 242, 255, 0.92);
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(45, 212, 191, 0.28);
}

/* ------------------------------
   Buttons
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(238, 242, 255, 0.92);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(45, 212, 191, 0.30);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  border: none;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.96), rgba(14, 165, 233, 0.82));
  color: #041014;
  box-shadow: 0 14px 30px rgba(45, 212, 191, 0.14);
}

.btn.primary:hover {
  background: linear-gradient(180deg, rgba(94, 234, 212, 1), rgba(56, 189, 248, 0.90));
}

.btn.outline {
  background: rgba(255, 255, 255, 0.025);
}

.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: rgba(226, 232, 240, 0.78);
}

.btn.danger {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.10);
  color: rgba(255, 228, 232, 0.95);
}

.btn.danger:hover {
  border-color: rgba(251, 113, 133, 0.50);
  background: rgba(251, 113, 133, 0.16);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ------------------------------
   Hero
------------------------------ */
.hero {
  padding: 86px 0 54px;
  overflow: hidden;
}

.hero h1 {
  max-width: 920px;
  font-size: 58px;
  line-height: 1.08;
  margin: 0 0 16px;
}

.hero p {
  max-width: 76ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.82;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero-proof {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.040)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-lg);
}

.hero-proof-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-proof strong {
  display: block;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.3;
}

.hero-proof span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.chip,
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
  font-weight: 750;
}

/* ------------------------------
   Grid + Cards
------------------------------ */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.034));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: rgba(238, 242, 255, 0.92);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.30);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
}

.card.featured {
  border-color: rgba(45, 212, 191, 0.24);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.card .card-title {
  font-weight: 850;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0;
}

.card-kicker {
  margin-bottom: 12px;
  color: rgba(125, 211, 252, 0.92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-arrow {
  margin-top: 14px;
  color: rgba(204, 251, 241, 0.88);
  font-size: 13px;
  font-weight: 850;
}

.tool-card {
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.26);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.10));
  color: rgba(230, 255, 251, 0.96);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-preview {
  margin-top: 16px;
  padding: 14px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.2);
  content-visibility: auto;
}

.card-preview-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.card-preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.4);
}

.card-preview-lines {
  display: grid;
  gap: 8px;
}

.card-preview-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.18);
}

.card-preview-lines .is-strong {
  width: 68%;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.52), rgba(56, 189, 248, 0.3));
}

.card-preview-lines span:nth-child(2) {
  width: 92%;
}

.card-preview-lines span:nth-child(3) {
  width: 74%;
}

.card-preview-label {
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.08);
}

.card .card-desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.card .card-meta {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(238, 242, 255, 0.62);
}

/* ------------------------------
   Forms / Inputs
------------------------------ */
input, textarea, select, button {
  font: inherit;
}

.input,
.tool-input,
.tool-textarea,
.blog-controls input,
.blog-controls select {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(238, 242, 255, 0.92);
  padding: 12px 14px;
  outline: none;
  line-height: 1.4;
  min-height: 44px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tool-input::placeholder,
.blog-controls input::placeholder,
.tool-textarea::placeholder {
  color: rgba(238, 242, 255, 0.45);
}

.tool-input:hover,
.tool-textarea:hover,
.blog-controls input:hover,
.blog-controls select:hover {
  border-color: rgba(45, 212, 191, 0.26);
}

.tool-input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.tool-input[type="file"]::file-selector-button {
  min-height: 38px;
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.95), rgba(14, 165, 233, 0.84));
  color: #041014;
  font-weight: 850;
  cursor: pointer;
}

.tool-textarea {
  resize: vertical;
  line-height: 1.65;
}

/* ------------------------------
   Tool Pages UI
------------------------------ */
.tool-head {
  margin-bottom: 22px;
}

.tool-title {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.15;
}

.tool-sub {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.85;
}

.tool-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.070), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.tool-wrap,
.card,
.tool-output,
.stat {
  backdrop-filter: blur(10px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-box {
  min-width: 0;
}

.label,
.tool-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(238, 242, 255, 0.64);
  font-size: 14px;
  font-weight: 700;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.tool-output {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.tool-code {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: rgba(238, 242, 255, 0.92);
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
  border-radius: var(--radius);
  overflow-x: auto;
}

.tool-output ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tool-output li {
  color: rgba(238, 242, 255, 0.75);
  margin-bottom: 6px;
  line-height: 1.7;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stat {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.stat-label {
  display: block;
  color: rgba(238, 242, 255, 0.62);
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.tool-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.tool-note:empty,
.hint:empty {
  display: none;
}

.trust-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.trust-strip span {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.82);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.workflow-step {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.workflow-step strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(238, 242, 255, 0.92);
  font-size: 13px;
}

.workflow-step span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.premium-panel,
.cta-panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.030)),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow-sm);
}

.premium-panel {
  padding: 26px;
}

.cta-panel {
  padding: 32px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  color: rgba(248, 250, 252, 0.96);
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------
   Blog Pages UI
------------------------------ */
/* ------------------------------
   Blog Pages UI
------------------------------ */
.blog-controls {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  margin: 12px 0 18px;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 650;
}

.back-link:hover {
  color: rgba(238, 242, 255, 0.95);
}

.post-title {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1.12;
}

.post-meta {
  color: rgba(238, 242, 255, 0.62);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 14px;
}

/* ✅ FIX: Blog thumbnails must be fixed + cropped consistently */
.post-thumb {
  width: 100%;
  height: 170px;              /* consistent thumbnail size */
  object-fit: cover;          /* crop without stretching */
  object-position: center;    /* avoid weird crop */
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
}

/* ✅ Post page cover must remain natural height */
.post-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0 0 12px;
}

/* Post Content (SEO readability) */
.post-content {
  max-width: 78ch;
}

.post-content h2 {
  margin: 26px 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.post-content h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(238, 242, 255, 0.96);
}

.post-content p {
  line-height: 1.95;
  margin: 0 0 16px;
  color: rgba(238, 242, 255, 0.92);
}

.post-content a {
  color: rgba(56, 189, 248, 0.92);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-content a:hover {
  color: rgba(125, 211, 252, 1);
}

.post-content ul,
.post-content ol {
  padding-left: 22px;
  margin: 10px 0 18px;
  line-height: 1.9;
  color: rgba(238, 242, 255, 0.90);
}

.post-content li {
  margin-bottom: 6px;
}

.post-content blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(45, 212, 191, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  color: rgba(238, 242, 255, 0.86);
  line-height: 1.9;
}

.post-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.post-content th,
.post-content td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}

.post-content th {
  font-weight: 850;
  color: rgba(238, 242, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
}

.post-content td {
  color: rgba(238, 242, 255, 0.80);
}

.post-tags {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(238, 242, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
}

/* ------------------------------
   Footer
------------------------------ */
.footer {
  padding: 44px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.footer a {
  color: rgba(238, 242, 255, 0.82);
  font-weight: 650;
  transition: color 0.18s ease;
}

.footer a:hover {
  color: rgba(238, 242, 255, 0.95);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 460px;
  width: 100%;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0;
  color: rgba(238, 242, 255, 0.92);
}

.footer-logo-dot {
  color: var(--brand2);
}

.footer-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 850;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(238, 242, 255, 0.88);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer-note {
  color: rgba(238, 242, 255, 0.60);
}

.monetization-slot[hidden] {
  display: none !important;
}

.monetization-slot:not([hidden]) {
  margin-top: 24px;
}

/* ------------------------------
   Animations
------------------------------ */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

/* ------------------------------
   Scrollbar (Premium look)
------------------------------ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ------------------------------
   Mobile Responsive
------------------------------ */
@media (max-width: 860px) {
  :root {
    --section-pad: 54px;
  }

  body::before {
    opacity: 0.44;
  }

  .hero {
    padding: 62px 0 38px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    padding: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .tool-title {
    font-size: 34px;
  }

  .post-title {
    font-size: 34px;
  }

  .section-header {
    display: block;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .workflow-strip,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header,
  .card,
  .tool-output,
  .tool-wrap,
  .stat {
    backdrop-filter: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border2);
    background: rgba(7, 11, 20, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .blog-controls {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 28px;
  }

  .card-head {
    flex-direction: column;
  }

  .card-badges {
    justify-content: flex-start;
  }

  .card-cta,
  .tool-actions .btn {
    width: 100%;
  }
}

@media (max-width: 1100px) and (min-width: 861px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .footer-links,
  .tool-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .footer-links > div,
  .tool-actions .btn {
    width: 100%;
  }
}
