@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --indigo-950: #0A091E;
  --indigo-900: #12102E;
  --indigo-800: #2D2B7F;
  --indigo-700: #3D3AA0;
  --indigo-600: #4845A8;
  --indigo-400: #7B78D4;
  --indigo-200: #C5C4F0;
  --indigo-100: #E0DFF9;
  --indigo-50: #F0EFFD;

  --amber-600: #D4890A;
  --amber-500: #F5A623;
  --amber-400: #FFC85A;
  --amber-100: #FFF3D6;
  --amber-50: #FFFBF0;

  --ghost: #F9F9FB;
  --white: #FFFFFF;
  --text-primary: #0A091E;
  --text-secondary: #474569;
  --text-muted: #8E8CAF;
  --border: rgba(18, 16, 46, 0.08);
  --border-strong: rgba(18, 16, 46, 0.14);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 2px 4px rgba(10, 9, 30, 0.04);
  --shadow-md: 0 8px 16px rgba(10, 9, 30, 0.06), 0 2px 4px rgba(10, 9, 30, 0.04);
  --shadow-lg: 0 20px 48px rgba(10, 9, 30, 0.12), 0 4px 12px rgba(10, 9, 30, 0.06);
  --shadow-glow: 0 0 30px rgba(245, 166, 35, 0.25);
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--ghost);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--indigo-50);
}

::-webkit-scrollbar-thumb {
  background: var(--indigo-400);
  border-radius: 99px;
}

/* ─── SELECTION ─── */
::selection {
  background: var(--amber-400);
  color: var(--indigo-900);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container--narrow {
  max-width: 780px;
}

.container--wide {
  max-width: 1380px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--indigo-900);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.45);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--indigo-800);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-400);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}

.badge-amber {
  background: var(--amber-100);
  color: var(--amber-600);
}

.badge-indigo {
  background: var(--indigo-100);
  color: var(--indigo-800);
}

.badge-dark {
  background: var(--indigo-900);
  color: var(--amber-400);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

/* ─── CARD BASE ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: var(--indigo-200);
  transform: translateY(-5px);
}

/* ─── SECTION ─── */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--amber-500);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-400), var(--amber-600));
  z-index: 1001;
  transition: width 0.1s ease;
}

.navbar.scrolled {
  background: rgba(10, 9, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__brainy {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo__blips {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber-500);
  letter-spacing: -0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--amber-400);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

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

.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ─── GLOWS ─── */
.bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.bg-glow-indigo {
  background: var(--indigo-600);
}

.bg-glow-amber {
  background: var(--amber-500);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 80vh;
  padding: 6rem 0;
  background: var(--indigo-950);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(72, 69, 168, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(245, 166, 35, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
  text-align: left;
  grid-column: 1 / span 10;
}

.hero .container {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .hero__content {
    grid-column: 1 / -1;
  }
}

/* Use the standard container padding so hero text aligns with other sections */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(245, 166, 35, 0.22), rgba(245, 166, 35, 0.06));
  border: 1px solid rgba(245, 166, 35, 0.35);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 8px 18px 8px 12px;
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.hero__eyebrow::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 50%, rgba(245, 166, 35, 0.25), transparent 60%);
  opacity: 0.7;
  z-index: -1;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--amber-500);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__eyebrow span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--amber-400);
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .hero__eyebrow span {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 420px) {
  .hero__eyebrow span {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .section .container>.flex h2 {
    white-space: normal;
    font-size: 1.4rem;
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--amber-400);
}

.hero__sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  font-weight: 400;
  letter-spacing: 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  gap: 3.5rem;
  flex-wrap: nowrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .hero__stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Circuit SVG decoration */
.hero__circuit {
  position: absolute;
  right: 50px;
  top: 42%;
  transform: translateY(-50%);
  width: clamp(350px, 40vw, 650px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(245, 166, 35, 0.2));
}

.hero__circuit .particle {
  opacity: 0.9;
  transform-origin: center;
  animation: particle-float 6s ease-in-out infinite;
}

.hero__circuit .particle--1 {
  animation-delay: 0s;
}

.hero__circuit .particle--2 {
  animation-delay: 1.2s;
}

.hero__circuit .particle--3 {
  animation-delay: 2.4s;
}

.hero__circuit .particle--4 {
  animation-delay: 3.6s;
}

@keyframes particle-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-8px) scale(1.15);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero__circuit {
    right: -6%;
    width: min(520px, 90vw);
    opacity: 0.12;
  }
}

