/* ── ClaudeGuide Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #7C6AF7; --brand-light: #EDE9FE; --brand-dark: #5B4ECC;
  --accent: #F97B6B; --accent-light: #FEF0EE;
  --green: #34C48B; --green-light: #EDFBF4;
  --blue: #4BA3F5; --blue-light: #EBF4FF;
  --yellow: #F5B342; --yellow-light: #FEF7E7;
  --red: #EF4444; --red-light: #FEF2F2;
  --text: #1A1A2E; --text-muted: #6B7280;
  --border: #E5E7EB; --bg: #FAFAFA; --card: #FFFFFF;
  --radius: 16px; --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(124,106,247,0.15);
}
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 2rem; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo .logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; font-weight: 800; }
.nav-logo span { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; gap: 0.15rem; list-style: none; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-muted); padding: 0.4rem 0.75rem; border-radius: 8px; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--brand-light); color: var(--brand); }
.nav-cta { background: var(--brand) !important; color: white !important; }
.nav-cta:hover { background: var(--brand-dark) !important; color: white !important; }

/* HERO */
.hero { background: linear-gradient(135deg, #F5F3FF 0%, #FFF0F0 50%, #F0F7FF 100%); padding: 5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-light); color: var(--brand); padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; }

/* SECTIONS */
section { padding: 4rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.25; margin-bottom: 0.6rem; letter-spacing: -0.015em; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin-bottom: 2.5rem; }

/* CARDS */
.card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all 0.25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--brand); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.7rem 1.5rem; border-radius: 12px; font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* TABLE */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: var(--brand-light); color: var(--brand); font-weight: 700; font-size: 0.85rem; padding: 1rem 1.25rem; text-align: left; border-bottom: 1.5px solid var(--border); }
td { padding: 0.9rem 1.25rem; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* BADGES */
.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-purple { background: var(--brand-light); color: var(--brand); }
.badge-red { background: var(--red-light); color: var(--red); }

/* CODE BLOCK */
.code-block { background: #1A1A2E; border-radius: 12px; overflow: hidden; margin: 1rem 0; }
.code-header { background: #2D2D44; padding: 0.6rem 1.1rem; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #888; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.code-body { padding: 1.25rem; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.85rem; color: #D1D5DB; line-height: 1.7; overflow-x: auto; }
.code-you { color: #F97B6B; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.3rem; }
.code-claude { color: #7C6AF7; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.3rem; margin-top: 1rem; }
.msg { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 0.75rem 1rem; color: #D1D5DB; font-size: 0.88rem; line-height: 1.65; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* PROS/CONS */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.pros, .cons { border-radius: 12px; padding: 1.1rem 1.25rem; }
.pros { background: var(--green-light); }
.cons { background: var(--red-light); }
.pros h4 { color: var(--green); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.cons h4 { color: var(--red); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.pros li, .cons li { font-size: 0.88rem; list-style: none; padding: 0.2rem 0; display: flex; gap: 6px; align-items: flex-start; }

/* CALLOUT */
.callout { border-radius: 12px; padding: 1.1rem 1.4rem; margin: 1.25rem 0; display: flex; gap: 12px; align-items: flex-start; }
.callout-tip { background: var(--brand-light); border-left: 4px solid var(--brand); }
.callout-warn { background: var(--yellow-light); border-left: 4px solid var(--yellow); }
.callout-info { background: var(--blue-light); border-left: 4px solid var(--blue); }
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.callout strong { color: var(--text); }

/* STEP */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.25rem; margin-bottom: 1.75rem; align-items: flex-start; }
.step-num { counter-increment: step; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: white; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h4 { font-weight: 700; margin-bottom: 0.3rem; font-size: 0.98rem; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* CTA BANNER */
.cta-banner { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); padding: 4rem 2rem; text-align: center; color: white; }
.cta-banner h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.85; font-size: 1rem; margin-bottom: 1.75rem; }
.btn-white { background: white; color: var(--brand); }
.btn-white:hover { background: var(--brand-light); transform: translateY(-2px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.5); color: white; background: transparent; }
.btn-outline-white:hover { border-color: white; transform: translateY(-2px); }

/* FOOTER */
footer { background: var(--text); color: rgba(255,255,255,0.65); padding: 2.5rem 2rem; text-align: center; font-size: 0.85rem; }
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: var(--brand); }
.footer-links { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.75rem; }

/* GRID UTILS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 3rem 1.25rem; }
}
