:root {
  --red: #d71920;
  --red-dark: #9f1015;
  --red-soft: #fff1f2;
  --ink: #211f20;
  --muted: #6b6466;
  --line: #eadadd;
  --surface: #ffffff;
  --page: #fffafa;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============ Topbar ============ */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 250, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--red);
  background: var(--surface);
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  background: var(--red-soft);
  color: var(--red-dark);
}

.nav a.nav-cta {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  margin-left: 6px;
}

.nav a.nav-cta:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--red-dark);
}

.lang-btn.is-active {
  background: var(--red);
  color: #fff;
}

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 85% 20%, rgba(215, 25, 32, 0.08), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(215, 25, 32, 0.05), transparent 50%);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.intro,
.section-intro {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-action {
  border: 1px solid var(--red);
  background: var(--red);
  color: #ffffff;
}

.primary-action:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--red);
  color: var(--red-dark);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta li {
  position: relative;
  padding-left: 18px;
}

.hero-meta li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ============ Hero visual ============ */
.project-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.1), rgba(255, 255, 255, 0.2)),
    #ffffff;
  box-shadow: 0 30px 60px -30px rgba(159, 16, 21, 0.3);
}

.visual-header {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.visual-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.visual-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-item {
  position: absolute;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(159, 16, 21, 0.08);
}

.visual-item:nth-child(2) {
  top: 86px;
}

.visual-item:nth-child(3) {
  top: 156px;
  left: 44px;
  right: 44px;
}

.visual-item:nth-child(4) {
  top: 226px;
}

.visual-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.visual-line,
.visual-short {
  height: 10px;
  border-radius: 99px;
  background: var(--red-soft);
}

.visual-short {
  background: rgba(215, 25, 32, 0.28);
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============ Features ============ */
.features {
  padding: 88px 0 56px;
}

.features h2,
.workflow h2,
.pricing h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

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

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 25, 32, 0.4);
  box-shadow: 0 16px 30px -18px rgba(159, 16, 21, 0.35);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ============ Workflow ============ */
.workflow {
  padding: 56px 0;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow-steps li {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.workflow-steps h3 {
  margin: 16px 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============ Pricing ============ */
.pricing {
  padding: 56px 0 88px;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.price-card.featured {
  border-color: var(--red);
  box-shadow: 0 26px 50px -30px rgba(215, 25, 32, 0.4);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price {
  margin: 14px 0 10px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price em {
  margin-left: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
}

.price-lede {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.price-card ul {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 0.96rem;
  border-bottom: 1px dashed var(--line);
}

.price-card li:last-child {
  border-bottom: 0;
}

.price-card li::before {
  position: absolute;
  left: 0;
  top: 10px;
  content: "";
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.price-card .primary-action,
.price-card .secondary-action {
  align-self: stretch;
}

/* ============ CTA ============ */
.cta-wrap {
  background:
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.cta > p {
  max-width: 560px;
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(480px, 100%);
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.cta-form input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

.cta-form input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cta-form button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.cta-form button:hover {
  background: #000;
}

.cta-fine {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

/* ============ Footer ============ */
.footer-wrap {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 32px;
  padding: 48px 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-cols h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-cols a:hover {
  color: var(--red-dark);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .feature-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
  }

  .project-visual {
    min-height: 300px;
  }

  .features,
  .pricing {
    padding: 56px 0;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .feature-grid,
  .price-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .visual-item {
    left: 20px;
    right: 20px;
  }

  .visual-item:nth-child(3) {
    left: 32px;
    right: 32px;
  }

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