/* ─── SECTION DIVIDER ─── */
.divider-wave {
  height: 60px;
  background: var(--indigo-950);
  clip-path: ellipse(55% 100% at 50% 0%);
  margin-top: -1px;
}

/* ─── HOW IT WORKS ─── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border: none;
}

.how-step {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-step::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--amber-500);
  opacity: 0.5;
}

.how-step:last-child::after {
  display: none;
}

@media (max-width: 1024px) {
  .how-step::after {
    display: none;
  }
}

.how-step:hover {
  background: var(--indigo-50);
}

.how-step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber-500);
  background: var(--amber-100);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.how-step__icon {
  width: 64px;
  height: 64px;
  background: var(--indigo-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.how-step:hover .how-step__icon {
  background: var(--indigo-600);
  transform: scale(1.1) rotate(5deg);
}

.how-step:hover .how-step__icon svg {
  stroke: var(--white);
}

.how-step h4 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.how-step p {
  font-size: 0.9rem;
}

/* ─── TOOL CARDS ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--indigo-800);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tool-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--indigo-50) 0%, rgba(255, 255, 255, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
}

.tool-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tool-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.tool-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.tool-card__uses {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tool-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--indigo-800);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.tool-card__link:hover {
  color: var(--amber-600);
  gap: 8px;
}

/* ─── ARTICLE CARDS ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.article-card__thumb {
  height: 180px;
  background: var(--indigo-900);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__thumb-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.article-card__thumb-icon {
  position: relative;
  z-index: 1;
  opacity: 0.35;
}

.article-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-card__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: var(--transition);
}

.article-card:hover .article-card__title {
  color: var(--indigo-800);
}

.article-card__excerpt {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.article-card__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-600);
  margin-top: 0.5rem;
  transition: var(--transition);
}

.article-card:hover .article-card__read {
  gap: 8px;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  background: var(--indigo-900);
  border-radius: var(--radius-xl);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.newsletter__sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  min-width: 480px;
}

.newsletter__input {
  flex: 1;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--amber-400);
  background: rgba(255, 255, 255, 0.1);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--indigo-950);
  padding: 4rem 0 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  margin-top: 1rem;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--amber-400);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  border-color: var(--indigo-400);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.footer__bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── PAGE HEADER ─── */
