/* Live Preview landing page of Builder Management (demo.360odoo.tech/builder-management). */

:root {
  --crimson: #960125;
  --crimson-dark: #6d001b;
  --crimson-soft: #fdf0f2;
  --navy: #0b1324;
  --ink: #111827;
  --muted: #5b6474;
  --line: #e6e8ef;
  --bg: #f6f7fb;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(11, 19, 36, 0.28);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--crimson); }
h1, h2 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  background: rgba(150, 1, 37, 0.08);
  color: var(--crimson-dark);
}

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #f4b400; outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------- header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 2; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px; color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.header-tag {
  font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.78);
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
}

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(11, 19, 36, 0.94) 0%, rgba(11, 19, 36, 0.78) 45%, rgba(11, 19, 36, 0.35) 100%),
    url('img/hero.webp') center / cover no-repeat,
    var(--navy);
  padding: 140px 0 120px;
}
.hero-inner { max-width: 1180px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; max-width: 18ch; }
.hero-subtitle { margin: 16px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; color: #fbd9e0; }
.hero-text { margin: 14px 0 0; max-width: 58ch; color: rgba(255, 255, 255, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none;
  color: rgba(255, 255, 255, 0.75); font-size: 0.92rem;
}
.hero-facts strong { color: #fff; font-size: 1.3rem; font-weight: 700; margin-inline-end: 4px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font: 600 0.98rem/1.2 var(--font); text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn-icon { width: 18px; height: 18px; flex: none; transition: transform 0.18s ease; }
.btn:hover .btn-icon { transform: translate(2px, -2px); }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 12px 28px -12px rgba(150, 1, 37, 0.7); }
.btn-primary:hover { background: var(--crimson-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--crimson); }
.btn-light:hover { background: var(--crimson-soft); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* -------------------------------------------------------------- demos */
.demos { margin-top: -64px; position: relative; z-index: 1; padding-bottom: 72px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 28px; }
.demo-card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
.preview {
  position: relative;
  padding: 28px 28px 0;
  background: linear-gradient(160deg, #f1e4e8 0%, #eef1f8 60%, #e8ecf6 100%);
}
.browser {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.6), 0 18px 40px -18px rgba(11, 19, 36, 0.45);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  background: #f3f4f7; border-bottom: 1px solid var(--line);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d4d7df; }
.browser-bar span:first-child { background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar em {
  flex: 1; margin-inline-start: 10px; padding: 3px 10px; border-radius: 6px; background: #fff;
  font: 500 0.72rem/1.4 var(--font); font-style: normal; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.preview-float {
  position: absolute; width: 46%; right: 14px; bottom: -22px;
  border-radius: 12px; border: 4px solid #fff; box-shadow: 0 18px 40px -14px rgba(11, 19, 36, 0.5);
}
.phone {
  position: absolute; width: 23%; min-width: 92px; right: 18px; bottom: -26px;
  padding: 6px; border-radius: 22px; background: var(--navy);
  box-shadow: 0 20px 40px -14px rgba(11, 19, 36, 0.6);
}
.phone img { border-radius: 16px; }
.demo-body { display: flex; flex-direction: column; flex: 1; padding: 52px 32px 32px; }
.demo-label {
  margin: 0 0 8px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--crimson);
}
.demo-body h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; }
.demo-text { margin: 10px 0 0; color: var(--muted); font-size: 1.04rem; }
.checks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 32px; font-size: 0.95rem; }
.checks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--crimson-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23960125' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.demo-body .btn-block { margin-top: auto; }
.demo-note { margin: 14px 0 0; font-size: 0.84rem; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------- flow */
.flow { padding: 24px 0 72px; }
.flow h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); }
.flow-steps {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px;
  counter-reset: none;
}
.flow-steps li {
  position: relative; display: grid; gap: 6px; padding: 26px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.flow-steps li:not(:last-child)::after {
  content: '\2192'; position: absolute; inset-inline-end: -17px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--crimson); color: #fff; font-size: 1rem;
}
.flow-num {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px;
}
.flow-steps strong { font-size: 1.05rem; }
.flow-steps span:last-child { color: var(--muted); font-size: 0.92rem; }

/* ------------------------------------------------------------- notice */
.notice { padding-bottom: 56px; }
.notice-inner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: 16px; background: #fff7e6; border: 1px solid #f6dfae; color: #6b4e00;
}
.notice-inner svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice-inner p { margin: 0; font-size: 0.92rem; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 26px;
}
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* --------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .flow-steps li:not(:last-child)::after {
    content: '\2193'; inset-inline-end: auto; left: 50%; top: auto; bottom: -17px; transform: translateX(-50%);
  }
}
@media (max-width: 640px) {
  .header-tag { display: none; }
  .hero { padding: 112px 0 104px; }
  .hero-actions .btn { width: 100%; }
  .preview { padding: 18px 18px 0; }
  .demo-body { padding: 44px 22px 26px; }
  .preview-float { width: 52%; right: 10px; bottom: -18px; }
  .phone { right: 12px; bottom: -20px; border-radius: 18px; padding: 4px; }
  .phone img { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-icon { transition: none; }
  .btn:hover, .btn:hover .btn-icon { transform: none; }
}
