:root {
  color-scheme: dark;
  --bg: #080a10;
  --surface: #0e111a;
  --surface-raised: #141824;
  --surface-soft: #181d2b;
  --border: rgba(155, 166, 196, 0.16);
  --border-strong: rgba(155, 166, 196, 0.27);
  --text: #f3f4f8;
  --muted: #969db0;
  --muted-light: #bec3d1;
  --accent: #ef4444;
  --accent-light: #ff7676;
  --accent-dark: #b91c1c;
  --accent-deep: #dc2626;
  --green: #4dd89c;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 54% 10%, rgba(220, 38, 38, 0.07), transparent 26rem),
    radial-gradient(circle at 90% 19%, rgba(239, 68, 68, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one { top: 8rem; right: -16rem; background: var(--accent); }
.ambient-two { top: 38rem; left: -22rem; background: var(--accent-deep); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 26px 0;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.brand strong { color: var(--muted-light); font-weight: 500; }
.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.25), rgba(127, 29, 29, 0.08));
  color: #ffd0d0;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.desktop-nav { display: flex; align-items: center; gap: 30px; color: var(--muted-light); font-size: 0.9rem; }
.desktop-nav a { transition: color 160ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: white; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 19px;
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.button-primary { background: linear-gradient(110deg, var(--accent-deep), var(--accent)); color: white; box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(239, 68, 68, 0.36); }
.button-secondary { border-color: var(--border-strong); background: rgba(18, 22, 33, 0.76); color: #e8eaf2; }
.button-secondary:hover, .button-quiet:hover { border-color: rgba(255, 107, 107, 0.42); background: rgba(239, 68, 68, 0.09); }
.button-quiet { min-height: 38px; border-color: var(--border); background: transparent; color: var(--muted-light); font-size: 0.84rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(530px, 1.1fr);
  gap: clamp(42px, 7vw, 92px);
  width: min(calc(100% - 48px), var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: 86px 0 90px;
  align-items: center;
}

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--accent-light); font-size: 0.76rem; font-weight: 760; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

.hero h1 { max-width: 670px; margin: 0; font-size: clamp(2.85rem, 5.5vw, 5rem); line-height: 0.98; letter-spacing: -0.06em; }
.hero-description { max-width: 610px; margin: 27px 0 0; color: var(--muted-light); font-size: 1.08rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-line { display: flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--muted); }
.trust-line > span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 5px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; }
.trust-line p { margin: 0 0 0 6px; font-size: 0.76rem; }

.report-stage { position: relative; padding: 30px 0 38px; }
.stage-glow { position: absolute; inset: 10% 5%; border-radius: 50%; background: rgba(239, 68, 68, 0.16); filter: blur(85px); }
.workspace-card { position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 20px; background: rgba(14, 17, 26, 0.94); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.workspace-card::before { position: absolute; top: 0; right: 11%; left: 11%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.65), transparent); content: ""; }
.workspace-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px 25px 19px; border-bottom: 1px solid var(--border); }
.workspace-kicker { margin: 0 0 4px; color: var(--muted); font-size: 0.68rem; }
.workspace-head h2 { margin: 0; font-size: 1.08rem; letter-spacing: -0.02em; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; letter-spacing: 0.12em; }
.build-status { padding: 18px 25px 17px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(239, 68, 68, 0.06), transparent 62%); }
.status-copy { display: flex; align-items: center; gap: 12px; }
.status-copy > div:nth-child(2) { flex: 1; }
.status-copy strong { font-size: 0.8rem; }
.status-copy p { margin: 2px 0 0; color: var(--muted); font-size: 0.68rem; }
.status-copy b { color: var(--accent-light); font-size: 0.76rem; }
.status-icon { display: flex; gap: 3px; align-items: end; width: 31px; height: 31px; padding: 8px; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 9px; background: rgba(239, 68, 68, 0.1); }
.status-icon span { width: 3px; border-radius: 4px; background: var(--accent-light); animation: pulse-bars 1.5s ease-in-out infinite; }
.status-icon span:nth-child(1) { height: 7px; }
.status-icon span:nth-child(2) { height: 13px; animation-delay: 150ms; }
.status-icon span:nth-child(3) { height: 9px; animation-delay: 300ms; }
.progress { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 10px; background: #242938; }
.progress span { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent-light)); }

