@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,560;9..144,700&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

[data-scheme="forest"] {
  --primary: #1d6b45;
  --primary-2: #0f3d28;
  --accent: #e0a106;
  --accent-2: #f3d48a;
}
[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #fffdf8;
  --surface: #ffffff;
  --surface-2: #f7f3eb;
  --text: #17231c;
  --muted: #5d6b63;
  --line: rgba(23, 35, 28, 0.1);
  --hero: linear-gradient(135deg, #0f3d28 0%, #1d6b45 58%, #8a9a3a 100%);
  --nav: rgba(255, 253, 248, 0.9);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --header: 72px;
  --container: 1180px;
  --shadow: 0 18px 50px rgba(16, 32, 24, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.public-site {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.public-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}
.public-header .inner {
  min-height: var(--header);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--hero); color: #fff;
  display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 10px 20px rgba(29, 107, 69, .3);
}
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font); }
.nav { display: flex; gap: 6px; align-items: center; flex: 1; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 650; color: var(--muted); }
.nav a.active, .nav a:hover { background: var(--surface-2); color: var(--text); }
.nav-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  background: var(--primary); color: #fff; font-weight: 700; text-decoration: none;
}
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.gold { background: var(--accent); color: #1a1406; }
.btn.staff-cta { background: #fff; color: var(--primary-2); font-weight: 800; }
.nav-staff { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(29, 107, 69, .35); }
.hero-slider { position: relative; min-height: 78vh; overflow: hidden; color: #fff; background: #0f3d28; }
.hero-slider .slides { position: absolute; inset: 0; }
.hero-slider .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slider .slide.on { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end;
  padding: 48px 0 78px;
  background: linear-gradient(180deg, rgba(8,20,14,.1) 10%, rgba(8,20,14,.78) 100%);
}
.kicker, .eyebrow {
  display: inline-flex; margin-bottom: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.kicker { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 6px 12px; border-radius: 999px; }
.eyebrow { color: var(--primary); }
.eyebrow.light { color: #f3d48a; }
.hero-overlay h1 { font-size: clamp(2rem, 5vw, 4.2rem); color: #fff; max-width: 16ch; }
.hero-overlay p { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.slide-btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 1;
}
.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }
.slide-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.slide-dots button.on { background: #fff; width: 22px; border-radius: 999px; }
.section { padding: 64px 0; }
.section h1, .section h2, .article h1 { color: var(--primary-2); }
.lead { max-width: 62ch; font-size: 1.05rem; }
.band { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.about-grid img, .work-card img, .news-card img, .article-hero { width: 100%; object-fit: cover; border-radius: 22px; }
.about-grid img { height: 420px; }
.vision-grid, .work-grid, .voice-grid, .news-grid { display: grid; gap: 16px; }
.vision-grid { grid-template-columns: 1fr 1fr; }
.work-grid, .news-grid { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.voice-grid { grid-template-columns: repeat(3, 1fr); }
.vision-card, .work-card, .voice, .news-card, .analysis {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.vision-card { padding: 28px; }
.vision-card h3, .work-card h3, .news-card h3 { font-size: 1.45rem; }
.vision-card.dark { background: linear-gradient(160deg, #0f3d28, #1d6b45); color: #fff; }
.vision-card.dark p, .vision-card.dark h3 { color: #fff; }
.work-card, .news-card { overflow: hidden; }
.work-card img, .news-card img { border-radius: 0; height: 190px; }
.work-card div, .news-card div { padding: 16px 16px 18px; }
.analysis { margin-top: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; padding: 28px; }
.analysis h3 { margin: 16px 0 10px; font-size: 1.05rem; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 10px; font-size: 14px; }
.bar-row span { color: var(--text); }
.bar-row b { color: var(--primary-2); }
.bar-row i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 99px; background: #1d6b45; }
.bar-row i.gold { background: #e0a106; }
.voice { margin: 0; padding: 18px; }
.voice img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.voice p { color: var(--text); font-size: 1.02rem; }
.voice footer { display: grid; }
.voice footer span { color: var(--muted); font-size: 13px; }
.meta { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; text-transform: uppercase; }
.more { color: var(--primary); font-weight: 800; }
.article .narrow { width: min(760px, calc(100% - 32px)); }
.article h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.article-hero { height: 380px; margin: 8px 0 18px; }
.article p { font-size: 1.05rem; }
.public-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.public-footer a { color: var(--primary); font-weight: 700; }
@media (max-width: 900px) {
  .nav .hide-sm { display: none; }
  .about-grid, .vision-grid, .work-grid, .voice-grid, .news-grid, .analysis, .footer-grid, .product-grid, .project-grid, .product-detail { grid-template-columns: 1fr; }
  .about-grid img, .article-hero { height: 240px; }
  .hero-slider { min-height: 86vh; }
  .brand small { display: none; }
  .slide-btn.prev { left: 8px; }
  .slide-btn.next { right: 8px; }
}

.product-grid, .project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.project-grid { grid-template-columns: repeat(2, 1fr); }
.product-card, .thread-card, .offer, .thread {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.product-card { overflow: hidden; }
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-card div, .thread-card, .offer, .thread { padding: 14px 16px 16px; }
.product-card h3, .thread-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.price { color: var(--primary-2); font-weight: 800; font-size: 1.05rem; }
.seller { color: var(--muted); font-size: 13px; }
.section-more { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chips a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.chips a.on { background: var(--primary-2); color: #fff; }
.offer, .thread { margin-top: 28px; }
.thread-list { display: grid; gap: 12px; }
.thread-card { display: block; }
.thread-card p { color: var(--text); }
.stack-form { display: grid; gap: 10px; max-width: 640px; }
.stack-form label { display: grid; gap: 4px; font-weight: 700; color: var(--primary-2); }
.stack-form input, .stack-form textarea, .stack-form select, .chat-panel input, .chat-panel textarea {
  border: 1px solid rgba(23, 35, 28, 0.15); border-radius: 12px; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--text);
}
.form-note { background: #e7f6ee; color: #0f3d28; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.form-note.warn { background: #fef2f2; color: #b42318; }
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.product-detail img { width: 100%; height: 420px; object-fit: cover; border-radius: 22px; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 22px; overflow: hidden; margin: 12px 0 16px; background: #0f3d28; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.steps { color: var(--text); padding-left: 18px; }
.steps li { margin: 8px 0; }
.replies { display: grid; gap: 8px; margin: 12px 0; }
.wa-float, .chat-float {
  position: fixed; right: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(16, 32, 24, .25); text-decoration: none;
}
.wa-float { bottom: 18px; background: #25D366; color: #fff; }
.chat-float { bottom: 86px; background: #0f3d28; color: #fff; border: 0; font-weight: 800; cursor: pointer; }
.chat-panel {
  position: fixed; right: 18px; bottom: 154px; z-index: 60; width: min(340px, calc(100vw - 24px));
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(16, 32, 24, .2); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #0f3d28; color: #fff; }
.chat-panel header button { border: 0; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.chat-log { max-height: 240px; overflow: auto; padding: 12px; display: grid; gap: 8px; }
.bubble { background: #f7f3eb; border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px; }
.bubble span { color: var(--text); }
.chat-panel form { display: grid; gap: 8px; padding: 12px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f4f1ea; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid rgba(23, 35, 28, 0.1); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(16, 32, 24, 0.08); }
.login-card h1 { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 0; padding: 18px 16px; background: linear-gradient(135deg, #0f3d28, #1d6b45); color: #fff; }
.login-card form { padding: 16px; display: grid; gap: 8px; }
.login-card label { font-weight: 700; color: #0f3d28; }
.login-card input { border: 1px solid rgba(23, 35, 28, 0.15); border-radius: 12px; padding: 11px 12px; font: inherit; }
.login-card button { border: 0; background: #1d6b45; color: #fff; font-weight: 800; padding: 12px; border-radius: 999px; cursor: pointer; }
.login-card .error { background: #fef2f2; color: #b42318; padding: 8px 10px; border-radius: 12px; }
.login-card select { border: 1px solid rgba(23, 35, 28, 0.15); border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; }
.register-card { width: min(520px, 100%); }
.kind-switch { display: flex; gap: 8px; }
.kind-switch a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(23, 35, 28, 0.15); font-weight: 800; color: #0f3d28; }
.kind-switch a.on { background: #0f3d28; color: #fff; }
.btn-line { background: #fff; color: #0f3d28; border: 1px solid rgba(15, 61, 40, .25); }
