/* ============================================
   GAMEFINDPRO.COM — Global Stylesheet (v2)
   Warm light theme with organic, magazine-style layout
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary: #1A7A7A;
  --color-primary-light: #2A9D9D;
  --color-primary-dark: #125C5C;
  --color-accent: #D9794A;
  --color-accent-light: #F0B392;
  --color-bg: #F7F4F0;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-surface: #F0ECE6;
  --color-border: #E5DFD7;
  --color-text: #2D2A24;
  --color-text-secondary: #7A746D;
  --color-text-muted: #B0A99F;
  --color-success: #5EA85E;
  --color-warning: #D9A845;
  --color-danger: #C95A5A;
  --color-white: #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(45, 42, 36, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 42, 36, 0.1);
  --shadow-lg: 0 8px 32px rgba(45, 42, 36, 0.12);
  --shadow-card: 0 2px 12px rgba(45, 42, 36, 0.06);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.6s ease;

  --max-width: 1200px;
  --header-height: 64px;
}

/* --- Light / Dark mode toggle vars --- */
[data-theme="light"] {
  --color-primary: #1A7A7A;
  --color-primary-light: #2A9D9D;
  --color-primary-dark: #125C5C;
  --color-accent: #D9794A;
  --color-bg: #F7F4F0;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-surface: #F0ECE6;
  --color-border: #E5DFD7;
  --color-text: #2D2A24;
  --color-text-secondary: #7A746D;
  --color-text-muted: #B0A99F;
}

/* Default is already light; dark theme override */
html:not([data-theme="light"]) {
  --color-primary: #4DB8B8;
  --color-primary-light: #6ECECE;
  --color-primary-dark: #2D9A9A;
  --color-accent: #E8926A;
  --color-accent-light: #B8734F;
  --color-bg: #141418;
  --color-bg-elevated: #1E1E24;
  --color-bg-card: #1A1A20;
  --color-surface: #26262E;
  --color-border: #333340;
  --color-text: #E8E6E0;
  --color-text-secondary: #9C9A92;
  --color-text-muted: #6B6963;
  --color-success: #6BBF6B;
  --color-warning: #E0B85E;
  --color-danger: #D97A7A;
  --color-white: #FFFFFF;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  color: var(--color-accent);
}

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.nav-logo img {
    height: 32px;
    width: 32px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: all var(--transition-normal);
}

html:not([data-theme="light"]) .site-header {
  background: rgba(20, 20, 24, 0.9);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — left side (reversed from original) */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 1;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

/* Navigation — right side (reversed from original) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  order: 3;
}

.header-nav a {
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-primary);
  background: rgba(26, 122, 122, 0.08);
}

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

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.has-active {
  color: var(--color-primary);
  background: rgba(26, 122, 122, 0.08);
}

/* Desktop-only: dropdown; Mobile-only: direct links */
.nav-mobile-only { display: none; }
.nav-desktop-only { display: block; }

.nav-dropdown-trigger .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(26, 122, 122, 0.08);
  color: var(--color-primary);
}

/* Theme toggle & Mobile toggle */
.theme-toggle {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  margin: 0 8px;
}

.theme-toggle:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  order: 4;
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION (Home Page)
   ============================================ */
