/*
Theme Name: iacontecer Theme
Theme URI: https://iacontecer.com
Author: iacontecer
Author URI: https://iacontecer.com
Description: Tema WordPress focado em performance, SEO e 7 ferramentas de IA.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iacontecer-theme
Tags: blog, news, custom-logo, custom-menu, featured-images
*/

:root {
  --bg: #050505;
  --surface: #0d0d0d;
  --surface-soft: #141414;
  --surface-glass: rgba(8, 8, 8, 0.8);
  --text: #f6f6f6;
  --text-soft: rgba(246, 246, 246, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --brand: #ff7a18;
  --brand-dark: #e55f00;
  --accent: #fff2e8;
  --success: #05a671;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-1: 0 10px 30px rgba(2, 6, 23, 0.32);
  --shadow-2: 0 24px 50px rgba(2, 6, 23, 0.52);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

:root[data-theme="light"] {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --surface-soft: #f5f1eb;
  --surface-glass: rgba(255, 255, 255, 0.76);
  --text: #111111;
  --text-soft: #5c5c5c;
  --border: rgba(17, 17, 17, 0.1);
  --brand: #ff6a00;
  --brand-dark: #cc5100;
  --accent: #fff4ec;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 24px 50px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 24, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(255, 122, 24, 0.09), transparent 28%),
    var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.55) 1px, transparent 0);
  background-size: 18px 18px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 122, 24, 0.08), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.05), transparent 15%),
    radial-gradient(circle at 50% 92%, rgba(255, 122, 24, 0.05), transparent 22%);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a,
button,
.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-main {
  padding-bottom: 2rem;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 60;
  width: min(1240px, calc(100% - 1rem));
  margin: 0.75rem auto 0;
  backdrop-filter: blur(18px);
  background: rgba(8, 8, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.34), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.site-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.site-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.55);
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.05rem;
}

.site-brand {
  display: grid;
  gap: 0.14rem;
}

.site-brand__copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.site-title a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.site-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow-1);
  font-size: 0.76rem;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  text-decoration: none;
  background: var(--surface-soft);
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta {
  padding: 0.6rem 0.95rem;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}

.header-cta:hover {
  text-decoration: none;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 11px;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.notification-toggle {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 11px;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle:hover,
.notification-toggle:hover,
.header-cta:hover,
.tool-shell button:hover,
.agent-controls button:hover {
  transform: translateY(-1px);
}

.home-shell {
  margin-top: 1.1rem;
  position: relative;
  padding-bottom: 1rem;
}

.hero {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.container > *,
.site-header__inner,
.site-footer__grid {
  position: relative;
  z-index: 1;
}

.blog-hero,
.page-hero,
.card,
.hero {
  backdrop-filter: blur(10px);
}

.blog-hero h1,
.page-hero h1,
.article-hero h1,
.hero__content h2 {
  font-family: var(--font-display);
  text-wrap: balance;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  margin-top: 1.1rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 24, 0.22), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow-2);
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% -8%;
  height: 220px;
  background: linear-gradient(90deg, rgba(255, 122, 24, 0), rgba(255, 122, 24, 0.18), rgba(255, 255, 255, 0));
  filter: blur(16px);
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 3.25rem 1.4rem 2.2rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.blog-hero__inner h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.blog-hero__copy {
  margin: 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.blog-hero__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-hero__pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-hero__pills span {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.front-hero {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.front-hero--blog {
  grid-template-columns: 0.95fr 1.05fr;
}

.front-hero__copy,
.front-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 24, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow-2);
  align-self: start;
}

.front-hero__copy {
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.front-hero__copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.4vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.front-hero__copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
}

.front-hero__actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.front-hero__stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.front-hero__stats div,
.front-metric {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 0.95rem;
}

.front-hero__stats strong,
.front-metric strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.front-hero__stats span,
.front-metric span {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.front-hero__panel {
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 1rem;
}

.front-hero__panel-block {
  display: grid;
  gap: 0.7rem;
}

.front-hero__panel-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.front-hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.front-hero__list li a {
  display: grid;
  gap: 0.16rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}

.front-hero__list strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.front-hero__list span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.front-hero__list li a:hover {
  text-decoration: none;
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.1);
}

.front-hero__chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.front-hero__chips a,
.front-hero__chips span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.front-hero__chips a:hover {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(255, 122, 24, 0.35);
  background: rgba(255, 122, 24, 0.12);
}

.front-spotlight {
  display: grid;
  gap: 0.95rem;
}

.front-spotlight__media {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
}

.front-spotlight__body h2 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.4rem;
  line-height: 1.15;
}

.front-spotlight__body p {
  margin: 0;
  color: var(--text-soft);
}

.front-metrics {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card--lead {
  grid-column: span 2;
  grid-row: span 2;
}

.featured-card {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  overflow: hidden;
  min-height: 100%;
}

.featured-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

.featured-card__body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.1rem;
}

.featured-card__body h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
}

.hero--ultra {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.35fr 0.9fr;
  position: relative;
  overflow: hidden;
}

.hero--ultra::before,
.hero--ultra::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero--ultra::before {
  width: 280px;
  height: 280px;
  top: -130px;
  right: -90px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.22), transparent 72%);
}

