/* ─────────────────────── Domus Landing — Design System ─────────────────────── */

:root {
  --bg: #f7f1e8;
  --bg-elevated: #fdfaf4;
  --bg-soft: #efe6d6;
  --bg-dark: #1e1710;
  --border: #e6dcc8;
  --text: #2d2924;
  --text-secondary: #5a5249;
  --text-muted: #8a8276;
  --text-on-dark: #fdfaf4;
  --accent: #b85c44;
  --accent-hover: #a04e38;
  --accent-warm: #d68b6e;
  --ok: #7a8a4f;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(60, 40, 20, 0.10);
  --shadow-lg: 0 16px 48px rgba(60, 40, 20, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: var(--accent);
  color: #fdfaf4;
}
.btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(184, 92, 68, 0.35);
}
.btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.large {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 14px;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
}
.brand-mark {
  font-size: 22px;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184, 92, 68, 0.1);
  border: 1px solid rgba(184, 92, 68, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── MOCKUP ─── */
.mockup-window {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.mockup-titlebar {
  background: var(--bg-soft);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red   { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.mockup-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}
.mockup-body {
  display: grid;
  grid-template-columns: 130px 180px 1fr;
  height: 260px;
}
.mockup-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 10px 10px;
  font-size: 11px;
}
.mockup-brand {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.mockup-section-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 8px;
  font-weight: 600;
}
.mockup-section-label.mt { margin-top: 12px; }
.mockup-project {
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 3px;
  cursor: default;
}
.mockup-project.active {
  background: rgba(184, 92, 68, 0.1);
  border: 1px solid rgba(184, 92, 68, 0.2);
}
.mockup-project-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-project-budget {
  font-size: 10px;
  color: var(--text-muted);
}
.mockup-project.active .mockup-project-name { color: var(--accent); }

.mockup-budget {
  border-right: 1px solid var(--border);
  padding: 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mockup-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.mockup-stat-row.big {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 12px;
}
.mockup-label { color: var(--text-muted); }
.mockup-val { font-variant-numeric: tabular-nums; font-weight: 500; }
.mockup-val.ok { color: var(--ok); }
.mockup-progress {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 2px;
  margin: 6px 0 4px;
  overflow: hidden;
}
.mockup-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.mockup-line-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: var(--text-secondary);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}
.mockup-board {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.mockup-board-item {
  position: absolute;
  background: var(--border);
  border-radius: 6px;
  border: 1px solid rgba(184, 92, 68, 0.15);
  background: linear-gradient(135deg, #e8dcc8 0%, #d8ccb4 100%);
}

/* ─── SECTION COMMON ─── */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-tag.light { color: rgba(253, 250, 244, 0.7); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 48px;
}

/* ─── FEATURES ─── */
.features {
  background: var(--bg-elevated);
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features .section-title { margin-bottom: 56px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── HOW IT WORKS ─── */
.how {
  padding: 96px 0;
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 16px;
}
.step { }
.step-number {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: rgba(184, 92, 68, 0.18);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-arrow {
  font-size: 24px;
  color: var(--accent-warm);
  padding-top: 28px;
  align-self: start;
}

/* ─── DOWNLOAD ─── */
.download {
  background: var(--bg-dark);
  padding: 96px 0;
}
.download-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}
.download-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.download-sub {
  font-size: 16px;
  color: rgba(253, 250, 244, 0.65);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}
.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.download .btn.ghost {
  color: rgba(253, 250, 244, 0.8);
  border-color: rgba(253, 250, 244, 0.25);
}
.download .btn.ghost:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}
.download-note {
  font-size: 12px;
  color: rgba(253, 250, 244, 0.35);
}
.download-card {
  background: rgba(253, 250, 244, 0.05);
  border: 1px solid rgba(253, 250, 244, 0.1);
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
  min-width: 200px;
}
.dl-card-brand {
  font-size: 48px;
  color: var(--accent-warm);
  margin-bottom: 8px;
}
.dl-card-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 4px;
}
.dl-card-version {
  font-size: 13px;
  color: rgba(253, 250, 244, 0.4);
  margin-bottom: 20px;
}
.dl-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.dl-card-tags span {
  font-size: 11px;
  background: rgba(184, 92, 68, 0.25);
  color: var(--accent-warm);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ─── DONATE ─── */
.donate {
  padding: 96px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.donate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.donate-icon {
  font-size: 36px;
  color: var(--accent);
}
.donate h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--text);
}
.donate p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

/* ─── FOOTER ─── */
.footer {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .brand-mark { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
  }
  .hero-mockup { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .download-inner { grid-template-columns: 1fr; }
  .download-card { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .download-buttons { flex-direction: column; }
  .download-buttons .btn { justify-content: center; }
}

/* ─── LEGAL PAGE ─── */
.legal-page {
  padding: 72px 0 96px;
  min-height: 60vh;
}
.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 56px;
}
.legal-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--accent-hover); }
