:root {
  --ink: #17211a;
  --muted: #657065;
  --paper: #fffdf7;
  --cream: #f5efe3;
  --sand: #d7c1a0;
  --stone: #94836d;
  --pine: #223c2c;
  --olive: #5d6f4a;
  --line: rgba(23,33,26,.12);
  --shadow: 0 24px 70px rgba(23,33,26,.14);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge.dark {
  color: var(--pine);
  border-color: var(--line);
  background: #fff;
}
.notice {
  border: 1px solid rgba(93,111,74,.22);
  background: #f7f4ec;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #435140;
  font-size: 14px;
}
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,253,247,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--pine);
  color: #fff;
  font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(34,60,44,.24); }
.btn.secondary { background: #fff; color: var(--pine); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--pine); border-color: rgba(34,60,44,.2); }
.btn.gold { background: #9f754b; }
.btn.small { min-height: 34px; padding: 8px 12px; font-size: 13px; }
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.16) 30%, rgba(0,0,0,.78) 100%), url('hero-placeholder.jpg') center/cover no-repeat;
  transform: scale(1.01);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: end;
}
h1 {
  margin: 18px 0 14px;
  max-width: 820px;
  font-size: clamp(43px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -.06em;
}
.hero-copy { max-width: 700px; color: rgba(255,255,255,.86); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel {
  background: rgba(255,253,247,.92);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 26px;
  backdrop-filter: blur(20px);
}
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.stat-card strong { display: block; font-size: 24px; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 13px; }
section { padding: 86px 0; }
.section-head { margin-bottom: 32px; }
.eyebrow { color: var(--olive); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h2 { margin: 10px 0 10px; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.04em; }
h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
p { margin-top: 0; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(23,33,26,.06);
}
.card.soft { background: #f9f5ec; }
.card.dark { background: var(--pine); color: #fff; border-color: transparent; }
.card.dark p, .card.dark .muted { color: rgba(255,255,255,.72); }
.icon {
  width: 44px; height: 44px; border-radius: 15px; background: var(--cream); display: grid; place-items: center; margin-bottom: 16px; font-size: 22px;
}
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.finance-wrap {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: start;
}
.calculator {
  background: var(--pine);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
}
.calculator label { display: block; font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.input, .calculator input, .calculator select, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 14px;
  outline: none;
}
.calculator input, .calculator select { border-color: rgba(255,255,255,.18); }
.calc-result {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  padding: 22px;
}
.calc-result .amount { font-size: 44px; font-weight: 900; letter-spacing: -.04em; }
.calc-result small { color: rgba(255,255,255,.68); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.gallery-shell {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.photo-main, .photo-tile {
  min-height: 380px;
  border-radius: var(--radius-xl);
  background: url('hero-placeholder.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.photo-stack { display: grid; gap: 16px; }
.photo-tile { min-height: 182px; background: #d6cec1; border: 1px dashed #a99880; display: grid; place-items: center; color: #726553; font-weight: 800; text-align: center; padding: 20px; }
.faq { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 850; }
details p { color: var(--muted); margin: 10px 0 0; }
.footer { background: var(--pine); color: #fff; padding: 42px 0; }
.footer p { color: rgba(255,255,255,.66); }
.mobile-cta { display: none; }
/* Dashboard */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f6f2e9; }
.sidebar { background: #15261c; color: #fff; padding: 24px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { margin-bottom: 28px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { padding: 12px 14px; border-radius: 14px; text-decoration: none; color: rgba(255,255,255,.76); }
.side-nav a.active, .side-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.main { padding: 28px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 24px; }
.dashboard-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; }
.metric { background:#fff; border:1px solid var(--line); border-radius:20px; padding:18px; }
.metric span { color: var(--muted); font-size:13px; }
.metric strong { display:block; font-size:30px; line-height:1; margin-top:8px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:24px; padding:22px; box-shadow:0 18px 44px rgba(23,33,26,.05); }
.table { width:100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align:left; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; padding: 10px; border-bottom:1px solid var(--line); }
.table td { padding: 14px 10px; border-bottom:1px solid var(--line); vertical-align: top; }
.score { display:inline-flex; align-items:center; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; }
.score.hot { background:#f1e1c9; color:#765128; }
.score.warm { background:#e9edd8; color:#53622b; }
.score.cold { background:#eeeeee; color:#686868; }
.kanban { display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; }
.column { background:#f8f5ed; border:1px solid var(--line); border-radius:20px; padding:14px; }
.column h4 { margin:0 0 12px; }
.lead-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; margin-bottom:10px; }
.progress { height: 10px; border-radius:999px; background:#e9e2d6; overflow:hidden; }
.progress > span { display:block; height:100%; background: var(--pine); border-radius:999px; }
.qr-card { display:flex; gap:18px; align-items:center; }
.qr-card img { width:128px; height:128px; border-radius:14px; background:#fff; padding:8px; border:1px solid var(--line); }
.muted { color: var(--muted); }
.small-copy { font-size: 13px; color: var(--muted); }
.hidden-note { background:#fff9e8; border:1px solid #ead7a2; padding:10px 12px; border-radius:12px; font-size:13px; color:#735d21; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .finance-wrap, .grid-2, .gallery-shell { grid-template-columns: 1fr; }
  .grid-3, .dashboard-grid, .kanban { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 22px, var(--max)); }
  .nav-actions .secondary { display: none; }
  .hero { min-height: 720px; }
  .hero-panel { padding: 20px; }
  .quick-stats, .grid-3, .grid-2, .feature-list, .field-row, .form-grid, .dashboard-grid, .kanban { grid-template-columns: 1fr; }
  section { padding: 58px 0; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap:8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; }
  .mobile-cta .btn { box-shadow: 0 10px 30px rgba(0,0,0,.22); }
  .main { padding: 18px; }
  .topbar { align-items:flex-start; flex-direction:column; }
}
