:root {
  --ink: #172630;
  --muted: #5f707c;
  --primary: #2f5267;
  --primary-2: #8faec0;
  --primary-3: #dceaf1;
  --accent: #6f94ab;
  --bg: #f5f8fb;
  --card: #ffffff;
  --line: #dce6ec;
  --success: #286a56;
  --shadow: 0 18px 45px rgba(23, 38, 48, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin: 0 0 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(220,230,236,0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 158px;
}

.logo-img {
  width: 128px;
  height: auto;
}

.brand-caption {
  display: none;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 650;
  color: #314756;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-3);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  background: #fff;
  cursor: pointer;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 99px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47,82,103,0.22);
}

.btn-primary:hover {
  background: #244658;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--primary-3);
}

.btn-light {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.26);
}

.btn-light:hover {
  background: rgba(255,255,255,0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(143,174,192,0.36), transparent 34%),
    linear-gradient(135deg, #f7fafc 0%, #eef5f9 56%, #ffffff 100%);
  padding: 78px 0 58px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -170px -220px auto;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  border: 54px solid rgba(143,174,192,0.2);
}

.hero .container {
  width: min(1320px, calc(100% - 40px));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: rgba(220,234,241,0.8);
  border: 1px solid rgba(143,174,192,0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 20px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-text {
  font-size: 19px;
  color: #405766;
  max-width: 680px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.meta-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
}

.meta-item strong {
  display: block;
  font-size: 22px;
  color: var(--primary);
  line-height: 1.05;
}

.meta-item span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-main-visual {
  padding: 10px;
}

.hero-main-img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}


.mockup-card {
  background: #fff;
  border: 1px solid rgba(220,230,236,0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
}

.mockup-card img {
  border-radius: 20px;
}

.floating-note {
  position: absolute;
  left: -24px;
  bottom: 30px;
  max-width: 270px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(23,38,48,0.13);
  border-radius: 20px;
  padding: 16px 18px;
}

.floating-note strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.floating-note span {
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: var(--bg);
}

.section-dark {
  background: linear-gradient(135deg, #1f3342 0%, #2f5267 100%);
  color: #fff;
}

.section-dark .section-subtitle,
.section-dark .muted {
  color: rgba(255,255,255,.78);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  margin-top: 12px;
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(23, 38, 48, 0.045);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-3);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 16px;
}

.module-card {
  min-height: 216px;
  display: flex;
  flex-direction: column;
}

.module-card .tag {
  margin-top: auto;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-3);
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 44px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #3d5361;
}

.check {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.dark-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.dark-card p {
  color: rgba(255,255,255,.76);
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reference-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  min-height: 96px;
}

.reference-item strong {
  display: block;
  font-size: 16px;
}

.reference-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.cta-band {
  border-radius: 34px;
  background: linear-gradient(135deg, #1f3342 0%, #2f5267 100%);
  color: #fff;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 270px;
  height: 270px;
  border: 44px solid rgba(255,255,255,.09);
  border-radius: 50%;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.cta-band p {
  color: rgba(255,255,255,.78);
  margin: 0;
  max-width: 680px;
}

.page-hero {
  background:
    radial-gradient(circle at 12% 4%, rgba(143,174,192,0.34), transparent 34%),
    linear-gradient(135deg, #f7fafc 0%, #eef5f9 70%, #ffffff 100%);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 850px;
  color: #405766;
  font-size: 18px;
}

.breadcrumb {
  color: var(--accent);
  font-weight: 850;
  font-size: 13px;
  margin-bottom: 12px;
}

.module-list {
  display: grid;
  gap: 18px;
}

.module-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.module-detail h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.module-detail p {
  color: var(--muted);
}

.module-detail ul,
.clean-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.module-detail li,
.clean-list li {
  position: relative;
  padding-left: 22px;
  color: #3e5360;
}

.module-detail li::before,
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-2);
}

.info-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 28px rgba(23,38,48,0.055);
}

.info-panel h2,
.info-panel h3 {
  margin-top: 0;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.process-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 22px 70px;
}

.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.contact-card {
  display: grid;
  gap: 8px;
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 6px;
}

.contact-line {
  display: flex;
  gap: 10px;
  color: #3d5361;
}

.contact-line strong {
  min-width: 98px;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  font-size: 13px;
  color: #344a59;
}

input,
textarea {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(143,174,192,.22);
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.site-footer {
  background: #172630;
  color: #fff;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 38px;
  align-items: flex-start;
}

.footer-logo {
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  width: 148px;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255,255,255,.76);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

@media (max-width: 1080px) {
  .main-nav {
    position: fixed;
    inset: 78px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    border-radius: 14px;
    padding: 13px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
  }

  .hero-main-img {
    min-height: 0;
    object-fit: contain;
  }

  .floating-note {
    left: 20px;
    bottom: 20px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-detail {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    min-height: 72px;
  }

  .main-nav {
    inset: 72px 14px auto 14px;
  }

  .logo-img {
    width: 112px;
  }

  .hero,
  .section,
  .page-hero {
    padding: 48px 0;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-text,
  .page-hero p,
  .section-subtitle {
    font-size: 16px;
  }

  .hero-ctas,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-head .btn {
    margin-top: 18px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .reference-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-note {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .mockup-card {
    padding: 10px;
  }

  .card,
  .info-panel,
  .module-detail,
  .cta-band {
    padding: 22px;
    border-radius: 22px;
  }

  .contact-line {
    display: grid;
    gap: 2px;
  }

  .contact-line strong {
    min-width: 0;
  }
}


.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 650;
}

.form-status.is-info,
.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-info {
  background: #f1f7fb;
  border-color: #c9dce7;
  color: var(--primary);
}

.form-status.is-success {
  background: #eff8f4;
  border-color: #bee1d0;
  color: var(--success);
}

.form-status.is-error {
  background: #fff3f3;
  border-color: #f0caca;
  color: #8a2e2e;
}

button:disabled,
.btn:disabled {
  opacity: .68;
  cursor: not-allowed;
  transform: none;
}

/* Real screenshots and enlarged preview gallery */
.screenshot-frame {
  overflow: hidden;
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(220,230,236,0.9);
  background: #fff;
}

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

.screenshot-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.screenshot-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(23,38,48,0.08);
}

.screenshot-card-featured {
  grid-column: 1 / -1;
}

.screenshot-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
}

.screenshot-link-plain {
  border-radius: 18px;
  overflow: hidden;
}

.screenshot-card .screenshot-img,
.screenshot-link .screenshot-img {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.mockup-card .screenshot-link .screenshot-img {
  border: 1px solid rgba(220,230,236,0.9);
  border-radius: 18px;
}

.screenshot-zoom-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(17,42,62,0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.screenshot-link:hover .screenshot-zoom-label,
.screenshot-link:focus-visible .screenshot-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-caption {
  padding: 18px 20px 20px;
}

.screenshot-caption h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.screenshot-caption p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,18,28,0.76);
  backdrop-filter: blur(3px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1680px);
  max-height: 94vh;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,0.38);
}

.lightbox-title {
  padding: 0 48px 12px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(94vh - 84px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .screenshot-grid,
  .screenshot-grid-large {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-dialog {
    padding: 12px;
    border-radius: 18px;
  }
}
