:root {
  --bg: #f4f3f6;
  --surface: #ffffff;
  --ink: #18141f;
  --muted: #6f6978;
  --line: #e4e0e8;
  --accent: #d71963;
  --accent-dark: #a70e48;
  --purple: #6e49f5;
  --orange: #f08d2e;
  --shadow: 0 24px 60px rgba(35, 24, 47, .10);
  --radius-lg: 30px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.page-shell { min-height: 100vh; overflow: hidden; }
.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
}
.brand-mark svg { width: 100%; fill: var(--accent); }
.brand-mark .brand-mark-cut { fill: none; stroke: white; stroke-width: 2.5; stroke-linecap: round; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: #504a58; font-size: 14px; font-weight: 650; }
.nav a:hover { color: var(--accent); }

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 610px;
  padding: 72px clamp(28px, 6vw, 84px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 82% 15%, rgba(215, 25, 99, .32), transparent 25%),
    radial-gradient(circle at 72% 72%, rgba(110, 73, 245, .24), transparent 34%),
    linear-gradient(135deg, #17131f 0%, #211526 48%, #2c1025 100%);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: 48px;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  z-index: -1;
  mask-image: linear-gradient(to left, black, transparent 74%);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: .99;
  letter-spacing: -.055em;
}
.hero-text {
  max-width: 630px;
  margin: 28px 0 0;
  color: #c8c2ce;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }
.button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 12px 28px rgba(215,25,99,.3); }
.button-primary:hover { background: #e82971; }
.button-secondary { border: 1px solid rgba(255,255,255,.22); color: white; background: rgba(255,255,255,.06); }
.button-secondary:hover { background: rgba(255,255,255,.12); }
.button-light { background: white; color: var(--ink); white-space: nowrap; }

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.code-window {
  width: min(100%, 500px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10,8,15,.76);
  box-shadow: 0 32px 80px rgba(0,0,0,.38);
  transform: rotate(2deg);
  backdrop-filter: blur(14px);
}
.window-bar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #8f8998;
  font-size: 12px;
}
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4b4651; }
.window-bar i:first-child { background: #d71963; }
.window-bar i:nth-child(2) { background: #f08d2e; }
.window-bar i:nth-child(3) { background: #65b96b; }
.window-bar span { margin-left: 8px; }
pre { margin: 0; padding: 36px 28px 42px; overflow: hidden; font: 600 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ede9f1; }
code span { color: #ef5e98; }
code b { color: #c8b9ff; font-weight: 600; }
.floating-card {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 22px 50px rgba(0,0,0,.3);
}
.floating-card-pdf { right: 0; top: 56px; background: var(--accent); transform: rotate(8deg); }
.floating-card-html { left: 0; bottom: 36px; background: var(--purple); transform: rotate(-9deg); }

.services-section { width: min(1180px, calc(100% - 40px)); margin: 118px auto 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .workflow h2, .cta h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading > p { max-width: 450px; margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.service-card {
  min-height: 540px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(32,24,39,.06);
  box-shadow: 0 18px 45px rgba(34,25,44,.06);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.service-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  opacity: .09;
  background: currentColor;
}
.service-card-html { color: var(--accent); }
.service-card-pdf { color: var(--purple); }
.service-card-template { color: var(--orange); }
.service-card h3 { color: var(--ink); margin: 28px 0 16px; font-size: 30px; letter-spacing: -.035em; }
.service-card p { color: var(--muted); line-height: 1.7; margin: 0; font-size: 15px; }
.service-card ul { color: #4f4956; list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 12px; }
.service-card li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 14%, transparent); }
.service-icon { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 10%, white); }
.service-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.service-number { position: absolute; top: 32px; right: 28px; font-size: 13px; font-weight: 900; letter-spacing: .12em; opacity: .65; }
.service-link { margin-top: auto; min-height: 52px; padding: 0 18px; border-radius: 14px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-size: 14px; font-weight: 750; }
.service-link span { font-size: 22px; transition: transform .2s ease; }
.service-link:hover span { transform: translateX(4px); }

.workflow {
  width: min(1180px, calc(100% - 40px));
  margin: 118px auto 0;
  padding: clamp(34px, 5vw, 70px);
  background: #eae7ee;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.workflow-copy > p:last-child { color: var(--muted); line-height: 1.7; margin: 24px 0 0; max-width: 480px; }
.workflow-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.workflow-list li { background: white; border-radius: 18px; padding: 20px; display: flex; gap: 18px; align-items: center; }
.workflow-list li > span { flex: 0 0 45px; height: 45px; border-radius: 14px; background: var(--ink); color: white; display: grid; place-items: center; font-weight: 850; }
.workflow-list strong { font-size: 16px; }
.workflow-list p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; font-size: 14px; }

.cta {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: clamp(34px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta .eyebrow { color: #ffd8e7; }
.cta h2 { max-width: 730px; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 64px auto 0;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}
.footer-brand { color: var(--ink); font-weight: 850; }
footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { max-width: 760px; }
  .hero-visual { min-height: 360px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .workflow { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 720px) {
  .topbar { width: min(100% - 28px, 1180px); }
  .nav { display: none; }
  .hero { width: calc(100% - 18px); border-radius: 26px; padding: 54px 24px; gap: 28px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-visual { min-height: 290px; }
  .code-window { transform: none; }
  pre { font-size: 11px; padding: 26px 18px 30px; }
  .floating-card { width: 62px; height: 62px; border-radius: 17px; font-size: 11px; }
  .floating-card-pdf { right: -5px; top: 30px; }
  .floating-card-html { left: -4px; bottom: 16px; }
  .services-section, .workflow, .cta, footer { width: calc(100% - 28px); }
  .services-section { margin-top: 82px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .service-card { padding: 25px; }
  .workflow { margin-top: 82px; padding: 30px 22px; }
  .cta { margin-top: 18px; align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
