:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5f8;
  --ink: #10212c;
  --muted: #5d7080;
  --line: #dbe5ea;
  --blue: #0e6f95;
  --blue-deep: #0f3148;
  --cyan: #23a9c8;
  --green: #2b9f74;
  --amber: #d58a22;
  --shadow: 0 18px 50px rgba(15, 49, 72, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,248,251,0.72) 45%, rgba(230,242,246,0.85)),
    repeating-linear-gradient(90deg, rgba(15,49,72,0.035) 0 1px, transparent 1px 96px);
}

img {
  max-width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 229, 234, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0;
  color: var(--blue-deep);
}

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

.menu a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: #314858;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.menu a:hover,
.menu a.active {
  background: #e6f3f7;
  color: var(--blue-deep);
}

.menu .menu-max-link {
  background: var(--blue-deep);
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 800;
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 60;
}

main { overflow: hidden; }

.hero,
.page-hero,
.section,
.split-section,
.feature-band,
.cta-section,
.legal,
.trust-strip,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  min-height: min(760px, calc(100vh - 118px));
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 86px) 0;
}

.hero-inner { min-height: 620px; }

.hero-copy {
  max-width: 650px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 22px;
  color: var(--blue-deep);
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  color: #3d5362;
  font-size: 21px;
  line-height: 1.55;
}

.hero-actions,
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-deep);
  border-radius: var(--radius);
  background: var(--blue-deep);
  color: #fff;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  background: #fff;
  color: var(--blue-deep);
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media img,
.feature-band img,
.project-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip div {
  background: rgba(255,255,255,0.92);
  padding: 22px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--blue-deep);
  font-size: 18px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 46px 0;
}

.section-head {
  max-width: 840px;
  margin-bottom: 26px;
}

.section-head p,
.card p,
.case-card p,
.contact-card p,
.legal p,
.project-row p,
.split-section p,
.cta-section p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card,
.case-card,
.contact-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 28px rgba(15, 49, 72, 0.06);
}

.card-index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 900;
}

.card a,
.project-row a:not(.button),
.legal a,
.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #eef7fa);
}

.demo-showcase {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  margin: 26px auto 58px;
  padding: 26px;
  border: 1px solid #cfe4ea;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #e8f5f8);
  box-shadow: var(--shadow);
}

.demo-showcase-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dceff4;
  text-decoration: none;
  -webkit-touch-callout: none;
}

.demo-showcase-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.demo-showcase-media:hover img {
  transform: scale(1.018);
  filter: saturate(1.08);
}

.demo-showcase-copy {
  min-width: 0;
}

.demo-showcase-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.demo-showcase-copy p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.tag-row span {
  border: 1px solid #cfe4ea;
  border-radius: 999px;
  background: #fff;
  color: #315567;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.portfolio-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(15, 49, 72, 0.06);
}

.portfolio-card.large {
  grid-row: span 2;
  min-height: 536px;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.portfolio-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.case-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.cta-section {
  margin-top: 44px;
  margin-bottom: 70px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius);
  background: var(--blue-deep);
  color: #fff;
}

.cta-section h2,
.cta-section p,
.cta-section .eyebrow {
  color: #fff;
}

.page-hero {
  padding: clamp(58px, 10vw, 112px) 0 36px;
  max-width: 900px;
}

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

.project-list {
  display: grid;
  gap: 22px;
}

.project-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: 50px 0;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: #e6f3f7;
  color: var(--blue-deep);
  font-weight: 900;
}

.steps p { margin: 0; }

.legal {
  max-width: 920px;
  padding: 26px 0 70px;
}

.legal h2 {
  margin-top: 30px;
  font-size: 24px;
}

.legal-note {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: #fff7e9;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: none;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  align-content: flex-start;
}

.footer-links a,
.footer-cookie-button {
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.cookie-banner p {
  margin-bottom: 6px;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--blue);
  font-weight: 800;
}

@media (min-width: 981px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  .menu {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .menu.open {
    display: flex;
  }

  .hero,
  .hero-inner,
  .feature-band,
  .demo-showcase,
  .project-row,
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 44px;
  }

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

  h2 {
    font-size: 36px;
  }

  .lead {
    font-size: 19px;
  }

  .card-grid.three,
  .card-grid.four,
  .case-grid,
  .contact-grid,
  .portfolio-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .portfolio-card.large {
    grid-row: auto;
    min-height: 420px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero,
  .page-hero,
  .section,
  .split-section,
  .feature-band,
  .demo-showcase,
  .cta-section,
  .legal,
  .trust-strip,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .feature-band,
  .demo-showcase,
  .project-row,
  .portfolio-card {
    padding: 18px;
  }

  .portfolio-card,
  .portfolio-card.large {
    min-height: auto;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
