:root {
  --bg: #0c1015;
  --bg-soft: #121821;
  --bg-panel: rgba(255, 255, 255, 0.05);
  --bg-panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #aeb7c3;
  --accent: #c7ced8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent 30%),
    linear-gradient(180deg, #0b0f14 0%, #0d1117 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(7, 10, 14, 0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.png") center center / cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 15, 0.22) 0%, rgba(8, 11, 15, 0.66) 70%, rgba(8, 11, 15, 0.9) 100%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 32%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 90px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  max-width: 820px;
  margin: 20px 0 12px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease;
}

.floating-contact:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  color: #0c1117;
  border-color: transparent;
  background: linear-gradient(180deg, #d8dde4 0%, #b8c0ca 100%);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Sections */

.section {
  position: relative;
  padding: 110px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
}

.section-head {
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Cards */

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

.card,
.industry-card,
.step,
.contact-box,
.seo-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card {
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: var(--bg-panel-strong);
}

.card h3,
.industry-card h3,
.step h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.card p,
.industry-card li,
.step p,
.contact-subtitle,
.contact-lines p,
.seo-block p {
  color: var(--muted);
}

/* Industries */

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

.industry-card {
  padding: 34px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
}

.industry-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

/* Timeline */

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

.step {
  position: relative;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
}

.step span {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* Contact */

.section-contact {
  padding-top: 88px;
}

.contact-box {
  text-align: center;
  padding: 50px 34px;
}

.contact-logo {
  width: 78px;
  margin: 0 auto 22px;
}

.contact-box h2 {
  margin-bottom: 14px;
}

.contact-subtitle {
  max-width: 650px;
  margin: 0 auto 24px;
}

.contact-lines p {
  margin: 8px 0;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* SEO block */

.seo-wrap {
  padding-top: 0;
}

.seo-toggle {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  transition: background 0.25s ease, transform 0.25s ease;
}

.seo-toggle:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.seo-block {
  display: none;
  margin-top: 18px;
  padding: 28px;
}

.seo-block.open {
  display: block;
}

.seo-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Product groups */

.products-wrap {
  display: grid;
  gap: 42px;
}

.group-title {
  margin: 0 0 26px;
  text-align: center;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: inherit;
}

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

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

.product-card {
  min-height: 234px;
  padding: 30px 26px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.055);
}

.product-card h4 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.35;
  text-align: center;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* Footer */

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.015);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  max-width: 440px;
}

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

.footer-links-group a,
.contact-lines a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-links-group a:hover,
.contact-lines a:hover {
  color: var(--text);
}

/* Legal pages */

.legal-page {
  padding-top: var(--header-height);
}

.legal-section {
  min-height: calc(100vh - var(--header-height));
}

.legal-box {
  max-width: 920px;
  padding: 42px 36px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-box h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.legal-box h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.legal-box p,
.legal-box li {
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1180px) {
  .product-grid,
  .product-grid-narrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .cards,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .nav {
    display: none;
  }

  .section {
    padding: 82px 0;
  }

  .cards,
  .timeline,
  .product-grid,
  .product-grid-narrow {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 118px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .hero-text {
    font-size: 16px;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
    min-width: 102px;
    padding: 12px 16px;
  }

  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .card,
  .industry-card,
  .step,
  .contact-box,
  .seo-block,
  .legal-box {
    border-radius: 22px;
  }

  .group-title {
    margin-bottom: 20px;
    font-size: 42px;
  }

  .product-card {
    min-height: auto;
    padding: 26px 22px;
  }

  .legal-box {
    padding: 30px 22px;
  }
}