.document-layout { display: grid; grid-template-columns: 43% 57%; min-height: 280px; }
.source-list { padding: 20px 19px; border-right: 1px solid var(--border); }
.source-list > p { margin: 0 6px 12px; color: var(--muted); font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.source-item { display: flex; align-items: center; gap: 10px; margin: 5px 0; padding: 9px; border: 1px solid transparent; border-radius: 9px; }
.source-item.active { border-color: var(--border); background: rgba(255, 255, 255, 0.026); }
.source-item strong, .source-item small { display: block; overflow: hidden; max-width: 126px; text-overflow: ellipsis; white-space: nowrap; }
.source-item strong { color: #dcdee8; font-size: 0.69rem; }
.source-item small { margin-top: 2px; color: var(--muted); font-size: 0.58rem; }
.file-icon { display: grid; width: 28px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 6px; font-size: 0.62rem; font-weight: 800; }
.file-icon.sheet { background: rgba(77, 216, 156, 0.12); color: #72e3b3; }
.file-icon.doc { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }
.file-icon.image { background: rgba(239, 68, 68, 0.14); color: #ff8585; }
.add-source { width: 100%; margin-top: 9px; border: 1px dashed var(--border-strong); border-radius: 8px; padding: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.64rem; }
.add-source:hover { border-color: rgba(255, 107, 107, 0.46); color: var(--accent-light); }
.page-preview { position: relative; margin: 21px 25px; overflow: hidden; border-radius: 4px; background: #ecedf1; box-shadow: 0 13px 30px rgba(0, 0, 0, 0.28); }
.page-topline { width: 36%; height: 5px; margin: 22px 0 14px 21px; border-radius: 2px; background: #ef4444; }
.page-title { width: 61%; height: 9px; margin-left: 21px; border-radius: 2px; background: #242a37; }
.page-subtitle { width: 42%; height: 5px; margin: 8px 0 0 21px; border-radius: 2px; background: #b7bbc6; }
.chart { display: flex; height: 104px; align-items: end; gap: 9px; margin: 29px 21px 0; padding: 8px 15px 12px; border-bottom: 1px solid #c5c8d0; }
.chart span { width: 12%; height: var(--height); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ef4444, #b91c1c); }
.page-lines { margin: 19px 21px 0; }
.page-lines span { display: block; width: 100%; height: 4px; margin: 7px 0; border-radius: 2px; background: #cbd0d8; }
.page-lines span:nth-child(2) { width: 86%; }
.page-lines span:nth-child(3) { width: 67%; }
.page-number { position: absolute; right: 14px; bottom: 10px; color: #959aa7; font-size: 0.53rem; }
.workspace-footer { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.61rem; }
.workspace-footer p { flex: 1; margin: 0; }
.avatars { display: flex; }
.avatars span { display: grid; width: 24px; height: 24px; margin-left: -5px; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: #242a39; color: #dfe2eb; font-size: 0.48rem; font-weight: 700; }
.avatars span:first-child { margin-left: 0; background: #991b1b; }
.ready-dot { display: flex; align-items: center; gap: 6px; color: #aeb5c6; }
.ready-dot::before { width: 6px; height: 6px; border-radius: 50%; background: var(--green); content: ""; box-shadow: 0 0 8px rgba(77, 216, 156, 0.65); }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(20, 24, 36, 0.96); box-shadow: 0 15px 34px rgba(0, 0, 0, 0.35); }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 0.68rem; }
.floating-note small { color: var(--muted); font-size: 0.57rem; }
.note-symbol { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: rgba(77, 216, 156, 0.1); color: var(--green); font-size: 0.72rem; }
.note-symbol.accent { background: rgba(239, 68, 68, 0.12); color: var(--accent-light); }
.note-one { right: -20px; bottom: 80px; }
.note-two { top: 0; left: -30px; }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 96px 0; }
.section-heading { max-width: 670px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.045em; }
.section-heading > p:last-child { max-width: 580px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; }
.workflow { border-top: 1px solid var(--border); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: steps; }
.workflow-grid article { min-height: 215px; padding: 25px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(150deg, rgba(20, 24, 36, 0.75), rgba(12, 15, 23, 0.84)); }
.workflow-grid b { display: inline-block; margin-bottom: 44px; color: var(--accent-light); font-size: 0.69rem; letter-spacing: 0.08em; }
.workflow-grid h3 { margin: 0 0 10px; font-size: 1rem; }
.workflow-grid p { margin: 0; color: var(--muted); font-size: 0.83rem; line-height: 1.65; }
.feature-panel { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; padding: 60px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(circle at 5% 20%, rgba(239, 68, 68, 0.11), transparent 30rem), var(--surface); }
.section-heading.compact { margin: 0; }
.feature-list { display: grid; gap: 5px; }
.feature-list article { display: flex; gap: 15px; padding: 17px; border-radius: 12px; }
.feature-list article:hover { background: rgba(255, 255, 255, 0.025); }
.feature-list article > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(239, 68, 68, 0.25); border-radius: 10px; background: rgba(239, 68, 68, 0.08); color: var(--accent-light); }
.feature-list h3 { margin: 0 0 5px; font-size: 0.96rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.template-grid article { display: grid; min-height: 260px; padding: 25px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.template-icon { display: grid; width: 44px; height: 50px; place-items: center; border: 1px solid var(--border-strong); border-radius: 8px; background: linear-gradient(145deg, #222738, #151925); color: var(--accent-light); font-weight: 760; }
.template-grid h3 { margin: 27px 0 8px; font-size: 1.05rem; }
.template-grid p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.template-grid button { display: flex; align-self: end; justify-content: space-between; width: 100%; border: 0; padding: 15px 0 0; border-top: 1px solid var(--border); background: transparent; color: var(--muted-light); cursor: pointer; text-align: left; font-size: 0.78rem; }
.template-grid button:hover { color: var(--accent-light); }
.docs-strip { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 70px; margin-bottom: 86px; padding: 45px 50px; border: 1px solid rgba(239, 68, 68, 0.26); border-radius: 20px; background: linear-gradient(110deg, rgba(239, 68, 68, 0.1), rgba(127, 29, 29, 0.035)); }
.docs-strip h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.04em; }
.docs-strip > div > p:last-child { max-width: 670px; margin: 12px 0 0; color: var(--muted-light); }
.docs-strip .eyebrow { margin-bottom: 12px; }
.site-footer { display: flex; align-items: center; gap: 30px; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 30px 0 42px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; }
.site-footer > p { flex: 1; }
.site-footer nav { display: flex; gap: 19px; }
.site-footer button { border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; }
.site-footer button:hover { color: white; }

dialog { max-width: calc(100vw - 32px); color: var(--text); }
dialog::backdrop { background: rgba(3, 4, 8, 0.78); backdrop-filter: blur(8px); }
.access-dialog, .info-dialog { width: min(500px, calc(100vw - 32px)); border: 1px solid var(--border-strong); border-radius: 20px; padding: 0; background: var(--surface-raised); box-shadow: var(--shadow); }
.access-dialog[open], .info-dialog[open] { animation: dialog-in 180ms ease-out; }
.access-dialog form, .info-dialog form { position: relative; padding: 34px; }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.45rem; line-height: 1; }
.dialog-close:hover { background: rgba(255, 255, 255, 0.04); color: white; }
.dialog-icon { display: grid; width: 43px; height: 43px; margin-bottom: 24px; place-items: center; border: 1px solid rgba(255, 107, 107, 0.35); border-radius: 12px; background: rgba(239, 68, 68, 0.12); color: var(--accent-light); font-weight: 800; }
.dialog-kicker { margin: 0 0 7px; color: var(--accent-light); font-size: 0.69rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.access-dialog h2, .info-dialog h2 { margin: 0; font-size: 1.65rem; letter-spacing: -0.035em; }
.dialog-description { margin: 8px 0 26px; color: var(--muted); font-size: 0.9rem; }
.access-dialog label { display: block; margin: 16px 0 7px; color: var(--muted-light); font-size: 0.76rem; font-weight: 650; }
.access-dialog input { width: 100%; height: 49px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 14px; background: #101420; color: white; font-size: 0.88rem; }
.access-dialog input::placeholder { color: #626a7d; }
.access-dialog input:focus { border-color: rgba(255, 107, 107, 0.62); outline: none; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }
.dialog-submit { width: 100%; margin-top: 22px; }
.access-dialog small { display: block; margin-top: 14px; color: var(--muted); text-align: center; font-size: 0.68rem; }
.form-message { display: none; margin: 16px 0 -7px; border: 1px solid rgba(255, 194, 98, 0.22); border-radius: 9px; padding: 10px 12px; background: rgba(255, 194, 98, 0.06); color: #e4c78d; font-size: 0.75rem; }
.form-message.visible { display: block; }
.info-content { margin: 20px 0 27px; color: var(--muted-light); font-size: 0.88rem; line-height: 1.7; }
.info-content ol { padding-left: 20px; }
.info-content li + li { margin-top: 8px; }
.dialog-note { color: var(--muted); font-size: 0.78rem; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pulse-bars { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 780px; }
  .report-stage { width: min(700px, 100%); margin: 0 auto; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-panel { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  .site-header, .hero, .section, .site-footer { width: min(calc(100% - 30px), var(--max)); }
  .site-header { gap: 16px; padding: 18px 0; }
  .header-action { min-height: 36px; padding: 0 12px; font-size: 0.74rem; }
  .brand { font-size: 0.9rem; }
  .brand-mark { width: 29px; height: 29px; }
  .hero { display: block; min-height: auto; padding: 65px 0 72px; }
  .hero-copy, .report-stage, .workspace-card { width: 100%; min-width: 0; max-width: 100%; }
  .hero h1 { font-size: clamp(2.35rem, 10.8vw, 3.25rem); line-height: 1.02; }
  .hero-description { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .trust-line { flex-wrap: wrap; }
  .trust-line p { width: 100%; margin: 6px 0 0; }
  .report-stage { padding-top: 45px; }
  .document-layout { grid-template-columns: 1fr; }
  .source-list { display: none; }
  .page-preview { min-height: 245px; }
  .floating-note { display: none; }
  .workspace-footer { flex-wrap: wrap; }
  .ready-dot { width: 100%; }
  .section { padding: 70px 0; }
  .workflow-grid, .template-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 190px; }
  .feature-panel { padding: 31px 22px; }
  .docs-strip { align-items: flex-start; flex-direction: column; margin-top: 30px; margin-bottom: 55px; padding: 31px 23px; }
  .docs-strip .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer > p { margin: 4px 0; }
  .site-footer nav { flex-wrap: wrap; }
  .access-dialog form, .info-dialog form { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

