:root {
  --bg: #f2f6fb;
  --bg-soft: #eaf2f8;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --text: #0f1f33;
  --muted: #5d7088;
  --line: #d8e4f1;
  --brand-900: #0a2d4f;
  --brand-800: #0f3f67;
  --brand-700: #12547f;
  --tech-600: #0f8c8f;
  --tech-500: #17a6a9;
  --accent: #ff7f2a;
  --accent-dark: #eb6712;
  --success: #188047;
  --danger: #b02929;
  --shadow-lg: 0 28px 60px rgba(10, 45, 79, 0.14);
  --shadow-md: 0 16px 34px rgba(10, 45, 79, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -3%, rgba(23, 166, 169, 0.22), transparent 28%),
    radial-gradient(circle at 92% 7%, rgba(255, 127, 42, 0.2), transparent 32%),
    linear-gradient(180deg, #f6f9fd 0%, #edf3f9 100%);
  line-height: 1.62;
}

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

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(84px);
  opacity: 0.45;
}

.backdrop-a {
  background: #53d2de;
  top: -130px;
  right: -120px;
}

.backdrop-b {
  background: #fca56f;
  left: -160px;
  top: 280px;
}

.shell {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

.section {
  padding: 46px 0;
}

.section-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--tech-600);
}

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

.section-head h2 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  font-size: clamp(1.52rem, 2.9vw, 2.24rem);
  max-width: 780px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-color: #d6e3ef;
  box-shadow: 0 12px 24px rgba(10, 45, 79, 0.08);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-700) 0%, var(--tech-500) 100%);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--brand-900);
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #c5d8e8;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  margin: 5px 0;
  background: var(--brand-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 650;
  color: #2f4763;
}

.nav-menu a:hover {
  color: var(--brand-700);
}

.nav-cta {
  margin-left: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 750;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--brand-700) 0%, var(--brand-900) 100%);
  box-shadow: 0 12px 24px rgba(13, 84, 127, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(13, 84, 127, 0.34);
}

.btn-outline {
  color: var(--brand-700);
  border-color: #bcd2e4;
  background: rgba(255, 255, 255, 0.7);
}

.btn-accent {
  color: #fff;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 10px 22px rgba(255, 127, 42, 0.32);
}

.btn-light {
  color: var(--brand-900);
  background: #eaf4ff;
  border-color: #cce0f3;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 36px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tech-600);
  font-size: 0.77rem;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 5.4vw, 3.7rem);
  line-height: 1.05;
  max-width: 720px;
}

.hero-subtitle {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 1.02rem;
  max-width: 650px;
}

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

.hero-media {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
  border-radius: var(--radius-xl);
  border: 1px solid #d9e7f3;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 14px;
}

.hero-media img {
  width: 100%;
  border-radius: 16px;
  min-height: 320px;
  object-fit: cover;
}

.hero-kpis {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-kpis article {
  background: rgba(10, 45, 79, 0.88);
  color: #f7fcff;
  border: 1px solid rgba(115, 171, 210, 0.52);
  backdrop-filter: blur(6px);
  border-radius: 13px;
  padding: 11px 12px;
}

.hero-kpis strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
}

.hero-kpis span {
  display: block;
  font-size: 0.77rem;
  color: #c5e7ff;
}

/* Icons */
.icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #e6f6ff 0%, #ecfef9 100%);
  border: 1px solid #bfdff0;
}

.icon-wrap svg {
  width: 25px;
  height: 25px;
  stroke: var(--brand-700);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Solutions */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.solution-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(10, 45, 79, 0.15);
}

.solution-card h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.solution-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.app-card {
  border-radius: var(--radius-lg);
  border: 1px solid #d4e3ef;
  background: linear-gradient(170deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 270px;
  transition: transform 0.23s ease;
}

.app-card:hover {
  transform: translateY(-6px);
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.icon-app {
  width: 46px;
  height: 46px;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0f567c;
  background: #e7f3ff;
  border: 1px solid #c5ddf5;
  padding: 6px 9px;
  border-radius: 999px;
}

.app-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  flex-grow: 1;
}

/* Methodology */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 9%;
  right: 9%;
  border-top: 2px dashed #bdd3e6;
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.step-index {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-700) 0%, var(--tech-500) 100%);
  margin-bottom: 10px;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: center;
}

.about-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #d4e3ef;
}

.about-media img {
  width: 100%;
  min-height: 350px;
  object-fit: cover;
}

.about-content h2 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-content p {
  margin: 0;
  color: var(--muted);
}

.about-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.about-list li {
  background: #ffffff;
  border: 1px solid #d9e7f2;
  border-radius: 11px;
  padding: 10px 12px 10px 34px;
  position: relative;
  font-weight: 600;
}

.about-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--tech-500) 0%, var(--brand-700) 100%);
  position: absolute;
  left: 14px;
  top: 15px;
}

/* Commercial CTA */
.commercial-cta {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 24%, rgba(23, 166, 169, 0.24), transparent 34%),
    linear-gradient(140deg, #0b3154 0%, #0f4670 56%, #146174 100%);
  color: #f0fbff;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: var(--shadow-lg);
  border: 1px solid #2b648f;
}

.commercial-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.12;
  font-family: "Space Grotesk", sans-serif;
}

.commercial-cta p {
  margin: 12px 0 22px;
  max-width: 760px;
  color: #cbe7fb;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.contact-side {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #0f3f67 0%, #115f80 100%);
  color: #f0f8ff;
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.contact-side h2 {
  margin: 10px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.contact-side p {
  margin: 0;
  color: #d8efff;
}

.contact-side ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact-side li {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(185, 226, 255, 0.4);
  background: rgba(8, 37, 63, 0.25);
}

.contact-side li strong {
  display: block;
  font-size: 0.9rem;
}

.contact-side li span {
  color: #d8f4ff;
  font-size: 0.92rem;
}

.contact-form-wrap {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.contact-form-wrap h3 {
  margin: 0;
  font-size: 1.45rem;
  font-family: "Space Grotesk", sans-serif;
}

.contact-form-wrap > p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #274462;
  font-size: 0.92rem;
}

input,
textarea {
  border: 1px solid #c7daea;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #7eb6d8;
  box-shadow: 0 0 0 3px rgba(126, 182, 216, 0.2);
  outline: none;
}

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

.trap {
  display: none;
}

.status {
  margin: 4px 0 0;
  min-height: 22px;
  font-weight: 700;
  font-size: 0.92rem;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

/* Footer */
.site-footer {
  margin-top: 24px;
  background: #071f37;
  color: #c9deef;
  border-top: 1px solid #1e4262;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 18px;
  padding: 34px 0 26px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 10px;
  color: #f8fcff;
  font-family: "Space Grotesk", sans-serif;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.site-footer a {
  color: #cae3f7;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.social-links {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #3f6686;
  padding: 5px 9px;
}

.footer-bottom {
  border-top: 1px solid #1b3c59;
  text-align: center;
  padding: 14px 0 20px;
  font-size: 0.9rem;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1140px) {
  .solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .timeline::before {
    display: none;
  }

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

@media (max-width: 930px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    left: 22px;
    right: 22px;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid #d3e2ef;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10, 45, 79, 0.13);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 6px;
  }

  .nav-menu ul a {
    display: block;
    padding: 8px 6px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(1160px, calc(100% - 30px));
  }

  .hero {
    padding-top: 20px;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
    position: static;
    margin-top: 12px;
  }

  .hero-media {
    padding-bottom: 14px;
  }

  .section {
    padding: 34px 0;
  }

  .solution-grid,
  .app-grid,
  .timeline,
  .footer-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