.hero {
  padding: 100px 0 80px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(217, 121, 74, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-box {
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-visual-box .code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.hero-visual-box .code-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-visual-box .code-line .dot.green { background: var(--color-success); }
.hero-visual-box .code-line .dot.teal { background: var(--color-primary); }
.hero-visual-box .code-line .dot.amber { background: var(--color-warning); }

.hero-visual-box .code-line .hl {
  color: var(--color-primary);
  font-weight: 600;
}

.hero-visual-box .code-line .str {
  color: var(--color-accent);
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(26, 122, 122, 0.08);
  border: 1px solid rgba(26, 122, 122, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 32px;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 3px 12px rgba(26, 122, 122, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(26, 122, 122, 0.35);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 4px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 600px;
}

/* ============================================
   TOOL CARDS GRID (Home Page)
   ============================================ */
.tools-section {
  padding: 80px 0;
}

.tools-section .section-header {
  text-align: center;
}

.tools-section .section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.tools-section .section-header p {
  margin-left: auto;
  margin-right: auto;
}

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

.tool-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.tool-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 0 2px 2px 0;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.tool-card-icon.purple { background: rgba(26, 122, 122, 0.1); color: var(--color-primary); }
.tool-card-icon.teal { background: rgba(26, 122, 122, 0.1); color: var(--color-primary); }
.tool-card-icon.green { background: rgba(94, 168, 94, 0.12); color: var(--color-success); }
.tool-card-icon.amber { background: rgba(217, 168, 69, 0.12); color: var(--color-warning); }
.tool-card-icon.rose { background: rgba(201, 90, 90, 0.12); color: var(--color-danger); }
.tool-card-icon.blue { background: rgba(26, 122, 122, 0.1); color: var(--color-primary-light); }

.tool-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.tool-card p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}

.tool-card .card-arrow {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

.tool-card:hover .card-arrow {
  color: var(--color-accent);
  gap: 8px;
}

/* Featured card (first tool, spans full width) */
.tool-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg);
}

.tool-card.featured::after {
  display: none;
}

.tool-card.featured .tool-card-icon {
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  margin-bottom: 0;
}

.tool-card.featured .tool-card-content {
  flex: 1;
}

.tool-card.featured h3 {
  font-size: 1.2rem;
}

.tool-card.featured p {
  font-size: 0.9rem;
}

/* ============================================
   SITE INTRO SECTION (Why GAMEFINDPRO)
   ============================================ */
.site-intro {
  padding: 80px 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.site-intro .section-header {
  text-align: center;
}

.site-intro .section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.site-intro .section-header p {
  margin-left: auto;
  margin-right: auto;
}

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

.intro-card {
  text-align: left;
  padding: 28px 24px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.intro-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.intro-card .intro-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: rgba(217, 121, 74, 0.1);
  color: var(--color-accent);
}

.intro-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.intro-card p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============================================
   TOOL PAGE LAYOUT
   ============================================ */
.tool-page {
  padding: 40px 0 80px;
}

.tool-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-page-header .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  background: rgba(26, 122, 122, 0.1);
  color: var(--color-primary);
}

.tool-page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.tool-page-header p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Tool workspace */
.tool-workspace {
  display: grid;
  gap: 24px;
}

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

/* Textarea & Input styling */
.tool-textarea,
.tool-input {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.tool-textarea:focus,
.tool-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}

.tool-textarea {
  min-height: 250px;
}

/* Tool panels */
.tool-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tool-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.tool-panel-header h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.tool-panel-body {
  padding: 20px;
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  min-width: 80px;
  flex: 1;
}

.stat-item .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.stat-item .stat-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Tool actions */
.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-actions-center {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Tool bottom sections */
.tool-bottom {
  padding: 60px 0 0;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.tool-bottom .section-header {
  margin-bottom: 36px;
}

/* ============================================
   MINI TOOL DEMO WIDGET (Home Page)
   ============================================ */
.demo-section {
  padding: 80px 0;
  position: relative;
}

.demo-section .section-header {
  text-align: center;
}

.demo-section .section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.demo-section .section-header p {
  margin-left: auto;
  margin-right: auto;
}

.demo-widget {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.demo-widget-header .demo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.demo-widget-header .demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.demo-widget-header .demo-badge {
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(26, 122, 122, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-widget-body {
  padding: 24px;
}

.demo-widget-body textarea {
  width: 100%;
  min-height: 120px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 16px;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.demo-widget-body textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.demo-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.demo-stat .demo-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.demo-stat .demo-stat-lbl {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.demo-widget-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-widget-footer .demo-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ============================================
   USE CASES SECTION (Home Page)
   ============================================ */
.use-cases-section {
  padding: 80px 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.use-cases-section .section-header {
  text-align: center;
}

.use-cases-section .section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.use-cases-section .section-header p {
  margin-left: auto;
  margin-right: auto;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 3px 3px 0 0;
}

/* Color-coded top bars on hover */
.use-case-card:nth-child(1)::before { background: var(--color-primary); }
.use-case-card:nth-child(2)::before { background: var(--color-accent); }
.use-case-card:nth-child(3)::before { background: var(--color-success); }
.use-case-card:nth-child(4)::before { background: var(--color-warning); }
.use-case-card:nth-child(5)::before { background: var(--color-danger); }
.use-case-card:nth-child(6)::before { background: var(--color-primary-light); }

.use-case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-card .uc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.use-case-card p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.use-case-card .uc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.use-case-card .uc-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-weight: 500;
  border: 1px solid var(--color-border);
}

/* ============================================
   FAQ SECTION (Home Page)
   ============================================ */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.faq-section .section-header {
  text-align: center;
}

.faq-section .section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.faq-section .section-header p {
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.faq-item:hover {
  border-color: var(--color-primary-light);
}

.faq-question {
  width: 100%;
  padding: 16px 22px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question .faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--color-text-muted);
}

.faq-item.open .faq-question .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

.faq-answer-inner a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   CTA SECTION (Home Page)
   ============================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(26, 122, 122, 0.06), transparent);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.cta-section p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  position: relative;
  z-index: 1;
}

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

.footer-brand h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-page {
  padding: 40px 0 80px;
}

.blog-page .page-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.blog-page .page-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
}

.blog-search {
  max-width: 460px;
  margin: 0 auto 40px;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}

.blog-search .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Article grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.blog-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-top {
  padding: 22px 22px 0;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  background: rgba(26, 122, 122, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0;
}

.blog-card-excerpt {
  padding: 10px 22px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding: 12px 22px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.blog-card-footer .read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.78rem;
}

.blog-card:hover .read-more {
  color: var(--color-accent);
}

/* Article meta */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.article-meta-item svg {
  width: 14px;
  height: 14px;
}

/* Article content (blog post) */
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 14px;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--color-primary);
}

.article-content p {
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.article-content ul,
.article-content ol {
  color: var(--color-text-secondary);
  margin: 10px 0 18px 20px;
  line-height: 1.9;
  font-size: 0.92rem;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content code {
  background: rgba(26, 122, 122, 0.08);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.article-content pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.article-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 12px 18px;
  margin: 18px 0;
  background: rgba(26, 122, 122, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* No results */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}

.blog-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.blog-empty p {
  font-size: 0.92rem;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-pagination button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(26, 122, 122, 0.08);
}

.blog-pagination button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.blog-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================
   CONTENT PAGES (About, Contact, etc.)
   ============================================ */
.content-page {
  padding: 40px 0 80px;
}

.content-page .page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  text-align: center;
}

.content-page .page-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
}

.content-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--color-primary);
}

.content-body p {
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.content-body ul {
  color: var(--color-text-secondary);
  margin: 10px 0 18px 20px;
  line-height: 1.85;
  font-size: 0.92rem;
}

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

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   TOOL BOTTOM SECTIONS (Guide, FAQ, Article)
   ============================================ */

/* --- Usage Guide (step-by-step) --- */
.guide-steps {
  max-width: 800px;
  margin: 0 auto;
  counter-reset: step;
}

.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.guide-step-num {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(26, 122, 122, 0.25);
}

.guide-step-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.guide-step-body p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.guide-step-body code {
  background: rgba(26, 122, 122, 0.08);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* --- Tool Tips Box --- */
.tool-tips {
  max-width: 800px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tip-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.tip-card .tip-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tip-card h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tip-card p {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* --- Tool FAQ (compact accordion) --- */
.tool-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.tool-faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.tool-faq-q {
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-faq-q svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.tool-faq-item.open .tool-faq-q svg {
  transform: rotate(180deg);
}

.tool-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.tool-faq-item.open .tool-faq-a {
  max-height: 400px;
}

.tool-faq-a-inner {
  padding: 0 20px 16px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* --- Article Section --- */
.tool-article {
  max-width: 800px;
  margin: 0 auto;
}

.tool-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--color-text);
}

.tool-article p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.85;
  margin-bottom: 12px;
}

.tool-article ul {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 8px 0 14px 20px;
}

.tool-article li {
  margin-bottom: 6px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 14px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 240px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner p a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0 6px;
  font-size: 0.8rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb .breadcrumb-sep {
  color: var(--color-border);
  user-select: none;
}

.breadcrumb .breadcrumb-current {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-page {
  padding: 100px 0 100px;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.error-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.error-page .error-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-page .error-search {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.error-page .error-search input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.error-page .error-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 122, 0.1);
}

/* ============================================
   RESPONSIVE (min-width 1200px + )
   ============================================ */

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

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

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

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

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

  .tool-card.featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tool-card.featured .tool-card-icon {
    margin-bottom: 0;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .tools-section,
  .site-intro,
  .demo-section,
  .use-cases-section,
  .faq-section,
  .cta-section {
    padding: 48px 0;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

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

  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

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

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

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

  .demo-widget-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Header tightening */
  .site-header {
    --header-height: 56px;
  }

  .header-logo span {
    font-size: 1.1rem;
  }

  .header-logo img,
  .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .header-nav a,
  .nav-dropdown-trigger {
    font-size: 0.88rem;
    padding: 10px 14px;
  }

  /* Mobile menu */
  .mobile-menu-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

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

  .header-nav a {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .site-header {
    position: relative;
  }

  /* Tool page */
  .tool-page-header h1 {
    font-size: 1.4rem;
  }

  .tool-page {
    padding: 24px 0 60px;
  }

  .tool-textarea {
    min-height: 200px;
    font-size: 0.82rem;
    padding: 12px;
  }

  .content-page .page-title {
    font-size: 1.4rem;
  }

  .content-page {
    padding: 32px 0 60px;
  }

  .content-body h2 {
    font-size: 1.15rem;
  }

  .guide-step {
    gap: 14px;
  }

  .guide-step-num {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

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

  .article-content h2 {
    font-size: 1.15rem;
  }

  .article-content p,
  .article-content ul {
    font-size: 0.88rem;
  }

  .blog-page .page-title {
    font-size: 1.4rem;
  }

  .blog-page {
    padding: 24px 0 60px;
  }

  .blog-search {
    margin: 0 auto 28px;
  }

  .blog-card-top {
    padding: 18px 18px 0;
  }

  .blog-card-excerpt {
    padding: 10px 18px;
  }

  .blog-card-footer {
    padding: 10px 18px;
  }

  /* Cookie banner on mobile */
  .cookie-banner .container {
    flex-direction: column;
    gap: 12px;
  }

  .cookie-banner .cookie-actions {
    width: 100%;
  }

  .cookie-banner .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }

  /* Error page */
  .error-code {
    font-size: 4rem;
  }

  .error-page {
    padding: 60px 0 80px;
  }

  /* Container */
  .container {
    padding: 0 16px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .tool-page-header h1 {
    font-size: 1.25rem;
  }

  .tool-page {
    padding: 16px 0 48px;
  }

  .demo-stat .demo-stat-val {
    font-size: 1.1rem;
  }

  .blog-pagination button {
    min-width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .stat-item {
    padding: 10px 12px;
    min-width: 70px;
  }

  .stat-item .stat-value {
    font-size: 1rem;
  }

  .stats-bar {
    gap: 8px;
  }
}