:root {
  --navy: #071f38;
  --navy-2: #0d2f50;
  --brown: #96572f;
  --brown-dark: #6f3d22;
  --caramel: #c8894b;
  --cream: #f7efe5;
  --warm-white: #fffaf5;
  --ink: #171717;
  --muted: #6f6a65;

  --page-bg: #fffaf5;
  --surface: #ffffff;
  --surface-2: #f6eee4;
  --surface-3: #fffdfb;
  --text-main: #171717;
  --text-muted: #6f6a65;
  --border-theme: #eadfd3;
  --nav-bg: rgba(255, 250, 245, .94);
  --nav-text: #0b2945;
  --nav-shadow: 0 10px 30px rgba(15, 29, 42, .08);
  --footer-bg: #061725;
  --hero-grad-left: rgba(255, 250, 245, .94);
  --hero-grad-right: rgba(255, 250, 245, .72);
  --preview-bg: #ffffff;
  --preview-side: #0d2139;
  --preview-content: #f7f5f2;
  --modal-bg: #ffffff;
  --soft-shadow: 0 22px 60px rgba(19, 34, 52, .12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #06090d;
  --surface: #0f1419;
  --surface-2: #0a1015;
  --surface-3: #131a20;
  --text-main: #f5efe8;
  --text-muted: #aaa39b;
  --border-theme: #252c33;
  --nav-bg: rgba(7, 10, 14, .95);
  --nav-text: #ffffff;
  --nav-shadow: 0 10px 30px rgba(0, 0, 0, .26);
  --footer-bg: #03080c;
  --hero-grad-left: rgba(6, 9, 13, .98);
  --hero-grad-right: rgba(6, 9, 13, .86);
  --preview-bg: #11161c;
  --preview-side: #08121d;
  --preview-content: #171d24;
  --modal-bg: #10151a;
  --soft-shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border-theme) 68%, transparent);
}
.brand-logo {
  width: 150px;
  max-height: 52px;
  object-fit: contain;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-theme);
  background: var(--surface);
  color: var(--brown);
  display: grid;
  place-items: center;
  transition: .25s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--caramel);
}
.theme-toggle i { font-size: 1rem; }

.btn-brand {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--caramel), var(--brown));
  box-shadow: 0 12px 24px rgba(150, 87, 47, .25);
}
.btn-brand:hover {
  color: #fff;
  background: linear-gradient(135deg, #d89a58, var(--brown-dark));
}
.btn-soft {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--border-theme);
  color: var(--text-main);
}
.btn-soft:hover {
  color: var(--text-main);
  border-color: var(--caramel);
}
.btn-outline-brand {
  border: 1px solid var(--brown);
  color: var(--brown);
  background: transparent;
}
.btn-outline-brand:hover {
  color: #fff;
  background: var(--brown);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 85% 20%, rgba(200,137,75,.16), transparent 22%),
    linear-gradient(120deg, var(--hero-grad-left) 0%, var(--hero-grad-right) 50%, color-mix(in srgb, var(--surface-2) 76%, transparent) 100%);
}
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(8px);
}
.hero-section::before {
  width: 280px;
  height: 280px;
  left: -110px;
  top: 80px;
  background: rgba(200,137,75,.10);
}
.hero-section::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -110px;
  background: rgba(13,47,80,.10);
}

.hero-section .container { position: relative; z-index: 2; }
.kicker {
  display: inline-block;
  color: var(--caramel);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero-title, .section-title {
  font-family: "Playfair Display", serif;
  color: var(--navy);
}
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .section-title {
  color: #fff4ea;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: .98;
  margin-bottom: 1.2rem;
}
.hero-title span { color: var(--brown); }
.hero-text, .section-text {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
}
.section-header {
  max-width: 760px;
  margin: 0 auto 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: .65rem;
}

.mini-status-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border-theme);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(17, 31, 43, .04);
}
.mini-status-card i {
  color: var(--brown);
  font-size: 1.25rem;
}
.mini-status-card strong,
.mini-status-card span {
  display: block;
}
.mini-status-card strong {
  margin-top: .7rem;
  color: var(--text-main);
}
.mini-status-card span {
  margin-top: .25rem;
  color: var(--text-muted);
  font-size: .88rem;
}

.shadow-soft { box-shadow: var(--soft-shadow); }

