:root {
  --brand: #7582E9;
  --brand-deep: #0b63ff;
  --orange: #FFAA31;
  --ink: #090b12;
  --muted: #667085;
  --soft: #f6f8fb;
  --line: #e6eaf2;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  --radius: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, rgba(117,130,233,.18), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(255,170,49,.12), transparent 28%),
    #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 7vw, 96px);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  flex: 0 0 36px;
}
.brand-mark img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
.mini-logo {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.mini-logo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}

.site-nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 60px); font-weight: 650; font-size: 14px; }
.site-nav a { color: #141926; }
.site-nav a:hover { color: var(--brand-deep); }
.header-cta {
  justify-self: end;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px;
  color: #fff; font-weight: 750; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), #0b4eea);
  box-shadow: 0 14px 30px rgba(11,99,255,.26);
}
.menu-toggle { display: none; background: transparent; border: 0; }

.section-shell { width: min(1440px, calc(100% - 56px)); margin: 0 auto; }
.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  gap: 36px;
  align-items: center;
  padding: 50px 0 34px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: #303848;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 26px rgba(16,24,40,.05);
}
.hero h1 { margin: 24px 0 18px; font-size: clamp(48px, 6vw, 82px); line-height: .96; letter-spacing: -0.07em; }
.blue-dot { color: var(--brand-deep); }
.hero-subtitle { max-width: 520px; margin: 0 0 28px; color: var(--muted); font-size: 19px; line-height: 1.45; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 24px; }
.store-button {
  display: inline-flex; align-items: center; gap: 14px;
  height: 64px; min-width: 190px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: 0 12px 28px rgba(16,24,40,.12);
}
.store-button small { display: block; font-size: 12px; line-height: 1; }
.store-button strong { display: block; font-size: 22px; line-height: 1.05; }
.store-icon { font-size: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; color: #546073; font-size: 14px; font-weight: 650; }

.hero-product { position: relative; min-height: 470px; }
.tablet-mockup, .laptop-mockup { position: absolute; background: #05070b; border-radius: 26px; box-shadow: var(--shadow); }
.tablet-mockup { left: 0; top: 0; width: min(64%, 620px); min-width: 500px; padding: 14px; z-index: 3; }
.tablet-mockup .screen { aspect-ratio: 4 / 3; background: #fff; border-radius: 14px; overflow: hidden; }
.tablet-mockup .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.laptop-mockup { right: 0; top: 72px; width: 48%; min-width: 440px; padding: 14px 14px 0; z-index: 1; }
.laptop-mockup .screen { aspect-ratio: 1.6; background: #fff; border-radius: 8px; overflow: hidden; }
.laptop-mockup .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.laptop-mockup .base { height: 12px; width: 110%; margin-left: -5%; background: linear-gradient(#202530,#05070b); border-radius: 0 0 50% 50%; }

.feature-stage { padding: 0 0 24px; }
.feature-layout {
  display: grid;
  grid-template-columns: 210px 300px 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px 34px;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.feature-menu { grid-column: 1; grid-row: 1 / 3; display: grid; gap: 8px; align-content: start; padding: 2px; }
.feature-menu button { display: flex; gap: 12px; align-items: center; height: 48px; border: 0; border-radius: 13px; padding: 0 18px; background: transparent; font-weight: 700; color: #111827; text-align: left; cursor: pointer; }
.feature-menu button.active { color: #fff; background: linear-gradient(135deg, var(--brand-deep), #0753dc); box-shadow: 0 14px 24px rgba(11,99,255,.22); }
.feature-tabs { grid-column: 2 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #f6f8fc; }
.feature-tabs button { min-height: 48px; border: 0; border-radius: 11px; padding: 8px 12px; color: #596579; background: transparent; font-size: 12px; font-weight: 750; line-height: 1.2; cursor: pointer; }
.feature-tabs button:hover { color: var(--brand-deep); background: rgba(255,255,255,.72); }
.feature-tabs button.active { color: var(--brand-deep); background: #fff; box-shadow: 0 8px 22px rgba(16,24,40,.1); }
.spotlight-copy { grid-column: 2; grid-row: 2; min-width: 0; }
.section-kicker { margin: 20px 0 12px; color: var(--brand-deep); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 850; }
.section-kicker.orange { color: var(--orange); }
.spotlight-copy h2, .paperwork h2, .roadmap h2, .pricing h2 { margin: 0 0 12px; font-size: clamp(34px, 3vw, 48px); letter-spacing: -0.05em; }
.spotlight-copy p { color: var(--muted); line-height: 1.55; }
.spotlight-copy ul { list-style: none; padding: 14px 0; margin: 0; display: grid; gap: 15px; color: #596579; }
.spotlight-copy li::before { content: "⌘"; color: var(--brand-deep); font-weight: 900; margin-right: 14px; }
.carousel-controls { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.circle-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--brand-deep); background: #fff; cursor: pointer; }
.circle-btn.primary { color: #fff; background: var(--brand-deep); border-color: var(--brand-deep); }
.video-card { grid-column: 3; grid-row: 2; position: relative; min-height: 390px; border-radius: 20px; overflow: hidden; background: #f0f3f8; border: 1px solid var(--line); }
.ruler { position: absolute; background: repeating-linear-gradient(90deg, #d7dee9 0 1px, transparent 1px 18px); opacity: .75; }
.ruler-top { top: 0; left: 0; right: 0; height: 22px; }
.ruler-left { top: 0; left: 0; bottom: 0; width: 22px; background: repeating-linear-gradient(180deg, #d7dee9 0 1px, transparent 1px 18px); }
.a4-paper { width: min(560px, 68%); min-height: 350px; margin: 36px auto 70px; background: #fff; padding: 36px; box-shadow: 0 18px 40px rgba(16,24,40,.11); }
.paper-header { display: flex; justify-content: space-between; align-items: start; }
.paper-header h3 { font-size: 28px; margin: 0 0 22px; }
.paper-header strong { color: #133e97; text-align: right; }
.table-block { height: 44px; background: linear-gradient(#f1f3f6 0 32%, #fff 32%); border: 1px solid #d8dee9; margin-bottom: 14px; }
.table-block.large { height: 72px; }
.table-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #d8dee9; }
.table-grid span { height: 28px; border-right: 1px solid #d8dee9; border-bottom: 1px solid #d8dee9; }
.media-controls { position: absolute; left: 28px; right: 28px; bottom: 18px; height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 18px; color: #fff; background: rgba(8,12,20,.92); border-radius: 7px; }
.progress { flex: 1; height: 5px; border-radius: 999px; background: #344054; overflow: hidden; }
.progress i { display: block; width: 34%; height: 100%; background: var(--brand-deep); }
.layout-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 180px; padding: 30px 16px; background: rgba(255,255,255,.9); border-left: 1px solid var(--line); }
.layout-panel label { display: block; color: #667085; font-size: 12px; margin: 16px 0 6px; }
.layout-panel div { border: 1px solid #e4e8ef; border-radius: 8px; padding: 9px; font-size: 12px; }
.option-row, .margin-grid { display: grid !important; grid-template-columns: repeat(2,1fr); gap: 8px; border: 0 !important; padding: 0 !important; }
.option-row button { height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.option-row .selected { background: var(--brand-deep); }

.sample-carousel { padding: 0 0 24px; }
.sample-carousel-shell { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.sample-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #f6f8fc; }
.sample-tabs button { min-height: 50px; border: 0; border-radius: 11px; padding: 9px 16px; color: #596579; background: transparent; font-size: 13px; font-weight: 750; line-height: 1.2; cursor: pointer; }
.sample-tabs button:hover { color: var(--brand-deep); background: rgba(255,255,255,.72); }
.sample-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--brand-deep), #0753dc); box-shadow: 0 10px 24px rgba(11,99,255,.2); }
.sample-showcase { display: grid; grid-template-columns: 330px 1fr; gap: 34px; margin-top: 24px; }
.sample-copy { padding: 12px 2px 8px; }
.sample-copy h2 { margin: 0 0 12px; font-size: clamp(34px, 3vw, 48px); letter-spacing: -0.05em; }
.sample-copy > p:not(.section-kicker) { color: var(--muted); line-height: 1.55; }
.sample-copy ul { list-style: none; padding: 14px 0; margin: 0; display: grid; gap: 15px; color: #596579; }
.sample-copy li::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 14px; }
.sample-visual { --sample-accent: var(--brand-deep); position: relative; display: grid; place-items: center; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--sample-accent) 18%, transparent), transparent 30%), #eef2f8; }
.sample-visual::before { content: ""; position: absolute; inset: 20px; border: 1px dashed rgba(102,112,133,.22); border-radius: 15px; }
.sample-visual[data-sample-preview="flha"] { --sample-accent: #ff8a1f; }
.sample-visual[data-sample-preview="invoice"] { --sample-accent: #20a05b; }
.sample-paper { position: relative; z-index: 1; width: min(560px, 78%); min-height: 330px; padding: 32px; border-radius: 7px; background: #fff; box-shadow: 0 20px 50px rgba(16,24,40,.16); transform: rotate(-.6deg); }
.sample-paper-header { display: flex; justify-content: space-between; gap: 24px; align-items: start; padding-bottom: 20px; border-bottom: 3px solid var(--sample-accent); }
.sample-paper-header small { color: var(--sample-accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.sample-paper-header h3 { margin: 7px 0 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.035em; }
.sample-paper-header strong { display: grid; place-items: center; flex: 0 0 54px; min-height: 42px; padding: 7px; border-radius: 10px; color: #fff; background: var(--sample-accent); font-size: 12px; text-align: center; }
.sample-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 24px 0; }
.sample-fields div { min-height: 62px; padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 8px; background: #fbfcfe; }
.sample-fields div:nth-child(3), .sample-fields div:nth-child(4) { grid-column: 1 / -1; }
.sample-fields span { display: block; color: #667085; font-size: 10px; font-weight: 650; }
.sample-fields i { display: block; height: 20px; margin-top: 8px; border-bottom: 1px solid #cfd7e4; }
.sample-paper-footer { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 10px; }
.sample-paper-footer span { height: 34px; border-radius: 7px; background: color-mix(in srgb, var(--sample-accent) 12%, #f3f5f8); border: 1px solid color-mix(in srgb, var(--sample-accent) 22%, #e2e7ef); }

.paperwork, .roadmap, .pricing { text-align: center; padding: 42px 0; }
.paperwork > p, .roadmap > div > p { color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 30px; }
.benefit-grid article { display: flex; align-items: center; gap: 18px; text-align: left; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 34px rgba(16,24,40,.06); }
.benefit-icon { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; background: var(--brand-deep); font-weight: 900; font-size: 24px; }
.orange-bg { background: #ff7a1a; }
.benefit-grid h3, .roadmap-grid h3 { margin: 0 0 6px; }
.benefit-grid p, .roadmap-grid p, .price-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.roadmap { display: grid; grid-template-columns: 360px 1fr; gap: 36px; text-align: left; align-items: start; }
.roadmap-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.roadmap-grid article, .price-card { border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 22px; padding: 24px; box-shadow: 0 12px 34px rgba(16,24,40,.06); }
.roadmap-grid strong { color: var(--brand-deep); }
.price-card { width: min(560px, 100%); margin: 26px auto 0; display: grid; gap: 12px; justify-items: center; }
.price-card > strong { font-size: 54px; letter-spacing: -.06em; }
.site-footer { width: min(1440px, calc(100% - 56px)); margin: 40px auto; padding: 32px 0; display: flex; justify-content: space-between; align-items: center; color: #667085; border-top: 1px solid var(--line); }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-product { min-height: 470px; }
  .feature-layout { grid-template-columns: 190px 1fr; }
  .feature-menu { grid-column: 1; grid-row: 1 / 3; }
  .feature-tabs { grid-column: 2; grid-row: 1; }
  .spotlight-copy { grid-column: 2; grid-row: 2; }
  .video-card { grid-column: 1 / -1; grid-row: 3; }
  .sample-showcase { grid-template-columns: 280px 1fr; }
  .layout-panel { display: none; }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: grid; gap: 4px; }
  .menu-toggle span { width: 24px; height: 2px; background: #111827; }
  .site-nav.open { display: grid; position: absolute; top: 76px; left: 18px; right: 18px; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open a { padding: 18px; border-bottom: 1px solid var(--line); }
  .section-shell { width: min(100% - 28px, 1440px); }
  .hero h1 { font-size: 50px; }
  .tablet-mockup, .laptop-mockup { position: relative; left: auto; right: auto; top: auto; width: 100%; min-width: 0; margin-bottom: 18px; }
  .laptop-mockup { display: none; }
  .feature-layout { grid-template-columns: 1fr; padding: 18px; }
  .feature-menu { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, 1fr); }
  .feature-menu button { font-size: 13px; padding: 0 12px; }
  .feature-tabs { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight-copy { grid-column: 1; grid-row: auto; }
  .video-card { grid-column: 1; grid-row: auto; }
  .sample-carousel-shell { padding: 18px; }
  .sample-tabs { grid-template-columns: 1fr; }
  .sample-showcase { grid-template-columns: 1fr; }
  .sample-visual { min-height: 360px; }
  .sample-paper { width: 88%; padding: 24px; }
  .a4-paper { width: 92%; padding: 22px; }
  .paper-header h3 { font-size: 22px; }
  .benefit-grid, .roadmap, .roadmap-grid { grid-template-columns: 1fr; }
  .store-buttons { gap: 14px; }
  .site-footer { flex-direction: column; gap: 16px; }
}
