:root {
  --bg: #f4efe8;
  --surface: #fffaf3;
  --ink: #1f1c19;
  --muted: #5e5550;
  --accent: #c66a2b;
  --accent-2: #8f2e2b;
  --dark: #292522;
  --dark-2: #36312d;
  --line: #dbcdbf;
  --btn-height: 52px;
  --radius: 16px;
  --shadow: 0 24px 50px rgba(42, 25, 12, 0.13);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.68;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}

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

p,
li,
label,
small,
button,
input {
  font-size: 18px;
  line-height: 1.65;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

section {
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}

.glow-one {
  width: 420px;
  height: 420px;
  background: #e7b78d;
  top: -120px;
  right: -140px;
}

.glow-two {
  width: 360px;
  height: 360px;
  background: #b35047;
  bottom: -100px;
  left: -120px;
}

.mesh {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(198, 106, 43, .12), rgba(139, 95, 70, .05), rgba(143, 46, 43, .09));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 232, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 131, 112, .3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  font-weight: 700;
  letter-spacing: .2px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill,
.btn {
  height: var(--btn-height);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.pill {
  border-color: var(--line);
  background: rgba(255, 250, 243, .9);
  cursor: pointer;
  min-width: 150px;
}

.btn.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:focus-visible,
.pill:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ffb98c;
  outline-offset: 2px;
}

.lang-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  padding: 8px;
  @media (max-width: 900px) {
      max-height: 150px;
      overflow-y: scroll;
      left: 0;
      right: auto;
  }
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: #f5ebe2;
}

.lang-dropdown.open .dropdown-menu {
  display: block;
}

.flag-svg {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d1c2b4;
  flex: 0 0 auto;
}

.burger {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 48px;
  height: 48px;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, .45);
  display: none;
  z-index: 30;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  width: min(420px, 92%);
  height: 100%;
  background: #fff8f2;
  margin-left: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-close {
  align-self: flex-end;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.reverse> :first-child {
  order: 2;
}

.reverse> :last-child {
  order: 1;
}

.section-dark {
  background: var(--dark);
  color: #f7f0e8;
}

.section-soft-dark {
  background: var(--dark-2);
  color: #f7f0e8;
}

.section-light {
  background: var(--surface);
}

.hero {
  padding-top: 100px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #dfa675;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  line-height: 1.15;
  margin: 6px 0 16px;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1.24;
  margin: 0 0 14px;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.hero-points {
  padding-left: 20px;
}

.glass-panel,
.visual-card,
.review-card,
.faq-item,
.kpi-grid article {
  background: rgba(255, 252, 247, .92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 100%;
}

.section-dark .glass-panel,
.section-soft-dark .visual-card,
.section-soft-dark .faq-item {
  background: rgba(255, 245, 236, .95);
  color: var(--ink);
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-box input {
  width: 100%;
  border: 1px solid #c9b4a1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.kpi-strip {
  background: linear-gradient(120deg, #f1dfd0, #efe4da);
}
.kpi-grid article h2 {
  font-size: clamp(1.5rem, 1vw, 2.3rem);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stack {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
  min-height: 52px;
}

.stack span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding-left: 8px;
}

.stack span:nth-child(1) {
  background: #8f2e2b
}

.stack span:nth-child(2) {
  background: #b14c35
}

.stack span:nth-child(3) {
  background: #cc6b3b
}

.stack span:nth-child(4) {
  background: #de8b46
}

.architecture ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.timeline article {
  background: #f6ede4;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.timeline span {
  font-weight: 600;
  color: #8a3f2e;
}

.compare-bars .bar-row {
  margin-bottom: 12px;
}

.compare-bars label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.compare-bars .bar-row div {
  display: grid;
  gap: 7px;
}

.compare-bars .us,
.compare-bars .base {
  display: block;
  border-radius: 999px;
  color: #fff;
  padding: 4px 10px;
  font-weight: 600;
}

.compare-bars .us {
  background: linear-gradient(90deg, #c66a2b, #8f2e2b);
}

.compare-bars .base {
  background: #8f847b;
  min-width: 60px;
}

.ring-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ring {
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-weight: 700;
  background: conic-gradient(#c66a2b calc(var(--val) * 1%), #e8d6c6 0);
  color: #2c241f;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  @media (max-width: 470px) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.matrix-grid span {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #cbb8a9;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ca7b46, #8f2e2b);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.review-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 14px;
  color: #a94d2d;
  font-weight: 700;
}

.meta {
  color: var(--muted);
  margin: 8px 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item button {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 600;
  padding: 0;
  color: var(--ink);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin-top .3s ease;
}

.faq-content.open {
  max-height: 400px;
  margin-top: 10px;
}

.site-footer {
  background: #211d1b;
  color: #efe8df;
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
}

.privacy-link {
  background: none;
  border: 0;
  color: #f0bf96;
  text-decoration: underline;
  cursor: pointer;
  text-align: start;
  padding: 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(19, 15, 13, .68);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 40;
}

.modal.open {
  display: grid;
}

.modal-panel {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.btn.ghost {
  background: #f3e7da;
  border: 1px solid var(--line);
}

body.lock {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {

  .main-nav {
    display: none;
  }
  .header-actions {
    min-width: auto;
    margin-left: auto;
  }
  .header-actions .pill {
    min-width: auto;
  }
  .burger {
    display: inline-grid;
    place-items: center;
  }

  .split,
  .kpi-grid,
  .timeline,
  .ring-grid,
  .review-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  section {
    padding: 68px 0;
  }
}
@media (max-width:  550px) {
  .hero {
    padding-top: 30px;
  }
  .site-header .container {
    padding: 0 10px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .pill {
    min-width: auto;
    font-size: 13px;
    padding:  0 10px;
  }
  .btn.cta {
    padding:  0 10px;
    font-size: 13px;
    text-wrap: nowrap;
  }
  .header-inner {
    gap: 10px;
  }
}

.custom_btn {
  width: 100%;
}

.faq-item,
button {
  cursor: pointer;
}
.custom_logo {
  max-width: 110px;
}
.input-box {
  position: relative;
  margin-bottom: 10px;
}
.custom_btn {
  margin-top: 45px;
}