.hero--ultra::after {
  width: 220px;
  height: 220px;
  bottom: -120px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
}

.hero__content h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.12;
}

.hero__content p {
  margin: 0;
  color: var(--text-soft);
  max-width: 62ch;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.35px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero__actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-1);
}

.btn--primary:hover,
.btn--ghost:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}

.hero__stats {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero__stats span {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.87rem;
}

.hero__stats strong {
  color: var(--text);
}

.value-grid,
.workflow-grid,
.capability-grid {
  display: grid;
  gap: 1rem;
}

.value-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.workflow-grid,
.capability-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card h3,
.workflow-card h3,
.capability-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.value-card p,
.workflow-card p,
.capability-card p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.value-icon {
  margin: 0 0 0.7rem;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  color: var(--brand);
  font-weight: 800;
}

.hero__panel {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(255, 122, 24, 0.18), rgba(255, 255, 255, 0.04)),
    var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 52px;
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.22), rgba(255, 255, 255, 0.08));
}

.panel-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

.hero__panel h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.hero__panel p {
  margin: 0;
  color: var(--text-soft);
}

.hero__mini-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-metric {
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 0.7rem 0.6rem;
  display: grid;
  gap: 0.08rem;
  text-align: center;
}

.mini-metric strong {
  font-size: 1.1rem;
  color: var(--text);
}

.mini-metric span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-strip {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: rgba(10, 16, 31, 0.74);
  backdrop-filter: blur(12px);
}

.trust-strip span {
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-block {
  margin-top: 1.7rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.section-head a {
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 1rem;
}

.card:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.js-tilt.is-hovered {
  transition: transform 0.08s ease-out, box-shadow 0.18s ease;
}

.tool-card--premium {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tool-card--premium::after {
  content: "";
  position: absolute;
  inset: auto -25% -45% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.16), transparent 70%);
}

.tool-card--premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.tool-tag {
  display: inline-flex;
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--brand);
}

.tool-card h3 {
  margin: 0;
  font-size: 1.27rem;
  line-height: 1.3;
}

.tool-card p {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
}

.tool-link {
  font-weight: 700;
}

.article-card--premium {
  padding: 1rem 1.1rem;
}

.article-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
}

.article-card h3 {
  margin: 0.3rem 0 0.45rem;
  line-height: 1.35;
}

.ad-slot {
  min-height: 96px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.ad-slot--display {
  min-height: 210px;
}

.editorial-shell {
  padding-top: 1.2rem;
  padding-bottom: 1rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 24, 0.18), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow-2);
  padding: 1.25rem;
}

.page-hero--split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.page-hero--compact {
  padding-bottom: 1rem;
}

.page-hero__content h1,
.article-hero h1 {
  margin: 0.35rem 0 0.8rem;
  line-height: 1.08;
  font-size: clamp(2rem, 3vw, 3.35rem);
}

.page-hero__content p,
.article-hero__lead {
  margin: 0;
  color: var(--text-soft);
  max-width: 68ch;
}

.page-hero__panel {
  margin: 0;
  display: grid;
  gap: 0.9rem;
  align-content: center;
}

.feature-preview {
  display: grid;
  gap: 0.9rem;
}

.feature-preview__media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  min-height: 180px;
}

.feature-preview__image,
.post-card__image,
.article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-preview h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.2rem;
}

.feature-preview p {
  margin: 0;
  color: var(--text-soft);
}

.stats-stack {
  display: grid;
  gap: 0.7rem;
}

.stats-stack__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.stats-stack__item strong {
  font-size: 1.05rem;
}

.stats-stack__item span {
  color: var(--text-soft);
  font-weight: 600;
}

.story-rail {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 1fr 1fr;
  margin-top: 1rem;
}

.story-card {
  position: relative;
  overflow: hidden;
}

.story-card--featured {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 24, 0.14), transparent 34%),
    var(--surface);
}

.story-card h2,
.sidebar-card h2,
.post-card h2,
.post-card h3,
.page-card h1,
.article-hero h1 {
  margin: 0.35rem 0 0.7rem;
  line-height: 1.15;
}

.content-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  align-items: start;
}

.content-grid__main {
  min-width: 0;
}

.content-grid__aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 96px;
}