.app-preview {
  position: relative;
  background: var(--preview-bg);
  border: 1px solid var(--border-theme);
  border-radius: 30px;
  overflow: hidden;
}
.preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-theme);
}
.dots {
  display: flex;
  gap: .45rem;
}
.dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d7c6b4;
}
.dots span:nth-child(1) { background: #ef8d84; }
.dots span:nth-child(2) { background: #f0c66b; }
.dots span:nth-child(3) { background: #82d39a; }

.preview-pill {
  border-radius: 50px;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: .45rem .85rem;
  font-size: .84rem;
  white-space: nowrap;
}
.preview-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 520px;
}
.preview-sidebar {
  background: var(--preview-side);
  color: rgba(255,255,255,.8);
  padding: 1.15rem;
}
.preview-logo {
  width: 112px;
  max-height: 38px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.preview-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.preview-sidebar li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .82rem .9rem;
  border-radius: 14px;
  margin-bottom: .35rem;
  font-size: .94rem;
}
.preview-sidebar li.active,
.preview-sidebar li:hover {
  background: rgba(255,255,255,.08);
}
.preview-content {
  background: var(--preview-content);
  padding: 1.2rem;
}
.widget-card,
.chart-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-theme);
  border-radius: 20px;
}
.widget-card {
  padding: 1rem 1.15rem;
}
.widget-card small {
  display: block;
  color: var(--text-muted);
  margin-bottom: .35rem;
}
.widget-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.8rem;
}
html[data-theme="dark"] .widget-card h3 {
  color: #fff4ea;
}
.widget-card span {
  color: var(--brown);
  font-size: .88rem;
}

.chart-card {
  padding: 1.15rem;
}
.chart-card strong {
  color: var(--text-main);
}
.chart-card p {
  color: var(--text-muted);
  font-size: .92rem;
}
.fake-chart {
  height: 185px;
  display: flex;
  align-items: end;
  gap: .8rem;
  padding-top: .75rem;
}
.fake-chart .bar {
  flex: 1;
  min-width: 20px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, var(--caramel), var(--navy-2));
}
.h-45 { height: 45%; }
.h-55 { height: 55%; }
.h-62 { height: 62%; }
.h-70 { height: 70%; }
.h-88 { height: 88%; }
.h-95 { height: 95%; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.05rem;
}
.info-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--brown);
}
.info-card strong {
  display: block;
  color: var(--text-main);
}
.info-card p {
  margin: .28rem 0 0;
  color: var(--text-muted);
  font-size: .92rem;
}

.coming-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, var(--caramel), var(--brown));
  color: #fff;
  padding: .8rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(150,87,47,.28);
}

.features-section {
  background: var(--surface-2);
}
.feature-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border-theme);
  border-radius: 22px;
  padding: 1.6rem;
  transition: .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17,31,43,.08);
}
.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--brown);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  color: var(--navy);
  font-size: 1.28rem;
}
html[data-theme="dark"] .feature-card h3 {
  color: #fff4ea;
}
.feature-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.cta-section {
  background: var(--page-bg);
}
.cta-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--surface-2) 82%, transparent));
  border: 1px solid var(--border-theme);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 16px 35px rgba(19, 34, 52, .06);
}

.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.76);
}
.footer-mini-logo {
  width: 120px;
  max-height: 40px;
  object-fit: contain;
}
.footer-sep {
  opacity: .45;
}

.app-modal {
  background: var(--modal-bg);
  color: var(--text-main);
  border: 1px solid var(--border-theme);
  border-radius: 22px;
}
.app-modal .btn-close {
  filter: none;
}
html[data-theme="dark"] .app-modal .btn-close {
  filter: invert(1);
}

@media (max-width: 1199.98px) {
  .preview-body {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 48px;
  }
  .preview-body {
    grid-template-columns: 1fr;
  }
  .preview-sidebar {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .preview-sidebar ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }
  .preview-sidebar li {
    margin-bottom: 0;
  }
  .coming-badge {
    position: static;
    margin: 0 1rem 1rem;
    display: inline-flex;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .preview-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .preview-pill {
    white-space: normal;
  }
  .preview-sidebar ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 120px;
  }
  .hero-section {
    padding-bottom: 38px;
  }
  .mini-status-card {
    padding: .9rem;
  }
  .feature-card,
  .cta-box {
    border-radius: 20px;
  }
}
