/* ============================================================
   CopyRefine - Premium Design System
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* --- CSS Variables ------------------------------------------ */
:root {
  --primary: #1e3a5f;
  --primary-dark: #142a47;
  --primary-light: #2c5a8c;
  --accent: #d4af37;
  --accent-light: #e8c95a;
  --accent-dark: #b8942e;
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-dark: #0f1a2e;
  --text: #1a2332;
  --text-secondary: #5a6a7e;
  --text-light: #8a9ab0;
  --border: #e8ecf2;
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 8px 30px rgba(30, 58, 95, 0.10);
  --shadow-lg: 0 20px 60px rgba(30, 58, 95, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* --- Reset & Base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--primary-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--primary); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
img { max-width: 100%; height: auto; }

/* --- Typography ---------------------------------------------- */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Header ------------------------------------------------- */
.site-header {
  background: rgba(30, 58, 95, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  transition: var(--transition);
}
.logo:hover { color: var(--accent); transform: scale(1.02); }
.logo-icon { flex-shrink: 0; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

.mobile-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4); color: #fff; }
.btn-secondary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35); }
.btn-secondary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45); color: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); color: #fff; }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); color: var(--primary); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* --- Hero --------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 24px 100px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 35%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%), radial-gradient(circle at 75% 30%, rgba(255,255,255,0.03) 0%, transparent 40%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.85;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat-label { font-size: 0.85rem; opacity: 0.6; color: #fff; display: block; margin-top: 4px; }

.hero-float { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.hero-float-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%); top: -100px; right: -80px; animation: floatAnim 8s ease-in-out infinite; }
.hero-float-2 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); bottom: -50px; left: -60px; animation: floatAnim 10s ease-in-out infinite reverse; }
@keyframes floatAnim { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, -20px); } }

/* --- Sections ------------------------------------------------ */
.section { padding: 80px 0; }
.section-dark { background: linear-gradient(135deg, var(--bg-dark), var(--primary)); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-alt { background: #fff; }

/* --- Cards Grid --------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; padding: 20px 0; }
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.06)); color: var(--accent); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card h3 a { color: var(--primary); }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.6; margin-bottom: 20px; }
.card .btn { margin-top: auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 32px 24px; transition: var(--transition); }
.feature-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.feature-card-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; }

/* --- Tool Pages ---------------------------------------------- */
.tool-hero { background: linear-gradient(135deg, var(--bg-dark), var(--primary)); color: #fff; text-align: center; padding: 80px 24px 60px; }
.tool-hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 12px; }
.tool-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.tool-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; max-width: 1140px; margin: 20px auto 60px; padding: 0 24px; align-items: start; }
.tool-main { min-width: 0; }
.tool-sidebar { position: sticky; top: 88px; }

.tool-box { background: var(--bg-card); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }
.tool-box h2 { font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary); font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font-sans); background: var(--bg); transition: var(--transition); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-box .btn-primary { width: 100%; }

