/*
Theme Name: AIStudies Glass
Theme URI: https://aistudies.blog
Author: Muhammad Faizan
Author URI: https://aistudies.blog
Description: LIGHT glassmorphism custom theme for AIStudies • 3D animated & SEO optimized.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: aistudies-glass
Tags: light-mode, custom-logo, custom-menu, featured-images, translation-ready, accessibility, 3d-animations
*/

/* ── DESIGN TOKENS (LIGHT GLASSMORPHISM) ─────────────────── */
:root {
  /* Backgrounds — soft white with cool undertone */
  --bg-primary: #f5f7ff;
  --bg-secondary: #eef1fb;
  --bg-deep: #e8ecf8;

  /* Glass surfaces — frosted white panels */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(203, 213, 240, 0.60);
  --glass-hover: rgba(255, 255, 255, 0.88);
  --glass-shadow: 0 8px 32px rgba(99, 130, 246, 0.10);

  /* Accents — using higher contrast colors for accessibility */
  --accent-blue: #1d4ed8;
  /* Darker blue (7.4:1 contrast) */
  --accent-cyan: #0891b2;
  --accent-purple: #4f46e5;
  --accent-green: #059669;

  /* Glow variants */
  --glow-blue: rgba(29, 78, 216, 0.18);
  --glow-cyan: rgba(8, 145, 178, 0.15);
  --glow-purple: rgba(79, 70, 229, 0.15);

  /* Text — dark on light */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  /* Slightly darker */
  --text-muted: #64748b;
  /* Darker muted text */
  --text-link: #1d4ed8;

  /* Radius & transition */
  --radius-card: 20px;
  --radius-btn: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 3D animation depth */
  --perspective: 1200px;
  --tilt-amount: 8deg;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── GLASS UTILITY ───────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
}

.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(59, 130, 246, 0.30);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.14);
  transform: translateY(-4px);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--glow-blue);
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: var(--accent-blue);
  background: #fff;
  transform: translateY(-2px);
}

.btn-ghost-purple {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-ghost-purple:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* ── SECTION LAYOUT ──────────────────────────────────────── */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: rgba(238, 241, 251, 0.60);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-intro {
  margin: 0 auto;
}

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(245, 247, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.site-nav.scrolled {
  background: rgba(245, 247, 255, 0.95);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent-blue);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  min-width: 220px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.nav-dropdown a:hover {
  background: var(--bg-secondary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ── GLOBAL PARTICLE BACKGROUND ────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  /* Remove any margin-top if present */
  margin-top: 0;
  padding-top: 0;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-bar span::before {
  content: '✓ ';
  color: var(--accent-green);
  font-weight: 900;
}

/* ── ORBS (Subtle on Light) ─────────────────────────────── */
.orb-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, transparent 70%);
  top: 30%;
  right: -80px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  bottom: 0;
  left: 30%;
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  transform-style: preserve-3d;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── TOOLS GRID ──────────────────────────────────────────── */
.tools-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.tool-card {
  padding: 40px;
  cursor: default;
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.tool-card:hover {
  border-color: var(--accent-blue);
  background: #fff;
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 28px;
  color: var(--accent-blue);
  transform: translateZ(12px);
}

.tool-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  transform: translateZ(8px);
}

.tool-subtitle {
  font-size: 14px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 16px;
  transform: translateZ(6px);
}

.tool-body {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transform: translateZ(4px);
}

.tool-link {
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.tool-link:hover {
  gap: 12px;
}

/* ── WHY LIST ────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-top: 56px;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-item {
  padding: 24px;
  display: flex;
  gap: 16px;
}

.why-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.why-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.why-text p {
  font-size: 14px;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.testi-card {
  padding: 36px;
  position: relative;
  border-top: 4px solid var(--accent-blue);
}

.stars {
  color: #f59e0b;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-quote {
  font-style: italic;
  margin-bottom: 24px;
  font-size: 15px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-blue);
}

.author-info h5 {
  font-size: 14px;
}

.author-info p {
  font-size: 12px;
}

/* ── AUDIENCE CARDS ────────────────────────────────────────── */
.audience-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 240, 0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(99, 130, 246, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.3s ease;
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

.audience-card:hover,
.audience-card:focus-within {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(59, 130, 246, 0.50);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.18),
    0 2px 8px rgba(59, 130, 246, 0.10);
  transform: perspective(800px) rotateX(-3deg) translateY(-6px);
}

.audience-card:active {
  background: rgba(235, 242, 255, 0.98);
  border-color: rgba(59, 130, 246, 0.70);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.22);
  transform: perspective(800px) rotateX(0deg) translateY(-2px);
}

.audience-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.audience-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
  line-height: 1.3;
}

.audience-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-item.open {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.06);
}

/* ── CTA CARD ────────────────────────────────────────────── */
.cta-card {
  padding: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-secondary), #fff);
}

