@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');
:root {
  --bg: #faf8f5;
  --bg2: #f2efe8;
  --surface: #ffffff;
  --border: #e2ddd4;
  --text: #1a1a1a;
  --text2: #5c5750;
  --text3: #9a9488;
  --accent: #c0541a;
  --accent-dark: #8b3a10;
  --accent-light: rgba(192,84,26,0.08);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* HEADER */
.site-header {
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  max-width: 1160px;
  margin: 0 auto;
  height: 68px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { font-size: 1.5rem; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  color: var(--text2);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--text); background: var(--bg2); }
.main-nav a.active { color: var(--accent); }
.mobile-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  display: none;
}
@media(max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(12px);
    padding: 14px;
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .main-nav.active { display: flex; }
  .mobile-toggle { display: block; }
}

/* HERO */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background: var(--bg);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 1.12rem;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.97rem;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(192,84,26,0.22);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,84,26,0.28);
}

/* SECTIONS */
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.section-title p { color: var(--text2); font-size: 1rem; }

/* GRIDS */
.tools-grid, .articles-grid { display: grid; gap: 22px; }
.tools-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.articles-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* TOOL CARD */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 0;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.tool-icon { font-size: 2.4rem; margin-bottom: 14px; }
.tool-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tool-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
.tool-card p { color: var(--text2); font-size: 0.88rem; line-height: 1.65; margin-bottom: 20px; }
.tool-link {
  display: block;
  text-align: center;
  padding: 13px;
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  margin: 0 -24px 0;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  transition: all 0.2s;
  letter-spacing: 0.1px;
}
.tool-link:hover { background: var(--accent); color: #fff; }

/* ARTICLE CARD */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.article-img { width: 100%; height: 175px; object-fit: cover; }
.article-body { padding: 20px; }
.article-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card p { color: var(--text2); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }
.article-card .tool-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  margin: 0 -20px -20px;
  transition: all 0.2s;
}
.article-card .tool-link:hover { background: var(--accent); color: #fff; }

/* BREADCRUMB */
.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.breadcrumb a, .breadcrumb span { color: var(--text3); font-size: 0.88rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ARTICLE DETAIL */
.article-detail {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-img { width: 100%; height: 340px; object-fit: cover; }
.article-content { padding: 44px; line-height: 1.85; }
.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg2);
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
  margin: 28px 0 10px;
  font-weight: 600;
}
.article-content p { margin-bottom: 16px; color: var(--text2); font-size: 1.04rem; }
.article-content ul, .article-content ol { margin: 12px 0 18px 24px; color: var(--text2); }
.article-content li { margin-bottom: 8px; }
.article-meta {
  background: var(--bg);
  padding: 14px 44px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text3);
}
.article-meta strong { color: var(--accent); }

/* FORM PAGE */
.form-page {
  max-width: 580px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.form-page h1 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 6px;
}
.form-page .subtitle { color: var(--text2); margin-bottom: 28px; font-size: 0.94rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--text); font-size: 0.92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-group textarea { height: 115px; resize: vertical; }

/* LEGAL */
.legal-content { max-width: 760px; margin: 0 auto; padding: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.legal-content h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--text); margin-bottom: 24px; }
.legal-content h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--text); margin: 30px 0 12px; font-weight: 600; }
.legal-content p { margin-bottom: 14px; color: var(--text2); line-height: 1.8; }
.legal-content ul { margin: 10px 0 14px 24px; color: var(--text2); }
.legal-content li { margin-bottom: 8px; }

/* FOOTER */
.site-footer {
  background: var(--text);
  color: #c8c0b4;
  padding: 60px 0 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-inner h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-inner p { color: #8a8278; line-height: 1.75; font-size: 0.9rem; }
.footer-inner a { display: block; color: #8a8278; padding: 4px 0; font-size: 0.9rem; transition: color 0.2s; }
.footer-inner a:hover { color: #c8c0b4; }
.footer-bottom {
  text-align: center;
  padding: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #6a6258;
  font-size: 0.84rem;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 48px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-content { padding: 24px; }
  .legal-content { padding: 28px 20px; }
  .form-page { padding: 28px 20px; }
  .article-meta { padding: 14px 24px; }
}
@media(max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .tools-grid, .articles-grid { grid-template-columns: 1fr; }
}