.tool-result { display: none; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius-md); padding: 28px; color: #fff; }
.tool-result h3 { color: var(--accent); font-size: 1.15rem; margin-bottom: 16px; }
.tool-result h4 { color: #fff; font-size: 1rem; margin: 20px 0 10px; }
.tool-result p { color: rgba(255,255,255,0.9); margin-bottom: 8px; }
.tool-result ul { color: #fff; padding-left: 20px; margin: 8px 0; }
.tool-result li { margin-bottom: 6px; }
.tool-result table { width: 100%; border-collapse: collapse; }
.tool-result th, .tool-result td { border: 1px solid rgba(255,255,255,0.2); padding: 8px 12px; text-align: left; font-size: 0.85rem; }
.tool-result th { color: var(--accent); font-weight: 600; }
.tool-result .btn { margin-top: 16px; }

.result-level { font-size: 1.6rem; font-weight: 700; margin: 12px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat-box { background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.stat-box .stat-value { font-size: 1.3rem; font-weight: 700; display: block; }
.stat-box .stat-label { font-size: 0.75rem; opacity: 0.75; display: block; margin-top: 2px; }
.level-green { color: #2ecc71; }
.level-yellow { color: #f1c40f; }
.level-orange { color: #e67e22; }
.level-red { color: #e74c3c; }

/* --- Sidebar ------------------------------------------------- */
.sidebar-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.sidebar-card h3 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: flex; align-items: center; gap: 8px; }
.sidebar-card ol, .sidebar-card ul { padding-left: 20px; }
.sidebar-card li { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* --- FAQ Page ------------------------------------------------ */
.faq-categories { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0; justify-content: center; }
.faq-cat-btn { padding: 10px 22px; border-radius: 50px; border: 2px solid var(--border); background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition); font-family: var(--font-sans); }
.faq-cat-btn:hover, .faq-cat-btn.active { border-color: var(--accent); background: rgba(212, 175, 55, 0.08); color: var(--accent-dark); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--accent); }
.faq-question { padding: 18px 24px; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.95rem; background: none; border: none; width: 100%; text-align: left; font-family: var(--font-sans); transition: var(--transition); }
.faq-question:hover { color: var(--accent); }
.faq-question::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--accent); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '-'; }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.open .faq-answer { padding: 0 24px 18px; max-height: 500px; }
.faq-answer p { font-size: 0.92rem; color: var(--text-secondary); margin: 0; }

/* --- Tool Demo Buttons --------------------------------------- */
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.demo-btn { font-size: 0.82rem; padding: 7px 16px; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--accent-dark); border-radius: 50px; cursor: pointer; font-weight: 500; transition: var(--transition); font-family: var(--font-sans); }
.demo-btn:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }

/* --- Highlight filler words ---------------------------------- */
.highlight-filler { background: rgba(255, 193, 7, 0.25); color: #92400e; padding: 2px 4px; border-radius: 3px; border-bottom: 2px solid #f59e0b; cursor: help; }
.word-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.word-tag { background: rgba(255, 193, 7, 0.15); color: #92400e; padding: 4px 12px; border-radius: 14px; font-size: 0.85rem; border: 1px solid rgba(255, 193, 7, 0.3); }

.tone-badge { display: inline-block; padding: 8px 22px; border-radius: 50px; font-size: 1.05rem; font-weight: 700; margin: 10px 0; }
.tone-formal { background: var(--primary); color: #fff; }
.tone-friendly { background: var(--accent); color: var(--primary-dark); }
.tone-neutral { background: #6c757d; color: #fff; }
.tone-mixed { background: linear-gradient(135deg, var(--primary) 50%, var(--accent) 50%); color: #fff; }

/* --- Blog --------------------------------------------------- */
.blog-header { text-align: center; padding: 80px 24px 60px; background: linear-gradient(135deg, var(--bg-dark), var(--primary)); color: #fff; }
.blog-header h1 { color: #fff; font-size: 2.8rem; margin-bottom: 12px; }
.blog-header p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 50px 0; }
.blog-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.4s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--primary); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; display: flex; gap: 12px; }
.blog-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.read-more { font-weight: 600; font-size: 0.9rem; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; flex-wrap: wrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-link { padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); flex-shrink: 0; }
.page-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.blog-post-full { max-width: 780px; margin: 0 auto; padding: 40px 20px; }
.blog-post-full h1 { font-size: 2rem; line-height: 1.3; }
.post-body { margin-top: 30px; }
.post-body h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.post-body h3 { font-size: 1.1rem; margin-top: 1.8rem; margin-bottom: 8px; }
.post-body p { line-height: 1.8; margin-bottom: 1rem; font-size: 1rem; }
.post-body ul, .post-body ol { margin: 1rem 0; padding-left: 24px; }
.post-body li { margin-bottom: 0.4rem; line-height: 1.7; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; white-space: nowrap; }
.post-body th { background: var(--primary); color: #fff; font-weight: 600; }
.post-body tr:nth-child(even) { background: var(--bg); }

/* --- Page Content -------------------------------------------- */
.page-content { max-width: 780px; margin: 0 auto; padding: 60px 20px; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 24px; }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 24px; }
.page-content li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content th, .page-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.page-content th { background: var(--primary); color: #fff; }

.contact-card { background: linear-gradient(135deg, rgba(30, 58, 95, 0.04), rgba(212, 175, 55, 0.04)); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; margin: 24px 0; }

/* --- Footer ------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.6); padding: 60px 0 0; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: var(--accent); font-size: 0.95rem; margin-bottom: 12px; font-weight: 700; letter-spacing: 0.5px; }
.footer-col p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin: 0; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-share { margin-top: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; background: rgba(255,255,255,0.08); color: #fff; transition: var(--transition); }
.share-btn:hover { background: var(--accent); color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.35); }

/* --- Cookie Consent ----------------------------------------- */
.cookie-consent { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 800px; width: calc(100% - 40px); background: rgba(30, 58, 95, 0.97); backdrop-filter: blur(12px); color: #fff; padding: 16px 20px; border-radius: var(--radius-md); z-index: 999; box-shadow: var(--shadow-lg); border: 1px solid rgba(212, 175, 55, 0.15); }
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-content p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons .btn { padding: 8px 20px; font-size: 0.83rem; border-radius: 50px; }
.cookie-buttons .btn-outline { border-color: rgba(255,255,255,0.3); }

/* --- Back to top -------------------------------------------- */
.back-to-top { position: fixed; bottom: 80px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 90; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }

/* --- Responsive --------------------------------------------- */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary); padding: 20px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-lg); }
  .hero { padding: 80px 20px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .page-link { padding: 8px 14px; font-size: 0.83rem; }
  .blog-header h1 { font-size: 2rem; }
  .blog-post-full h1 { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cookie-consent { bottom: 12px; }
  .cookie-content { flex-direction: column; text-align: center; }
  .page-content h1 { font-size: 1.7rem; }
  .tool-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}