.cta-card h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-card p {
  margin-bottom: 40px;
  font-size: 18px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  padding: 80px 0 40px;
  background: rgba(238, 241, 251, 0.90);
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
  color: var(--text-primary);
}

.footer-tagline {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── 3D SCROLL ANIMATION SYSTEM ─────────────────────────── */
.reveal,
.reveal-3d,
.reveal-3d-left,
.reveal-3d-right,
.reveal-3d-scale {
  opacity: 0;
  transform-origin: center;
  transition: var(--transition);
  will-change: transform, opacity;
}

.reveal {
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-3d {
  transform: perspective(var(--perspective)) rotateX(22deg) translateY(50px) scale(0.97);
  transition: 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d.visible {
  opacity: 1;
  transform: perspective(var(--perspective)) rotateX(0) translateY(0) scale(1);
}

.reveal-3d-left {
  transform: perspective(var(--perspective)) rotateY(-28deg) translateX(-70px);
  transition: 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d-left.visible {
  opacity: 1;
  transform: perspective(var(--perspective)) rotateY(0) translateX(0);
}

.reveal-3d-right {
  transform: perspective(var(--perspective)) rotateY(28deg) translateX(70px);
  transition: 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d-right.visible {
  opacity: 1;
  transform: perspective(var(--perspective)) rotateY(0) translateX(0);
}

.reveal-3d-scale {
  transform: perspective(var(--perspective)) translateZ(-80px) scale(0.92);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d-scale.visible {
  opacity: 1;
  transform: perspective(var(--perspective)) translateZ(0) scale(1);
}

.reveal-stagger-3d>* {
  opacity: 0;
  transform: perspective(var(--perspective)) rotateX(20deg) translateY(30px);
  transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger-3d.visible>*:nth-child(2) {
  transition-delay: 120ms;
}

.reveal-stagger-3d.visible>*:nth-child(3) {
  transition-delay: 240ms;
}

.reveal-stagger-3d.visible>*:nth-child(4) {
  transition-delay: 360ms;
}

.reveal-stagger-3d.visible>*:nth-child(5) {
  transition-delay: 480ms;
}

.reveal-stagger-3d.visible>*:nth-child(6) {
  transition-delay: 600ms;
}

.reveal-stagger-3d.visible>* {
  opacity: 1;
  transform: none;
}

.hero-animate {
  opacity: 0;
  transform: perspective(var(--perspective)) rotateX(12deg) translateY(30px);
  transition: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-animate.loaded {
  opacity: 1;
  transform: none;
}

.parallax-slow {
  transform: translateY(var(--py-slow, 0));
}

.parallax-med {
  transform: translateY(var(--py-med, 0));
}

.parallax-fast {
  transform: translateY(var(--py-fast, 0));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  z-index: 2001;
  transition: width 0.1s linear;
}

/* •• MOBILE MENU •• */
.mobile-menu {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 247, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

/* Desktop: ALWAYS hide mobile menu even if .open is added by mistake */
@media (min-width: 769px) {

  .mobile-menu,
  .mobile-menu.open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .hamburger {
    display: none !important;
  }
}

/* Mobile: hide desktop nav */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }
}

.mobile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 40px;
  cursor: pointer;
}

.mobile-links {
  list-style: none;
  text-align: center;
}

.mobile-links li {
  margin: 24px 0;
}

.mobile-links a {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

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

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

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

@media (max-width: 768px) {

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

  .hamburger {
    display: flex !important;
  }

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

  .section {
    padding: 56px 0;
  }

  .tools-grid,
  .audience-grid,
  .testi-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-card {
    padding: 40px 24px;
  }

  .reveal-3d,
  .reveal-3d-left,
  .reveal-3d-right,
  .reveal-3d-scale,
  .reveal-stagger-3d>* {
    transform: translateY(24px) !important;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
  }

  .reveal-3d.visible,
  .reveal-3d-left.visible,
  .reveal-3d-right.visible,
  .reveal-3d-scale.visible,
  .reveal-stagger-3d.visible>* {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  #particle-canvas {
    display: none;
  }
}

@media (min-width: 769px) {
  #mobileMenu {
    display: none !important;
    visibility: hidden !important;
  }

  .hamburger {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .reveal,
  .reveal-3d,
  .reveal-3d-left,
  .reveal-3d-right,
  .reveal-3d-scale,
  .hero-animate {
    transform: none !important;
    opacity: 1 !important;
    transition: opacity 0.4s ease !important;
  }
}

/* ── TOOLS HOVER DROPDOWN ─────────────────────────────── */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 240, 0.70);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
  min-width: 280px;
  list-style: none;
  z-index: 1100;
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Small arrow on top of dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(203, 213, 240, 0.70);
  border-top: 1px solid rgba(203, 213, 240, 0.70);
  rotate: 45deg;
}

/* Show on hover */
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
  color: #0f172a;
  text-decoration: none;
}

.nav-dropdown li a:hover {
  background: rgba(59, 130, 246, 0.07);
}

.drop-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-dropdown strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.nav-dropdown small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Hide dropdown on mobile */
@media (max-width: 768px) {
  .nav-dropdown {
    display: none !important;
  }

  .nav-item-dropdown {
    position: static;
  }
}

/* ════════════════════════════════════════════════════════
   PAGE & POST LAYOUT
   ════════════════════════════════════════════════════════ */

.page-wrapper {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.page-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 12px;
  line-height: 1.2;
}

.page-content-card {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 48px 52px;
}

/* ════════════════════════════════════════════════════════
   ENTRY CONTENT TYPOGRAPHY
   (styles all WordPress page/post content)
   ════════════════════════════════════════════════════════ */

.entry-content {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.entry-content h1 {
  font-size: 32px;
  font-weight: 700;
}

.entry-content h2 {
  font-size: 26px;
  font-weight: 700;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 600;
}

.entry-content h4 {
  font-size: 17px;
  font-weight: 600;
}

.entry-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-content ul li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.entry-content ol li {
  list-style: decimal;
  color: var(--text-secondary);
}

.entry-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.entry-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.entry-content a:hover {
  color: var(--accent-cyan);
}

.entry-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.entry-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.entry-content table th {
  background: rgba(59, 130, 246, 0.08);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid rgba(59, 130, 246, 0.20);
}

.entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.entry-content table tr:last-child td {
  border-bottom: none;
}

.entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: rgba(59, 130, 246, 0.07);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-blue);
}

.entry-content pre {
  background: rgba(15, 23, 42, 0.06);
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
}

/* First h1 or h2 inside content — remove top margin */
.entry-content>h1:first-child,
.entry-content>h2:first-child {
  margin-top: 0;
}

/* ════════════════════════════════════════════════════════
   POST-SPECIFIC ELEMENTS
   ════════════════════════════════════════════════════════ */

.post-category-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-decoration: none;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.post-meta-date,
.post-meta-read {
  font-size: 13px;
  color: var(--text-muted);
}

.post-meta-date::before {
  content: '• ';
}

.post-meta-read::before {
  content: '• ';
}

.post-featured-image {
  max-width: 800px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

.post-tools-cta {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 32px 40px;
  text-align: center;
}

.post-tools-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.post-tools-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.author-bio-card {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 28px 36px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.author-bio-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-bio-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.author-bio-text span {
  display: block;
  font-size: 12px;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.author-bio-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive for page/post content ── */
@media (max-width: 768px) {
  .page-content-card {
    padding: 28px 24px;
  }

  .post-tools-cta {
    padding: 24px 20px;
  }

  .author-bio-card {
    padding: 24px 20px;
    flex-direction: column;
  }

  .page-wrapper {
    padding: 100px 0 60px;
  }

  .post-meta-row {
    gap: 8px;
  }
}

/* ════════════════════════════════════════════
   TOOLS PAGE LAYOUT
   ════════════════════════════════════════════ */

.tools-page-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 56px;
}

.tool-page-card {
  padding: 44px 48px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.tool-page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12);
}

.tool-page-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.tool-page-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--glow-blue);
}

.tool-page-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.20);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tool-page-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.tool-page-tagline {
  font-size: 15px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin: 0;
}

.tool-page-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 760px;
}

.tool-page-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.tool-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  flex-shrink: 0;
}

.tool-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tool-page-tags span {
  padding: 5px 12px;
  background: rgba(6, 182, 212, 0.07);
  border: 1px solid rgba(6, 182, 212, 0.20);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.tool-page-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tool-learn-more {
  font-size: 14px;
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.tool-learn-more:hover {
  color: var(--accent-cyan);
}

/* Compare Section */
.tools-compare-section {
  margin-top: 80px;
}

.tools-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.compare-card {
  padding: 32px 28px;
  transition: var(--transition);
}

.compare-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.30);
}

.compare-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.compare-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.compare-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-card ul li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.compare-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* Nav Dropdown Refinement */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(203, 213, 240, 0.70);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
  min-width: 290px;
  list-style: none;
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.97);
  border-left: 1px solid rgba(203, 213, 240, 0.70);
  border-top: 1px solid rgba(203, 213, 240, 0.70);
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
  color: #0f172a;
  text-decoration: none;
}

.nav-dropdown li a:hover {
  background: rgba(59, 130, 246, 0.07);
}

.drop-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-dropdown strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.nav-dropdown small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .nav-dropdown {
    display: none !important;
  }

  .tools-page-grid {
    gap: 24px;
  }

  .tool-page-card {
    padding: 28px 24px;
  }

  .tool-page-header {
    flex-direction: column;
    gap: 16px;
  }

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

