:root {
  --bg: #f5f7fb;
  --bg-alt: #eaf0fb;
  --panel: rgba(255, 255, 255, 0.95);
  --surface: #ffffff;
  --surface-muted: #f0f5ff;
  --ink: #1e2430;
  --muted: #6b7588;
  --line: #d7ddea;
  --accent: #1d4ed8;
  --accent-deep: #163fae;
  --accent-warm: #4f8dff;
  --accent-soft: #dbe8ff;
  --shadow: 0 10px 24px rgba(26, 44, 82, 0.12);
  --shadow-soft: 0 8px 18px rgba(26, 44, 82, 0.08);
  --max-width: 1180px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(79, 141, 255, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 52%, var(--bg-alt) 100%);
}

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

button,
summary {
  font: inherit;
}

/* ─── Page shell ───────────────────────────────────────────── */

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 20px 44px;
}

.site-header,
.site-footer,
.hero,
.proof-strip,
.section {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 5;
  margin-bottom: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand,
.header-actions,
.footer-links,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #4c8dff 0%, var(--accent) 100%);
  box-shadow:
    0 0 0 1px rgba(29, 78, 216, 0.12),
    0 8px 18px rgba(29, 78, 216, 0.24);
}

.brand-name {
  font-size: 1.04rem;
}

.header-actions,
.footer-links {
  flex-wrap: wrap;
}

.lang-switch,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.lang-switch:hover,
.footer-links a:hover {
  color: var(--ink);
}

.lang-switch {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #4c8dff 0%, var(--accent) 100%);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

.button-secondary {
  border-color: var(--line);
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.button-small {
  min-height: 40px;
  padding-inline: 14px;
  color: #fff;
  background: var(--accent);
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  max-width: 1080px;
  padding: 42px 0 38px;
  margin: 0 auto 20px;
  text-align: center;
}

h1 {
  max-width: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong, var(--accent-deep));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 4.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.headline-accent {
  color: var(--accent);
}

h2 {
  max-width: 17ch;
  margin-bottom: 12px;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.hero-text,
.section-heading p,
.faq-list p,
.proof-strip span,
.site-footer {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 560px;
  margin-inline: auto;
  font-size: 1.1rem;
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.trust-line {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ─── Tool buttons (used in AI mockup rail) ────────────────── */

.tool {
  padding: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.tool.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

/* ─── Proof strip ──────────────────────────────────────────── */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.proof-strip > div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.proof-strip strong {
  font-size: 1.08rem;
}

.proof-strip span {
  line-height: 1.35;
}

.proof-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Badge ────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-beta {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface) 90%);
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

/* ─── Sections ─────────────────────────────────────────────── */

.section,
.faq-section {
  margin-top: 28px;
}

.section {
  padding: 34px 0 8px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

/* ─── AI section ───────────────────────────────────────────── */

.ai-section {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ai-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #090f1b;
  color: #e6edf8;
  box-shadow: var(--shadow);
}

.ai-section .eyebrow {
  color: rgba(159, 176, 205, 0.8);
}

.ai-section h2 {
  color: #fff;
  max-width: 20ch;
}

.ai-section p {
  color: rgba(230, 237, 248, 0.72);
}

.exclusive-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 141, 255, 0.35);
  background: rgba(79, 141, 255, 0.12);
  color: #dce8ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ai-copy {
  padding-right: 48px;
}

.ai-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button-ai-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #4c8dff 0%, var(--accent) 100%);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-ai-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(29, 78, 216, 0.4);
}

.ai-note {
  color: rgba(159, 176, 205, 0.74);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ─── AI editor mockup ─────────────────────────────────────── */

.ai-visual {
  padding-left: 24px;
}

.ai-mockup {
  border: 1px solid #2a3b63;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(4, 8, 18, 0.45);
}

.ai-mockup-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid #2a3b63;
  background: rgba(20, 30, 52, 0.88);
}

.ai-mockup-topbar > span:not(.ai-status-pill) {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.ai-mockup-topbar strong {
  flex: 1;
  margin-left: 4px;
  font-size: 0.76rem;
  color: rgba(230, 237, 248, 0.7);
}

.ai-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79, 141, 255, 0.38);
  background: rgba(79, 141, 255, 0.12);
  color: #dce8ff;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.ai-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-warm);
  flex-shrink: 0;
}

.ai-mockup-body {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 120px;
  height: 300px;
}

.ai-mockup-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid #2a3b63;
  background: rgba(20, 30, 52, 0.6);
}

.ai-mockup-canvas {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(143, 183, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 183, 255, 0.08) 1px, transparent 1px),
    rgba(9, 15, 27, 0.68);
  background-size: 20px 20px;
}

.ai-mockup-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-left: 1px solid #2a3b63;
  background: rgba(20, 30, 52, 0.6);
}

.ai-panel-title {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(230, 237, 248, 0.78);
}

/* Rooms in the AI canvas (tuned for 300px canvas height) */
.ai-room {
  position: absolute;
  border: 3px solid rgba(143, 183, 255, 0.52);
  background: rgba(79, 141, 255, 0.14);
}

.ai-r1 { inset: 25px 45% 158px 34px; }
.ai-r2 { inset: 25px 32px 127px 55%; }
.ai-r3 { inset: 164px 40% 23px 34px; }
.ai-r4 {
  inset: 184px 32px 23px 62%;
  border-style: dashed;
  border-color: rgba(79, 141, 255, 0.58);
  background: rgba(79, 141, 255, 0.1);
}

/* Openings in the AI canvas */
.ai-opening {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: var(--accent-warm);
  opacity: 0.72;
}

.ai-o1 { width: 49px; height: 4px; left: 42%; top: 137px; }
.ai-o2 { width: 4px; height: 40px; left: 56%; top: 76px; }
.ai-o3 { width: 4px; height: 49px; left: 28px; top: 60px; }

/* AI confidence chips */
.ai-chip {
  position: absolute;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid rgba(79, 141, 255, 0.42);
  border-radius: 4px;
  background: rgba(79, 141, 255, 0.16);
  color: #dce8ff;
  font-size: 0.6rem;
  font-weight: 900;
  white-space: nowrap;
}

.ai-c1 { left: 45px; top: 53px; }
.ai-c2 { right: 46px; top: 67px; }
.ai-c3 { left: 53px; bottom: 54px; }
.ai-c4 { right: 46px; bottom: 55px; }

/* AI result rows in the side panel */
.ai-result-row {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.ai-result-row span {
  color: rgba(159, 176, 205, 0.72);
  font-size: 0.65rem;
}

.ai-result-row strong {
  font-size: 0.78rem;
  color: rgba(230, 237, 248, 0.9);
}

.ai-result-ready {
  border-color: rgba(79, 141, 255, 0.32);
  background: rgba(79, 141, 255, 0.1);
}

.ai-result-ready strong {
  color: #dce8ff;
}

/* ─── FAQ ──────────────────────────────────────────────────── */

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

/* ─── Footer ───────────────────────────────────────────────── */

.site-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

/* ─── Scroll reveal ────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 1040px) {
  .page-shell {
    padding-inline: clamp(28px, 5vw, 56px);
  }

  h2 {
    max-width: none;
  }

  .ai-section-inner {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 28px;
  }

  .ai-copy {
    padding-right: 0;
  }

  .ai-visual {
    padding-left: 0;
  }

  .hero {
    max-width: 920px;
  }

  h1 {
    font-size: 3.85rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding-inline: clamp(28px, 6vw, 48px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: relative;
    top: auto;
    margin-bottom: 34px;
    padding: 12px;
  }

  .brand {
    width: auto;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .header-actions {
    width: auto;
    gap: 8px;
  }

  .lang-switch {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    line-height: 1;
  }

  .button-small {
    min-height: 38px;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 3.25rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2.35rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip > div {
    min-height: auto;
  }

  .ai-mockup-panel {
    display: none;
  }

  .ai-mockup-body {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 14px 24px 34px;
  }

  .site-header {
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .lang-switch,
  .header-actions .button-small {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding-inline: 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .header-actions .button-small {
    padding-inline: 14px;
  }

  .hero {
    padding: 24px 0 28px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.04;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .trust-line {
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .proof-strip {
    gap: 10px;
    margin-bottom: 22px;
  }

  .proof-strip > div {
    padding: 14px;
  }

  .proof-strip strong {
    font-size: 0.96rem;
  }

  .proof-strip span {
    font-size: 0.84rem;
  }

  .faq-list details {
    padding: 14px;
  }

  .section {
    padding-top: 34px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .ai-section-inner {
    padding: 24px 20px;
    gap: 20px;
  }

  .ai-actions {
    gap: 10px;
  }

  .button-ai-cta {
    width: 100%;
  }

  .ai-mockup-rail {
    display: none;
  }

  .ai-mockup-body {
    grid-template-columns: minmax(0, 1fr);
    height: 240px;
  }

  .ai-status-pill {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-inline: 18px;
  }

  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .ai-mockup-body {
    height: 200px;
  }
}
