﻿:root {
  --ink: #0A0908;
  --cream: #F8F6F1;
  --surface: #FFFFFF;
  --border: #E8E2D9;
  --ember: #E8612A;
  --ember-light: #F59E6B;
  --ember-bg: #FBE9DF;
  --ember-glow: rgba(232,97,42,0.18);
  --muted: #6B6258;
  --muted2: #A09890;
  --sand: #E0D8CE;
  --green: #16A34A;
  --green-bg: #DCFCE7;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  overflow-x: hidden;
}

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
nav {
  position: fixed; top:0; left:0; right:0; z-index:500;
  display: flex; align-items:center; justify-content:space-between;
  padding: 0 44px; height:60px;
  transition: background .4s, border-color .4s;
}
nav.bg { background:rgba(10,9,8,.9); backdrop-filter:blur(20px); border-bottom:1px solid rgba(255,255,255,.07); }
.nav-logo { text-decoration:none; font-size:19px; font-weight:800; color:#fff; letter-spacing:-.5px; }
.nav-logo em { color:var(--ember); font-style:normal; }
.nav-links { display:flex; gap:28px; }
.nav-link { font-size:13px; color:rgba(255,255,255,.4); font-weight:600; text-decoration:none; transition:color .2s; }
.nav-link:hover { color:#fff; }
.nav-ctas { display:flex; gap:8px; align-items:center; }
.n-ghost { font-size:12px; font-weight:700; color:rgba(255,255,255,.5); background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); padding:7px 16px; border-radius:7px; font-family:'Bricolage Grotesque',sans-serif; transition:all .2s; }
.n-ghost:hover { color:#fff; border-color:rgba(255,255,255,.3); }
.n-main { font-size:12px; font-weight:800; color:#fff; background:var(--ember); border:none; padding:8px 18px; border-radius:7px; font-family:'Bricolage Grotesque',sans-serif; transition:background .2s; }
.n-main:hover { background:#d4531e; }

/* ═══════════════════════════════════
   HERO - Zoom Effect
═══════════════════════════════════ */
.zoom-wrapper {
  position: relative;
  height: 220vh;
  background: var(--ink);
}
.zoom-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.zoom-device {
  position: relative; z-index: 1;
  width: 100vw; height: 100vh;
  background: var(--ink);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, border-radius, box-shadow;
}
.device-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 44px;
  background: rgba(20,18,16,.95);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px;
  opacity: 0; transform: translateY(-100%);
  transition: opacity .4s ease, transform .4s ease;
  z-index: 10; backdrop-filter: blur(10px);
}
.device-chrome.show { opacity: 1; transform: translateY(0); }
.d-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.d-url {
  flex: 1; max-width: 260px; margin: 0 auto;
  background: rgba(255,255,255,.06); border-radius: 6px;
  padding: 5px 14px; font-size: 11px; color: rgba(255,255,255,.25);
  text-align: center; font-family: 'DM Sans', sans-serif;
}

/* Hero Content */
.device-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 0 56px;
}
.device-glow {
  position: absolute; bottom: -220px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 650px;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,97,42,.2) 0%, rgba(232,97,42,.05) 45%, transparent 70%);
  pointer-events: none;
}
.device-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none;
}
.device-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(10,9,8,.85) 100%);
  pointer-events: none;
}
.device-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: rgba(232,97,42,.15);
  top: -200px; right: -200px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: rgba(232,97,42,.1);
  bottom: -100px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 16px 5px 6px;
  background:rgba(232,97,42,.12); border:1px solid rgba(232,97,42,.3);
  border-radius:100px; margin-bottom:28px;
  animation: fadeUp .9s ease both;
  position: relative; z-index: 1;
}
.badge-dot { width:22px; height:22px; border-radius:50%; background:var(--ember); display:flex; align-items:center; justify-content:center; font-size:10px; }
.badge-text { font-size:11px; font-weight:700; color:var(--ember-light); letter-spacing:.5px; }

.device-h1 {
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 900; line-height: 1.04; letter-spacing: -3px;
  position: relative; z-index: 1;
  animation: fadeUp .9s .1s ease both;
}
.device-h1 .l1 { display: block; color: rgba(255,255,255,.2); }
.device-h1 .l2 { display: block; color: rgba(255,255,255,.5); }
.device-h1 .l3 { display: block; color: #fff; }
.device-h1 .l3 em { font-style: italic; font-family: 'Instrument Serif', serif; color: var(--ember); font-size: .92em; letter-spacing: -2px; }

.device-sub {
  font-size: 17px; color: rgba(255,255,255,.48);
  max-width: 520px; line-height: 1.7; font-weight: 400;
  margin-top: 28px;
  position: relative; z-index: 1;
  animation: fadeUp .9s .2s ease both;
}
.device-sub strong { color: rgba(255,255,255,.7); font-weight: 600; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   ARTICLE CONTENT
═══════════════════════════════════ */
.article-wrapper {
  background: var(--cream);
  position: relative;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 44px 120px;
}

/* Meta info */
.article-meta {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.article-category {
  display: inline-flex;
  font-size: 11px; font-weight: 700;
  color: var(--ember);
  background: var(--ember-bg);
  padding: 6px 14px;
  border-radius: 100px;
}
.article-date {
  font-size: 13px;
  color: var(--muted);
}
.article-readtime {
  font-size: 13px;
  color: var(--muted2);
}

/* Table of Contents */
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 56px;
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.toc-number {
  width: 24px;
  height: 24px;
  background: var(--ember-bg);
  color: var(--ember);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toc-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color .2s;
}
.toc-list a:hover {
  color: var(--ember);
}

/* Article Typography */
.article-content {
  color: var(--ink);
}

.article-content h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 56px 0 24px;
  color: var(--ink);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 40px 0 16px;
  color: var(--ink);
}

.article-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-content p strong {
  color: var(--ink);
  font-weight: 600;
}

.article-content p em {
  color: var(--ember);
  font-style: italic;
  font-family: 'Instrument Serif', serif;
}

/* Intro */
.article-intro {
  font-size: 20px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* Lists */
.article-content ul, .article-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Power Words Grid */
.power-words-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
@media (max-width: 640px) {
  .power-words-grid { grid-template-columns: 1fr; }
}

.power-word-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all .2s;
}
.power-word-card:hover {
  border-color: var(--ember);
  transform: translateY(-2px);
}
.power-word {
  font-size: 16px;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 8px;
}
.power-word-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* AIDA Section */
.aida-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
@media (max-width: 900px) {
  .aida-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .aida-grid { grid-template-columns: 1fr; }
}

.aida-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all .3s;
}
.aida-card:hover {
  border-color: var(--ember);
  box-shadow: 0 8px 24px rgba(232,97,42,.1);
}
.aida-letter {
  width: 56px;
  height: 56px;
  background: var(--ember-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ember);
}
.aida-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.aida-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Error Cards */
.error-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}
.error-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #DC2626;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.error-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.error-bad {
  background: #FEF2F2;
  border-left: 3px solid #EF4444;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}