.page-hero {
  background: var(--indigo-950);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 60% 50%, rgba(72, 69, 168, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: left;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.page-hero__title {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.page-hero__sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 680px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* ─── TOOLS PAGE FILTERS ─── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--indigo-400);
  color: var(--indigo-800);
}

.filter-btn.active {
  background: var(--indigo-900);
  border-color: var(--indigo-900);
  color: var(--amber-400);
}

/* ─── ARTICLE / TOOL SINGLE ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 3px solid var(--amber-500);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--amber-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.sidebar-card h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

/* ─── TOOL ENGINE ─── */
.tool-engine {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.tool-engine__loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}

.tool-engine__header {
  background: var(--indigo-950);
  padding: 1.5rem 2.5rem;
}

.tool-engine__body {
  padding: 2.5rem;
  flex: 1;
}

/* MATRIX ENGINE STYLES */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.matrix-q {
  background: var(--white);
  padding: 1.5rem;
  min-height: 180px;
  cursor: copy;
  transition: var(--transition);
}

.matrix-q:hover {
  background: var(--indigo-50);
}

.matrix-q__header h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.matrix-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.matrix-list li {
  font-size: 0.85rem;
  padding: 6px 10px;
  background: var(--ghost);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.matrix-list li button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

/* RESULT STYLES */
.tool-result {
  text-align: center;
  padding: 1rem;
}

.tool-result__score {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.tool-result__score .num { font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.tool-result__score .label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tool-question {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.tool-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--ghost);
}

.tool-option:hover {
  border-color: var(--indigo-400);
  background: var(--indigo-50);
  transform: translateX(4px);
}

.tool-option.selected {
  border-color: var(--indigo-800);
  background: var(--indigo-50);
}

.tool-option__indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-option.selected .tool-option__indicator {
  background: var(--indigo-800);
  border-color: var(--indigo-800);
}

.tool-option.selected .tool-option__indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

.tool-option__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.tool-engine__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tool-result {
  text-align: center;
  padding: 3rem 2.5rem;
}

.tool-result__score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--indigo-50);
  border: 4px solid var(--indigo-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.tool-result__score-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--indigo-800);
  line-height: 1;
}

.tool-result__score-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tool-result__title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tool-result__message {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.result-tips {
  text-align: left;
  margin-top: 1.5rem;
}

.result-tip {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--ghost);
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.result-tip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  flex-shrink: 0;
  margin-top: 7px;
}

.result-tip p {
  font-size: 0.88rem;
  margin: 0;
}

/* ─── ABOUT PAGE ─── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual__card {
  background: var(--indigo-900);
  border-radius: var(--radius-xl);
  padding: 3rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(245, 166, 35, 0.12) 0%, transparent 60%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.value-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--indigo-200);
  transform: translateY(-2px);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--indigo-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.85rem;
}

/* ─── CONTACT PAGE ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--indigo-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.contact-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--ghost);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--indigo-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(72, 69, 168, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── NOTICE / ALERT ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.alert.show {
  display: flex;
}

.alert-success {
  background: #EDFAF3;
  color: #1a7a4a;
  border: 1px solid #b7eacf;
}

.alert-error {
  background: #FEF2F2;
  color: #c0392b;
  border: 1px solid #fcc9c9;
}

/* ─── UTILITY ─── */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.text-amber {
  color: var(--amber-500);
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.w-full {
  width: 100%;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

.animate-delay-4 {
  animation-delay: 0.4s;
}

.animate-delay-5 {
  animation-delay: 0.5s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {

  .tools-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 1px;
  }

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

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

  .article-sidebar {
    position: static;
  }

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

  .newsletter__form {
    min-width: unset;
  }

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

@media (max-width: 768px) {

  .tools-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .newsletter {
    padding: 2.5rem 1.5rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }

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

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile layout refinements */
@media (max-width: 768px) {

  /* How it works: keep number + icon on one row */
  .how-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num icon"
      "title title"
      "desc desc";
    column-gap: 0.75rem;
  }

  .how-step__num {
    grid-area: num;
    margin-bottom: 0.25rem;
  }

  .how-step__icon {
    grid-area: icon;
    margin-bottom: 0.25rem;
  }

  .how-step h4 {
    grid-area: title;
  }

  .how-step p {
    grid-area: desc;
  }

  /* Section headers: prevent overflow on small screens */
  .section .container>.flex {
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 0;
  }

  .section .container>.flex h2 {
    font-size: 1.55rem;
    min-width: 0;
  }

  .section .container>.flex a {
    white-space: nowrap;
  }

  /* Newsletter: stack form neatly */
  .newsletter {
    padding: 2rem 1.25rem;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter__form .btn,
  .newsletter__input {
    width: 100%;
  }
}

/* --- Article Detail --- */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-detail__hero {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.article-detail__content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-detail__content h2,
.article-detail__content h3 {
  margin-top: 2rem;
}

.article-detail__content p {
  margin-bottom: 1.2rem;
}