.post-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  display: grid;
  gap: 0.6rem;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
}

.post-card--lead {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.post-card__media {
  display: block;
  min-height: 100%;
  background: var(--surface-soft);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card__body {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.05rem 1.05rem;
}

.post-card--lead .post-card__body {
  align-content: center;
  padding: 1.15rem;
}

.post-card p {
  margin: 0;
  color: var(--text-soft);
}

.media-fallback {
  min-height: 230px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 122, 24, 0.34), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #0f1729, #111c34 55%, #0b1222);
}

.media-fallback--hero {
  min-height: 220px;
}

.post-card--lead .post-card__media {
  aspect-ratio: 4 / 3;
}

.sidebar-card {
  display: grid;
  gap: 0.8rem;
}

.sidebar-widget {
  display: grid;
  gap: 0.85rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.author-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.author-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.author-list strong {
  display: block;
  font-size: 0.95rem;
}

.author-list span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.sidebar-card--accent {
  background:
    linear-gradient(160deg, rgba(255, 122, 24, 0.16), rgba(255, 255, 255, 0.05)),
    var(--surface);
}

.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.stack-list li a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 600;
}

.stack-list li a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.empty-state {
  padding: 1.25rem;
}

.article-layout {
  display: grid;
  gap: 1rem;
}

.article-hero {
  padding: 1.35rem;
}

.article-hero__media {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  min-height: 260px;
  background: var(--surface-soft);
}

.article-hero__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.article-hero__meta span {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.article-body {
  display: grid;
  gap: 1rem;
}

.author-box,
.suggested-posts {
  display: grid;
  gap: 1rem;
}

.author-box__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-box__avatar img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-box__body h2,
.suggested-posts h2 {
  margin: 0;
  line-height: 1.15;
}

.author-box__body p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.suggested-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.suggested-card {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  overflow: hidden;
  min-height: 100%;
}

.suggested-card .post-card__body {
  padding-top: 0;
}

.prose {
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--text-soft);
  line-height: 1.75;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.4rem 0 0.7rem;
  line-height: 1.2;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand);
  background: var(--surface-soft);
  border-radius: 14px;
}

.prose pre,
.prose code {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.prose code {
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 122, 24, 0.14);
}

.footer-cta {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(255, 122, 24, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-links span {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.search-form {
  display: grid;
  gap: 0.6rem;
}

.search-form .search-field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.78rem 0.9rem;
}

.search-form .search-field::placeholder {
  color: var(--text-soft);
}

.search-form .search-submit {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.tools-hub {
  display: grid;
  gap: 1rem;
}

.hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card {
  display: grid;
  gap: 0.75rem;
  min-height: 100%;
}

.hub-card__meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hub-card__meta span {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.hub-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.hub-highlights li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hub-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-reveal,
  .js-tilt,
  .js-tilt.is-hovered {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.tool-page {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  align-items: start;
}

.tool-nav {
  position: sticky;
  top: 92px;
}

.tool-nav h2 {
  margin: 0 0 0.35rem;
}

.tool-nav-copy {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.quick-start {
  display: grid;
  gap: 0.9rem;
  margin: 0.9rem 0;
  padding: 1rem;
}

.quick-start h2 {
  margin: 0.2rem 0 0.35rem;
}

.quick-start p {
  margin: 0;
  color: var(--text-soft);
}

.example-grid {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.example-button {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.12), var(--surface-soft));
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.example-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 24, 0.45);
}

.tool-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--brand);
}

.tool-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.tool-nav a {
  display: block;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.52rem 0.65rem;
  color: var(--text-soft);
  font-weight: 600;
}

.tool-nav a.is-active,
.tool-nav a:hover {
  text-decoration: none;
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.tool-content > section {
  margin-top: 1rem;
}

.tool-content {
  position: relative;
  overflow: hidden;
}

.tool-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.1), transparent 70%);
  pointer-events: none;
}

.tool-header h1 {
  margin: 0.38rem 0 0.7rem;
  line-height: 1.2;
}

.tool-header p {
  margin: 0;
  color: var(--text-soft);
}

