:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --text: #162033;
  --muted: #55637f;
  --line: rgba(22, 32, 51, 0.12);
  --primary: #1b64f2;
  --primary-strong: #134ab4;
  --accent: #11a89d;
  --success: #0d8b5f;
  --warning: #a86708;
  --shadow: 0 18px 42px rgba(23, 34, 57, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(27, 100, 242, 0.08), transparent 35%),
    radial-gradient(circle at top right, rgba(17, 168, 157, 0.1), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 1000;
}
.skip-link:focus { top: 16px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 251, 0.86);
  border-bottom: 1px solid rgba(22, 32, 51, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1b64f2, #11a89d);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(27, 100, 242, 0.22);
}
.brand-mark span { color: #fff; font-weight: 800; letter-spacing: 0.04em; }
.brand-copy strong { display: block; font-size: 1rem; }
.brand-copy small { display: block; color: var(--muted); font-size: 0.86rem; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.header-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
}
.header-nav a[aria-current="page"],
.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
  background: rgba(27, 100, 242, 0.08);
  outline: none;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 180ms ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-1px); outline: none; }
.button-primary {
  background: linear-gradient(135deg, var(--primary), #337dff);
  color: #fff;
  box-shadow: 0 14px 32px rgba(27, 100, 242, 0.24);
}
.button-secondary {
  background: rgba(27, 100, 242, 0.08);
  color: var(--primary-strong);
}
.button-muted {
  background: rgba(22, 32, 51, 0.05);
  border-color: rgba(22, 32, 51, 0.08);
  color: var(--muted);
}
.button-link { color: var(--primary-strong); padding: 0; min-height: auto; }
.main-content { flex: 1; }
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-strong);
  background: rgba(27, 100, 242, 0.1);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero h1, .page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero p, .page-hero p, .section-intro p { margin: 0; font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.proof-card {
  background: var(--surface);
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
}
.proof-card strong { display: block; font-size: 1.1rem; }
.hero-visual { position: relative; min-height: 620px; }
.floating-aura {
  position: absolute;
  inset: 40px 40px auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(17, 168, 157, 0.32), transparent 72%);
  filter: blur(8px);
}
.device-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}
.device-laptop, .device-phone {
  background: var(--surface);
  border: 1px solid rgba(22, 32, 51, 0.08);
  box-shadow: var(--shadow);
}
.device-laptop { width: min(100%, 560px); border-radius: 28px; padding: 18px; }
.device-phone { position: absolute; left: 0; bottom: 24px; width: 248px; border-radius: 36px; padding: 14px; }
.screen {
  background: linear-gradient(180deg, #fbfdff, #eef4fb);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(22, 32, 51, 0.06);
}
.screen-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.screen-pill, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.screen-pill { background: rgba(27, 100, 242, 0.1); color: var(--primary-strong); }
.status-pill--coming-soon, .status-pill--active {
  background: rgba(27, 100, 242, 0.12);
  color: var(--primary-strong);
}
.status-pill--planned, .status-pill--beta {
  background: rgba(168, 103, 8, 0.14);
  color: var(--warning);
}
.status-pill--ready {
  background: rgba(13, 139, 95, 0.14);
  color: var(--success);
}
.mock-list, .mock-chart, .mock-summary, .mini-cards, .step-grid, .card-grid, .value-grid, .faq-grid, .download-grid, .detail-grid, .page-grid {
  display: grid;
  gap: 18px;
}
.mock-list { gap: 12px; }
.mock-item, .summary-card, .feature-card, .faq-item, .platform-card, .detail-card, .step-card, .metric-card, .cta-card, .info-card, .changelog-entry {
  background: var(--surface);
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.mock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}
.mock-item strong, .platform-card h3, .feature-card h3, .step-card h3, .faq-item summary, .detail-card h3, .info-card h3, .summary-card h3, .changelog-entry h3 { margin: 0 0 8px; }
.mock-item small, .platform-card p, .feature-card p, .step-card p, .detail-card p, .info-card p, .summary-card p, .changelog-entry p { color: var(--muted); margin: 0; }
.mock-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.summary-card { padding: 16px; }
.summary-card strong { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.mock-chart { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; min-height: 190px; }
.bar {
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(27, 100, 242, 0.95), rgba(17, 168, 157, 0.95));
  min-height: 80px;
}
.bar:nth-child(1) { height: 42%; }
.bar:nth-child(2) { height: 78%; }
.bar:nth-child(3) { height: 56%; }
.section { padding: 68px 0; }
.section-tight { padding-top: 24px; }
.section-title, .section-intro h2, .page-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-intro { max-width: 760px; margin-bottom: 28px; }
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value-grid, .detail-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card, .step-card, .detail-card, .platform-card, .info-card, .cta-card { padding: 22px; }
.card-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(27, 100, 242, 0.1);
  color: var(--primary-strong);
  font-weight: 800;
  margin-bottom: 18px;
}
.segment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.segment-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  border: 1px solid rgba(22, 32, 51, 0.08);
  box-shadow: var(--shadow);
}
.segment-card h3 { margin: 0 0 12px; font-size: 1.5rem; }
.segment-card ul, .detail-card ul, .info-card ul, .legal-list, .faq-item p { margin: 0; padding-left: 18px; }
.segment-card li, .detail-card li, .info-card li, .legal-list li { margin-bottom: 8px; color: var(--muted); }
.feature-band {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(22, 32, 51, 0.08);
  border-bottom: 1px solid rgba(22, 32, 51, 0.08);
}
.ksef-banner, .cta-strip {
  background: linear-gradient(135deg, #11203a, #1b355f);
  color: #f7fbff;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(17, 32, 58, 0.24);
}
.ksef-banner p, .cta-strip p { color: rgba(247, 251, 255, 0.8); }
.mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.metric-card { padding: 18px; }
.metric-card strong { display: block; font-size: 1.4rem; margin-bottom: 4px; }
.faq-grid { grid-template-columns: 1fr; }
.faq-item { padding: 0 20px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 0 18px; }
.page-hero { padding: 60px 0 28px; }
.page-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 100, 242, 0.08);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.86rem;
}
.legal-content, .contact-panel {
  background: var(--surface);
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.legal-content {
  display: grid;
  gap: 24px;
}
.legal-block:not(:last-child) {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(22, 32, 51, 0.08);
}
.legal-block ul {
  margin: 0;
  padding-left: 18px;
}
.legal-block li {
  margin-bottom: 8px;
}
.legal-content h2, .legal-content h3, .contact-panel h2, .contact-panel h3 { margin-top: 0; }
.legal-content p, .legal-content li, .contact-panel p { color: var(--muted); }
.changelog-entry {
  padding: 24px;
}
.changelog-entry + .changelog-entry {
  margin-top: 18px;
}
.contact-panel a {
  color: var(--primary-strong);
}
.site-footer { margin-top: 48px; padding: 24px 0 40px; }
.footer-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 32, 51, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 20px; }
.footer-links, .footer-meta { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-meta a { color: var(--muted); }
.footer-links a:hover, .footer-meta a:hover, .footer-links a:focus-visible, .footer-meta a:focus-visible, .button-link:hover, .button-link:focus-visible { color: var(--primary-strong); outline: none; }
.platform-card__header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 3px solid rgba(27, 100, 242, 0.28); outline-offset: 3px; }
@media (max-width: 1080px) {
  .hero-grid, .page-grid, .footer-grid, .card-grid, .step-grid, .segment-grid, .value-grid, .detail-grid, .download-grid, .mini-cards { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .device-stack { min-height: auto; padding-top: 24px; justify-content: flex-end; }
  .device-phone { position: static; width: 100%; max-width: 280px; margin-right: auto; margin-top: 18px; }
  .device-laptop { width: 100%; }
}
@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .header-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(22, 32, 51, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 12px 14px; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .hero { padding-top: 34px; }
  .hero-actions, .header-actions { flex-wrap: wrap; }
  .hero-proof { grid-template-columns: 1fr; }
  .ksef-banner, .cta-strip, .segment-card, .platform-card, .feature-card, .step-card, .detail-card, .info-card, .legal-content, .contact-panel, .footer-panel { padding: 22px; border-radius: 24px; }
}