.error-bad span {
  font-size: 11px;
  font-weight: 700;
  color: #DC2626;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 4px;
}
.error-bad p {
  font-size: 14px;
  color: #991B1B;
  margin: 0;
  font-style: italic;
}
.error-good {
  background: #F0FDF4;
  border-left: 3px solid #22C55E;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}
.error-good span {
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 4px;
}
.error-good p {
  font-size: 14px;
  color: #14532D;
  margin: 0;
}

/* Template Cards */
.template-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.template-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.template-icon {
  width: 44px;
  height: 44px;
  background: var(--ember-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.template-icon svg {
  width: 22px;
  height: 22px;
  color: var(--ember);
}
.template-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.template-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.template-box {
  background: #FAFAF9;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.template-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}
.template-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}
.template-text strong {
  color: var(--ember);
}

/* Before/After Comparison */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 700px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

.comparison-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.comparison-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comparison-header.bad {
  background: #FEF2F2;
  border-bottom: 1px solid #FECACA;
}
.comparison-header.good {
  background: #F0FDF4;
  border-bottom: 1px solid #BBF7D0;
}
.comparison-header svg {
  width: 20px;
  height: 20px;
}
.comparison-header.bad svg { color: #DC2626; }
.comparison-header.good svg { color: #16A34A; }
.comparison-header span {
  font-size: 13px;
  font-weight: 700;
}
.comparison-header.bad span { color: #991B1B; }
.comparison-header.good span { color: #14532D; }
.comparison-content {
  padding: 24px;
}
.comparison-content h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.comparison-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.comparison-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.comparison-stat {
  text-align: center;
}
.comparison-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--ember);
}
.comparison-stat span {
  font-size: 12px;
  color: var(--muted);
}

/* Author Box */
.author-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 24px;
  margin: 64px 0;
}
@media (max-width: 600px) {
  .author-box { flex-direction: column; text-align: center; }
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #161310;
  border: 2px solid rgba(232,97,42,.18);
  box-shadow: 0 14px 28px rgba(232,97,42,.12);
  flex-shrink: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.author-info span {
  font-size: 14px;
  color: var(--ember);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
.author-info p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* CTA Section */
.article-cta {
  background: var(--ink);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin: 64px 0;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content:'';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.article-cta-orb {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(232,97,42,.2);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.article-cta h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.article-cta h3 em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--ember);
}
.article-cta p {
  font-size: 16px;
  color: rgba(255,255,255,.5);
  max-width: 480px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ember);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(232,97,42,.3);
}
.article-cta-btn:hover {
  background: #d4531e;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,97,42,.4);
}

/* Related Articles */
.related-section {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: all .25s;
}
.related-card:hover {
  border-color: rgba(232,97,42,.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(232,97,42,.1);
}
.related-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--ember);
  background: var(--ember-bg);
  padding: 5px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 14px;
}
.related-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}
.related-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer { background:#060504; padding:64px 44px 40px; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; margin-bottom:56px; }
.f-logo { text-decoration:none; color:inherit; font-size:22px; font-weight:800; color:#fff; letter-spacing:-.5px; margin-bottom:12px; }
.f-logo em { color:var(--ember); font-style:normal; }
.f-tagline { font-size:13px; color:rgba(255,255,255,.25); line-height:1.6; }
.f-col-title { font-size:9px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,.18); margin-bottom:18px; }
.f-link { display:block; font-size:13px; color:rgba(255,255,255,.35); text-decoration:none; margin-bottom:10px; transition:color .2s; }
.f-link:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.06); padding-top:32px; display:flex; justify-content:space-between; align-items:center; }
.f-copy { font-size:11px; color:rgba(255,255,255,.2); }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { padding: 0 22px; }
  .nav-links { display: none; }
  .device-h1 { font-size: 36px; letter-spacing: -1px; }
  .device-sub { font-size: 15px; }
  .article-container { padding: 60px 22px 80px; }
  .article-cta { padding: 36px 24px; }
  .power-words-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }
