:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #172033;
  --muted: #697386;
  --line: #dbe3ec;
  --brand: #2367d1;
  --brand-dark: #174c9e;
  --accent: #4fa3a5;
  --shadow: 0 16px 40px rgba(23, 32, 51, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(79,163,165,.10), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(35,103,209,.09), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,249,252,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,227,236,.8);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  box-shadow: 0 7px 18px rgba(35,103,209,.22);
}

.brand-mark svg { width: 21px; height: 21px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  padding: 96px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(35,103,209,.18);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
  background: rgba(255,255,255,.75);
  border-color: var(--line);
}

.preview {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow);
}

.preview-window {
  min-height: 415px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dfe6ed;
  background: #fff;
}

.preview-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #f4f6f9;
  border-bottom: 1px solid #e5e9ef;
}

.preview-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7d0dc;
}

.workspace {
  display: grid;
  grid-template-columns: 105px 1fr;
  min-height: 370px;
}

.side {
  padding: 16px 12px;
  background: #f8fafc;
  border-right: 1px solid #e5e9ef;
}

.side-row {
  height: 10px;
  margin: 10px 0;
  border-radius: 8px;
  background: #dce4ee;
}

.side-row.short { width: 62%; }

.canvas-area {
  padding: 24px;
}

.canvas-label {
  width: 34%;
  height: 11px;
  border-radius: 8px;
  background: #d9e3ef;
  margin-bottom: 18px;
}

.canvas {
  height: 230px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(35,103,209,.12), rgba(79,163,165,.10)),
    #f7f9fc;
  border: 1px solid #dce4ec;
  position: relative;
  overflow: hidden;
}

.card-shape {
  position: absolute;
  border: 1px solid rgba(35,103,209,.18);
  background: rgba(255,255,255,.78);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(23,32,51,.06);
}

.card-a { width: 42%; height: 44%; left: 9%; top: 16%; }
.card-b { width: 34%; height: 34%; right: 8%; top: 27%; }
.card-c { width: 49%; height: 24%; left: 25%; bottom: 8%; }

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-title h2,
.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.035em;
}

.section-title p,
.page-head p {
  color: var(--muted);
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
}

.feature h3 {
  margin: 10px 0 7px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 800;
}

.page-main {
  min-height: calc(100vh - 145px);
  padding: 72px 0 90px;
}

.page-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.prose {
  max-width: 780px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
}

.prose h2 {
  margin-top: 34px;
  font-size: 22px;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  color: #4f5b6d;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; }

.not-found {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 10px;
  font-size: 88px;
}

.not-found p { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links a:nth-child(2) { display: none; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav-links { gap: 12px; }
  .nav-links a:nth-child(1),
  .nav-links a:nth-child(2) { display: none; }
  h1 { font-size: 43px; }
  .workspace { grid-template-columns: 78px 1fr; }
}
