:root {
  --bg: #f6f1e7;
  --paper: #fffdf6;
  --paper-2: #f1e8d8;
  --line: #d1bfa4;
  --ink: #121b16;
  --muted: #56645c;
  --green: #0f5a41;
  --red: #bc252a;
  --gold: #c58b2f;
  --dark: #101713;
  --white: #fff;
  --shadow: 0 22px 60px rgba(18, 27, 22, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, Arial, "Noto Sans Devanagari", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 246, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  max-width: 1328px;
  min-height: 82px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { min-width: 246px; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}
.brand b { display: block; font-size: 20px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.brand-logo.full-logo { width: auto; max-width: 230px; height: 48px; object-fit: contain; }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.nav-links a.active { background: var(--paper-2); color: var(--red); }
.menu-btn, .safety-btn, .btn {
  border: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.btn, .safety-btn { display: inline-flex; }
.menu-btn { display: none; }
.safety-btn, .menu-btn, .btn.secondary { background: var(--green); color: var(--white); }
.btn.primary { background: var(--red); color: var(--white); }
.btn.ghost, .btn.dark, .inline-link {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--green);
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}
.language-switch a {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.language-switch a.active { background: var(--green); color: var(--white); }

.figma-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 72px;
  align-items: center;
  padding: 70px max(56px, calc((100vw - 1328px) / 2 + 56px));
  background: var(--dark);
}
.hero-copy { max-width: 720px; }
.eyebrow, .label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(188, 37, 42, .55);
  border-radius: 999px;
  background: rgba(188, 37, 42, .12);
  color: #ffd8c7;
  font-size: 13px;
  font-weight: 900;
}
.figma-hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(46px, 6vw, 74px);
}
.figma-hero p {
  max-width: 660px;
  margin-top: 26px;
  color: #f1e8d8;
  font-size: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(209,191,164,.6);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.proof-card {
  position: absolute;
  left: 40px;
  top: 42px;
  width: 250px;
  min-height: 226px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.proof-dot {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--red);
}
.proof-card h2 { margin-bottom: 18px; font-size: 22px; }
.proof-card p { margin: 6px 0; font-weight: 800; }
.play-card {
  position: absolute;
  width: 76px;
  height: 112px;
  display: grid;
  place-items: start end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}
.play-card-a { right: 70px; top: 82px; color: var(--red); }
.play-card-k { right: 46px; top: 116px; }

.download-band {
  padding: 48px 28px 14px;
  background: var(--bg);
}
.download-panel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  box-shadow: var(--shadow);
}
.download-copy { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 24px; align-items: center; }
.download-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}
.download-copy .label {
  margin-bottom: 10px;
  border-color: #bad8c3;
  background: #d9efdf;
  color: var(--green);
}
.download-copy h2 { font-size: clamp(28px, 3vw, 40px); }
.download-copy p { max-width: 760px; margin-top: 8px; font-size: 16px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.download-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.site-main, .page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 28px 86px;
}
.section-shell, .page-index, .panel, .topic-card, .page-hero, .featured-news, .news-card, .question-card, .ask-card, .topic-sidebar, .content-panel, .side-panel, .article-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: none;
}
.page-index {
  display: grid;
  grid-template-columns: .9fr 1.45fr;
  gap: 36px;
  padding: 34px;
}
.page-index h2, .section-head h2, .panel h2, .topic-sidebar h2 { font-size: 34px; }
.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.page-tile {
  min-height: 78px;
  padding: 16px 18px;
  border-left: 6px solid var(--green);
  border-radius: 12px;
  background: #f4eadb;
}
.page-tile b { display: block; font-size: 16px; }
.page-tile small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; word-break: break-word; }
.section-head { max-width: 780px; margin-top: 72px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 26px; }
.topic-card { min-height: 250px; padding: 24px; border-top: 7px solid var(--red); transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-card img.card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 16px; background: var(--paper-2); }
.topic-card span { color: var(--green); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.topic-card h3 { margin-top: 14px; font-size: 24px; }
.topic-card p { margin-top: 12px; font-size: 15px; }
.topic-card b { display: inline-flex; margin-top: 18px; padding: 9px 14px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 74px; }
.panel { padding: 30px; }
.article-list.compact { display: grid; gap: 14px; margin-top: 20px; }
.article-list.compact .article-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #f4eadb;
}
.article-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--green); }
.article-row small { display: block; margin-top: 4px; color: var(--muted); }
.qa-mini { display: grid; gap: 12px; margin-top: 20px; }
.qa-mini a { padding: 14px 16px; border-radius: 12px; background: #f4eadb; font-weight: 900; }
.inline-link { display: inline-flex; margin-top: 22px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 900; }

.page-hero {
  max-width: none;
  margin: 0;
  padding: 58px max(28px, calc((100vw - 1200px) / 2 + 28px));
  border: 0;
  border-radius: 0;
  background: var(--dark);
}
.page-hero .breadcrumb, .page-hero .eyebrow { color: #ffd8c7; }
.page-hero h1 { max-width: 940px; color: var(--white); font-size: clamp(36px, 4vw, 56px); }
.page-hero p { max-width: 760px; margin-top: 20px; color: var(--paper-2); font-size: 19px; }
.channel-hero { border-left: 0; }
.channel-hero .page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.news-layout, .qa-layout, .layout, .content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
}
.news-feed, .qa-feed { display: grid; gap: 22px; min-width: 0; }
.featured-news { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 330px; overflow: hidden; }
.featured-news img, .news-card img, .question-media img { width: 100%; object-fit: cover; background: var(--green); }
.featured-news img { height: 100%; min-height: 330px; }
.featured-news > div { padding: 32px; align-self: center; }
.featured-news h2 { font-size: 34px; }
.news-kicker, .news-date {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.news-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  min-height: 220px;
  padding-bottom: 0;
  overflow: hidden;
}
.news-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 240px;
  border-right: 1px solid var(--line);
  object-fit: cover;
  object-position: center;
}
.news-card-body {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 26px;
}
.news-card .news-date { margin-top: 0; }
.news-card h3 { margin-bottom: 10px; font-size: 26px; }
.news-card p { max-width: 620px; }
.news-card .tag-row { margin-bottom: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-row span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5ead8;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.topic-sidebar, .side-panel { position: sticky; top: 110px; align-self: start; padding: 24px; }
.topic-sidebar a, .side-panel a { display: block; margin-top: 10px; padding: 12px; border-radius: 10px; background: #f4eadb; font-weight: 900; }
.sidebar-note { margin-top: 22px; padding: 16px; border-left: 5px solid var(--red); border-radius: 12px; background: #f4eadb; }
.sidebar-note p { margin-top: 8px; font-size: 13px; }
.ask-card { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: center; padding: 26px; border-left: 7px solid var(--green); }
.ask-input, .search-form input {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}
.ask-input input, .search-form input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; }
.question-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 116px;
  gap: 20px;
  align-items: stretch;
  padding: 18px;
}
.question-media { min-height: 150px; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.question-media img { height: 100%; min-height: 150px; }
.question-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.question-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 900; }
.question-card h2 { margin-bottom: 8px; font-size: 24px; }
.answer-preview { font-size: 15px; }
.qa-stats { display: grid; align-content: center; gap: 12px; border-left: 1px solid var(--line); padding-left: 18px; color: var(--muted); font-size: 12px; font-weight: 800; }
.qa-stats b { display: inline-flex; justify-content: center; padding: 9px 10px; border-radius: 10px; background: var(--red); color: var(--white); }

.article-list { display: grid; gap: 18px; }
.article-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; }
.article-row h2 { margin-bottom: 8px; font-size: 24px; }
.date { min-height: 88px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); color: var(--red); font-weight: 900; text-align: center; }
.article-content { max-width: 860px; margin: 0 auto; padding: 34px; }
.article-content .hero-image { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 28px; }
.prose { color: var(--muted); font-size: 17px; }
.prose h2, .prose h3 { margin-top: 28px; color: var(--ink); }
.prose p, .prose li { color: var(--muted); }
.prose a, .content-panel a { color: var(--red); font-weight: 900; }
.prose table { width: 100%; margin: 18px 0; border-collapse: collapse; }
.prose th, .prose td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.prose td, .prose th { vertical-align: top; word-break: break-word; }
.prose code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--green);
  font-size: .9em;
  overflow-wrap: anywhere;
}
.evidence-box {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 14px;
  background: #f4eadb;
}
.category-intro { margin-bottom: 28px; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 24px 0; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pagination a { min-width: 42px; min-height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); color: var(--ink); font-weight: 900; }
.pagination a.active { background: var(--red); color: var(--white); }