@media (max-width: 1024px) {
  .tools-compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── TOOL CARDS COMPLETE RESTYLE ─────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}

.tool-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
  cursor: default;
}

.tool-card:hover {
  transform: perspective(900px) rotateX(-3deg) translateY(-8px);
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.tool-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}

.tool-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tool-subtitle {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.5;
}

.tool-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 0;
}

.tool-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.tool-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.7;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.tool-card-footer .btn-primary {
  font-size: 13px;
  padding: 10px 18px;
  white-space: nowrap;
}

.tool-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}

.tool-link:hover {
  color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 24px 20px;
  }
}

/* ── TOOL CARDS RESTYLE ───────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}

.tool-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  cursor: default;
}

.tool-card:hover {
  transform: perspective(900px) rotateX(-3deg) translateY(-8px);
  border-color: rgba(59, 130, 246, 0.40);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tool-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}

.tool-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tool-subtitle {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.5;
}

.tool-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tool-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.tool-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0.7;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.tool-card-footer .btn-primary {
  font-size: 13px;
  padding: 10px 18px;
  white-space: nowrap;
}

.tool-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}

.tool-link:hover {
  color: var(--accent-blue);
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 24px 20px;
  }
}

/* AI Study Plan Tool */
.feature-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .feature-grid-2col {
    grid-template-columns: 1fr;
  }
}

#study-plan-tool iframe {
  min-height: 900px;
  width: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

@media (max-width: 600px) {
  #study-plan-tool iframe {
    min-height: 1100px;
  }
}

/* CareerPath Tool Embed — Precise Clipping Technique */
#careerpath-tool-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  margin: 24px 0;
  height: 1035px;
}

#careerpath-iframe {
  display: block;
  width: calc(100% + 20px);
  height: 1250px;
  border: none;
  margin-top: -155px;
  margin-right: -20px;
}

@media (max-width: 1024px) {
  #careerpath-tool-wrapper {
    height: 1035px;
  }

  #careerpath-iframe {
    height: 1250px;
    margin-top: -155px;
  }
}

@media (max-width: 768px) {
  #careerpath-tool-wrapper {
    height: 1960px;
  }

  #careerpath-iframe {
    height: 2200px;
    margin-top: -140px;
  }
}

@media (max-width: 480px) {
  #careerpath-tool-wrapper {
    height: 2135px;
  }

  #careerpath-iframe {
    height: 2400px;
    margin-top: -165px;
  }
}

/* MOBILE FIX - Force show all content */
@media (max-width: 768px) {

  .reveal-3d,
  .reveal-3d-left,
  .reveal-3d-right,
  .reveal-3d-scale,
  .reveal-stagger-3d>* {
    transform: translateY(0) !important;
    opacity: 1 !important;
    transition: none !important;
  }
}