.tool-hero-stats {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-hero-stat {
  border-radius: 14px;
  padding: 0.8rem 0.7rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.1rem;
  text-align: center;
}

.tool-hero-stat strong {
  font-size: 1.05rem;
}

.tool-hero-stat span {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 700;
}

.tool-highlights {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tool-highlights li {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.34rem 0.72rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.tool-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.tool-meta span {
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.tool-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface-soft);
  padding: 1rem;
}

.notification-panel {
  display: grid;
  gap: 0.9rem;
  margin: 0.8rem 0 0;
}

.notification-panel h2 {
  margin: 0.2rem 0 0.5rem;
}

.notification-panel p {
  margin: 0;
  color: var(--text-soft);
}

.notification-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.notification-actions button {
  border: 0;
  cursor: pointer;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.notification-actions .secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.notification-state {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tool-shell textarea,
.tool-shell input,
.tool-shell select,
.tool-shell button {
  width: 100%;
  font: inherit;
  border-radius: 12px;
}

.tool-shell textarea,
.tool-shell input,
.tool-shell select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.74rem 0.78rem;
  margin-bottom: 0.68rem;
}

.tool-shell textarea:focus,
.tool-shell input:focus,
.tool-shell select:focus {
  outline: 2px solid rgba(255, 122, 24, 0.3);
  border-color: var(--brand);
}

.tool-actions {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tool-shell button {
  border: 0;
  cursor: pointer;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.tool-shell button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.tool-shell button.secondary:hover {
  background: var(--surface-soft);
}

.tool-shell button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.honeypot-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.tool-state {
  margin-top: 0.86rem;
  font-weight: 600;
}

.tool-state[data-state="error"] {
  color: var(--danger);
}

.tool-state[data-state="rate_limit"] {
  color: var(--warning);
}

.tool-state[data-state="success"] {
  color: var(--success);
}

.tool-skeleton {
  margin-top: 0.74rem;
  display: grid;
  gap: 0.55rem;
}

.tool-skeleton span {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(157, 176, 211, 0.18), rgba(157, 176, 211, 0.05), rgba(157, 176, 211, 0.18));
  background-size: 220% 100%;
  animation: shimmer 1.1s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.result-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.playbook-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.playbook-card {
  display: grid;
  gap: 0.55rem;
}

.playbook-card h3 {
  margin: 0;
}

.playbook-card p {
  margin: 0;
  color: var(--text-soft);
}

.result-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.72rem 0.78rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset;
}

.result-item summary {
  cursor: pointer;
  font-weight: 700;
}

.outcome-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.outcome-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.45rem 0.7rem;
  color: var(--text-soft);
  font-weight: 700;
}

.diff-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.diff-pane {
  margin: 0;
  border-radius: 11px;
  border: 1px solid #23345f;
  background: #0c1427;
  color: #d8e2ff;
  padding: 0.7rem;
  overflow: auto;
  min-height: 180px;
}

.agent-phase {
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.6rem;
}

.agent-task {
  margin-top: 0.45rem;
  color: var(--text-soft);
}

.agent-controls {
  display: flex;
  gap: 0.5rem;
}

.agent-controls button {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.08), transparent 32%),
    var(--surface-glass);
  backdrop-filter: blur(8px);
}

.site-footer__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  padding: 1.2rem 0 0.8rem;
}

.footer-brand {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.footer-title {
  margin: 0;
  font-weight: 700;
}

.footer-muted {
  margin: 0.28rem 0 0;
  color: var(--text-soft);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.7rem 0 1rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .front-hero,
  .front-metrics,
  .hero--ultra {
    grid-template-columns: 1fr;
  }

  .tool-page {
    grid-template-columns: 1fr;
  }

  .tool-nav {
    position: static;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .content-grid,
  .page-hero--split,
  .story-rail,
  .post-grid,
  .hub-grid,
  .playbook-grid {
    grid-template-columns: 1fr;
  }

  .featured-card--lead {
    grid-column: auto;
    grid-row: auto;
  }

  .content-grid__aside {
    position: static;
  }

  .suggested-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .notification-toggle {
    display: none;
  }

  .tool-nav {
    display: none;
  }

  .hero--ultra {
    padding: 1rem;
  }

  .front-hero__copy {
    padding: 1.4rem;
  }

  .front-hero__copy h1 {
    font-size: 2.5rem;
  }

  .front-hero__panel {
    padding: 1rem;
  }

  .front-hero__stats,
  .front-metrics {
    grid-template-columns: 1fr;
  }

  .author-box__inner {
    flex-direction: column;
  }

  .author-box__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .hero__content h2 {
    font-size: 1.7rem;
  }

  .blog-hero__inner {
    padding: 2rem 1rem 1.5rem;
  }

  .blog-hero__inner h1 {
    font-size: 2.3rem;
  }

  .hero__mini-grid,
  .tool-hero-stats,
  .playbook-grid,
  .suggested-grid {
    grid-template-columns: 1fr;
  }

  .example-grid,
  .notification-actions {
    flex-direction: column;
  }

  .tool-actions {
    grid-template-columns: 1fr;
  }

  .example-button,
  .notification-actions button,
  .tool-shell button {
    width: 100%;
  }

  .quick-start,
  .notification-panel,
  .tool-shell {
    padding: 0.85rem;
  }

  .tool-content > section {
    margin-top: 0.85rem;
  }

  .capability-grid,
  .outcome-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