.footer { padding: 44px 28px; background: var(--dark); }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.4fr;
  gap: 44px;
}
.footer h2, .footer h3, .footer p, .footer a, .disclaimer { color: #fff7eb; }
.footer h2 { font-size: 28px; }
.footer-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-columns h3 { margin-bottom: 10px; font-size: 16px; }
.footer-columns a { display: block; margin: 7px 0; font-weight: 800; }
.disclaimer { max-width: 1200px; margin: 26px auto 0; font-size: 12px; opacity: .82; }

@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .safety-btn { display: none; }
  .nav-links {
    display: none;
    width: 100%;
    order: 5;
    margin: 10px 0 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
  }
  .nav-links.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figma-hero, .download-panel, .page-index, .topic-grid, .split, .news-layout, .qa-layout, .layout, .content-layout, .featured-news, .ask-card, .question-card, .footer-grid {
    grid-template-columns: 1fr;
  }
  .figma-hero { gap: 36px; padding: 48px 28px; }
  .hero-proof { max-width: 470px; width: 100%; }
  .download-actions, .download-meta { justify-content: flex-start; }
  .topic-sidebar, .side-panel { position: static; }
  .qa-stats { display: flex; align-items: center; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

@media (max-width: 640px) {
  .nav { padding: 14px 22px; gap: 10px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand b { font-size: 17px; }
  .brand small { display: none; }
  .language-switch { order: 4; width: max-content; }
  .nav-links.open { grid-template-columns: 1fr; }
  .figma-hero { min-height: 0; padding: 42px 22px; }
  .figma-hero h1, .page-hero h1 { font-size: 38px; }
  .figma-hero p, .page-hero p { font-size: 17px; }
  .hero-proof { min-height: 286px; }
  .proof-card { left: 20px; top: 26px; width: 215px; padding: 20px; }
  .play-card { width: 58px; height: 86px; font-size: 20px; }
  .play-card-a { right: 46px; top: 72px; }
  .play-card-k { right: 28px; top: 104px; }
  .download-band, .site-main, .page-main, .footer { padding-left: 20px; padding-right: 20px; }
  .download-panel, .page-index, .panel, .topic-card, .featured-news, .news-card, .question-card, .ask-card, .topic-sidebar, .content-panel, .side-panel { max-width: 350px; width: 100%; margin-left: auto; margin-right: auto; }
  .download-panel { padding: 22px; text-align: center; }
  .download-copy { grid-template-columns: 1fr; justify-items: center; }
  .download-actions, .download-meta { justify-content: center; }
  .download-actions .btn { width: 100%; }
  .page-grid, .footer-columns, .search-form { grid-template-columns: 1fr; }
  .page-index, .panel, .ask-card, .question-card, .content-panel { padding: 22px; }
  .topic-grid, .split { gap: 24px; }
  .featured-news > div { padding: 22px; }
  .news-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .news-card img {
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .news-card-body { padding: 20px; }
  .news-card .news-date { margin-top: 18px; }
  .question-media { min-height: 172px; }
  .article-row, .article-list.compact .article-row { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 22px; }
}
