:root {
  --bg-main: #ffffff;
  --bg-section: #f2f5f9;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --primary: #0f5b36;
  --primary-strong: #0a4528;
  --accent: #7ebc2f;
  --accent-soft: #e4f3d0;
  --text-main: #172739;
  --text-muted: #52657b;
  --border-soft: #d0dbe5;
  --shadow-soft: 0 16px 36px rgba(16, 40, 66, 0.08);
  --shadow-strong: 0 24px 48px rgba(16, 40, 66, 0.16);
  --nav-offset: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-offset);
  color: var(--text-main);
  background:
    radial-gradient(900px 500px at -5% -10%, rgba(15, 91, 54, 0.06), transparent 55%),
    radial-gradient(900px 500px at 105% -15%, rgba(126, 188, 47, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 45%, #ffffff 100%);
  font-family: "Inter", "Segoe UI", sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(126, 188, 47, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 91, 54, 0.028) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 85%);
  animation: gridFloat 24s linear infinite;
}

body::after {
  background:
    radial-gradient(700px 360px at 12% -8%, rgba(126, 188, 47, 0.1), transparent 55%),
    radial-gradient(760px 380px at 88% -10%, rgba(15, 91, 54, 0.08), transparent 54%);
  animation: ambientPulse 9s ease-in-out infinite alternate;
}

a,
.btn,
.glass-card,
.hero-card,
.stat-box,
.feature-icon,
.brand-mark {
  transition: all 260ms ease;
}

.navbar {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 28px rgba(18, 39, 63, 0.08);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2819,36,55,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .navbar-brand {
  color: var(--text-main) !important;
}

.site-logo {
  height: 58px;
  width: auto;
  display: block;
}

.navbar .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  position: relative;
  padding-inline: 0.5rem !important;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--primary) !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #deece6, #edf7e1);
  color: var(--primary-strong);
  font-weight: 800;
  border: 1px solid #b6dcc6;
  box-shadow: 0 10px 20px rgba(126, 188, 47, 0.2);
}

.hero {
  padding: 4.75rem 0;
  position: relative;
}

.hero--bg {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  max-height: 840px;
  display: grid;
  align-items: center;
  padding: 0;
}

.hero--bg .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(208, 219, 229, 0.8);
}

.hero-bg__slide {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.1) contrast(1.08);
  transform: scale(1.12);
  opacity: 0;
  will-change: opacity, transform;
}

.hero-bg__slide--1 {
  background-image: url("assets/stock/agro-01.jpg");
  opacity: 1;
}

.hero-bg__slide--2 {
  background-image: url("assets/stock/servers-01.jpg");
}

.hero-bg__slide--3 {
  background-image: url("assets/stock/servers-02.jpg");
}

.hero-bg__slide--2,
.hero-bg__slide--3 {
  opacity: 0;
}

.hero-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(15, 91, 54, 0.40), transparent 62%),
    radial-gradient(900px 520px at 82% 18%, rgba(126, 188, 47, 0.42), transparent 62%),
    linear-gradient(180deg, rgba(10, 20, 32, 0.58), rgba(10, 20, 32, 0.42));
}

.hero-card--bg {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.hero--bg .hero-chip {
  background: rgba(237, 245, 241, 0.86);
}

.hero-lead {
  color: var(--text-muted);
  text-shadow: none;
}

.hero--bg h1 {
  color: var(--text-main);
  text-shadow: none;
}

.hero-side .muted {
  color: var(--text-muted);
}

.hero--bg .stat-box {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(203, 221, 231, 0.9);
  backdrop-filter: blur(6px);
}

.hero--bg .chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(203, 221, 231, 0.9);
  color: var(--primary-strong);
}

@keyframes heroBgFade {
  0% {
    opacity: 0;
    transform: scale(1.12);
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
    transform: scale(1.16);
  }
  41% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg__slide {
    opacity: 0;
    animation: heroBgFade 18s infinite;
  }

  .hero-bg__slide--1 {
    animation-delay: 0s;
  }

  .hero-bg__slide--2 {
    animation-delay: 6s;
  }

  .hero-bg__slide--3 {
    animation-delay: 12s;
  }
}

.hero-card {
  border: 1px solid #d7e7ee;
  background:
    linear-gradient(135deg, rgba(15, 91, 54, 0.045), transparent 42%),
    linear-gradient(220deg, rgba(27, 79, 140, 0.06), transparent 50%),
    var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.68) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: shineSweep 7s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  min-height: 380px;
  background:
    linear-gradient(130deg, rgba(15, 91, 54, 0.07), transparent 45%),
    linear-gradient(250deg, rgba(27, 79, 140, 0.08), transparent 40%),
    #f4f8f7;
  border: 1px solid #dce8e3;
  isolation: isolate;
}

.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}

.hero-grid::before {
  width: 160px;
  height: 160px;
  right: -25px;
  top: -32px;
  background: radial-gradient(circle, rgba(27, 79, 140, 0.14), transparent 68%);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-grid::after {
  width: 190px;
  height: 190px;
  left: -28px;
  bottom: -42px;
  background: radial-gradient(circle, rgba(15, 91, 54, 0.14), transparent 68%);
  animation: orbFloat 9s ease-in-out infinite reverse;
}

.hero-media {
  position: relative;
  height: clamp(320px, 46vh, 440px);
  border-radius: 20px;
  border: 1px solid #dce8e3;
  background:
    linear-gradient(130deg, rgba(15, 91, 54, 0.08), transparent 45%),
    linear-gradient(250deg, rgba(27, 79, 140, 0.09), transparent 40%),
    #f4f8f7;
  box-shadow: 0 18px 40px rgba(16, 40, 66, 0.12);
  overflow: hidden;
  isolation: isolate;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-media::before {
  background:
    radial-gradient(700px 320px at 12% -10%, rgba(27, 79, 140, 0.24), transparent 60%),
    radial-gradient(760px 360px at 90% 110%, rgba(15, 91, 54, 0.22), transparent 62%);
  opacity: 0.55;
}

.hero-media::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at 35% 30%, #000 45%, transparent 78%);
  opacity: 0.28;
  animation: gridFloat 26s linear infinite;
}

.hero-media-grid {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.05rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.hero-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 36px rgba(16, 40, 66, 0.14);
  transform: translateY(0) scale(1);
  transition: transform 340ms ease, box-shadow 340ms ease, filter 340ms ease;
  filter: saturate(1.06) contrast(1.04);
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 380px at 20% 20%, rgba(0, 0, 0, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 55%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.hero-shot--agro {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.hero-shot--agro img {
  object-position: 50% 78%;
}

.hero-shot--servers {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.hero-shot--servers img {
  object-position: 50% 35%;
}

.hero-shot--racks {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.hero-shot--racks img {
  object-position: 50% 45%;
}

.hero-media:hover .hero-shot {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 48px rgba(16, 40, 66, 0.22);
}

.hero-badges {
  position: absolute;
  z-index: 2;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.05rem;
  display: grid;
  gap: 0.65rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(16, 40, 66, 0.14);
}

.hero-badge__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 12px 20px rgba(126, 188, 47, 0.26);
  flex: 0 0 auto;
}

.hero-badge__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-badge__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.2;
}

.hero-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #cde0d7;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: var(--primary-strong);
  font-size: 0.85rem;
  background: #edf5f1;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(21, 122, 71, 0.08);
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section:nth-of-type(odd)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(15, 91, 54, 0.028), transparent 62%),
    radial-gradient(700px 260px at 85% 100%, rgba(126, 188, 47, 0.08), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.section-title {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  margin-bottom: 0.9rem;
}

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

.glass-card {
  border: 1px solid #dbe7ee;
  border-radius: 18px;
  padding: 1.4rem;
  background:
    linear-gradient(165deg, rgba(126, 188, 47, 0.08), transparent 55%),
    linear-gradient(335deg, rgba(21, 122, 71, 0.05), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  height: 100%;
  position: relative;
  transform: translateY(0);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: #bdd5e2;
}

.stat-box {
  padding: 1.2rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dce8ee;
  box-shadow: 0 8px 20px rgba(20, 43, 71, 0.05);
  transform: translateY(0);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(20, 43, 71, 0.12);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.2rem;
  color: #ffffff;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 12px 20px rgba(126, 188, 47, 0.3);
}

.glass-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.06);
}

.btn-brand {
  color: #ffffff;
  border: 0;
  font-weight: 600;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(21, 122, 71, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-brand:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(126, 188, 47, 0.28);
}

.btn-brand::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 45%;
  height: 320%;
  transform: rotate(28deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: transform 420ms ease;
}

.btn-brand:hover::after {
  transform: translateX(290%) rotate(28deg);
}

.btn-ghost {
  border: 1px solid #c9d9e3;
  color: var(--text-main);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 39, 63, 0.06);
}

.btn-ghost:hover {
  border-color: #a9c0d0;
  color: var(--primary-strong);
  background: #f8fbff;
  transform: translateY(-1px);
}

.timeline {
  border-left: 2px solid #8ecb49;
  margin-left: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.timeline-item {
  margin-bottom: 1.1rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.58rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(126, 188, 47, 0.2);
}

.footer {
  border-top: 1px solid var(--border-soft);
  background: #f8fbff;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 122, 71, 0.06), rgba(126, 188, 47, 0.08));
  pointer-events: none;
}

.form-control,
.form-select {
  color: var(--text-main);
  border-color: #cbdde7;
  background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
  color: var(--text-main);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(126, 188, 47, 0.22);
  background-color: #ffffff;
}

.kpi-table td {
  color: var(--text-main);
  border-color: #e2ecf1;
}

.kpi-table td:last-child {
  color: var(--primary);
  font-weight: 600;
}

.kpi-table tr {
  transition: transform 220ms ease, background-color 220ms ease;
}

.kpi-table tr:hover {
  transform: translateX(4px);
  background-color: rgba(126, 188, 47, 0.1);
}

.reference-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d5e1ea;
  box-shadow: 0 12px 24px rgba(16, 40, 66, 0.12);
  display: block;
}

@keyframes shineSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes gridFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(42px);
  }
}

@keyframes ambientPulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 991px) {
  :root {
    --nav-offset: 82px;
  }

  .site-logo {
    height: 64px;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-grid {
    min-height: 300px;
  }

  .hero--bg {
    aspect-ratio: auto;
    min-height: 560px;
    max-height: none;
    padding: 0;
  }

  .hero--bg .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .navbar .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.75rem 0.5rem;
    border-radius: 14px;
    border: 1px solid #d7e3eb;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(16, 40, 66, 0.08);
  }

  .navbar .nav-link {
    padding: 0.55rem 0.75rem !important;
    border-radius: 10px;
  }

  .navbar .nav-link::after {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-offset: 58px;
  }

  body {
    background: #f7f9fc;
  }

  body::before,
  body::after {
    display: none;
  }

  .navbar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0.45rem;
  }

  .site-logo {
    height: 56px;
  }

  .hero {
    padding: 2.1rem 0 1.6rem;
  }

  .hero--bg {
    min-height: auto;
  }

  .hero--bg .container {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }

  .hero-card {
    border-radius: 16px;
  }

  .hero-card--bg {
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  }

  .hero--bg h1 {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 1rem !important;
    line-height: 1.5;
  }

  .hero-chip,
  .chip {
    font-size: 0.78rem;
    padding: 0.26rem 0.65rem;
  }

  .stat-box {
    padding: 0.95rem;
    border-radius: 12px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 2.25rem 0;
  }

  .section-title {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .glass-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .btn.btn-lg {
    padding: 0.58rem 0.95rem;
    font-size: 0.97rem;
  }

  .footer .container {
    gap: 0.85rem;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .footer span.muted {
    font-size: 0;
  }

  .footer span.muted::before {
    content: "EU-INFO Kft.";
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .footer .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .hero-bg__slide {
    filter: blur(10px) saturate(1.05) contrast(1.03);
    transform: scale(1.06);
  }

  .hero-bg__scrim {
    background:
      radial-gradient(760px 420px at 18% 18%, rgba(15, 91, 54, 0.48), transparent 60%),
      radial-gradient(760px 420px at 85% 16%, rgba(126, 188, 47, 0.44), transparent 60%),
      linear-gradient(180deg, rgba(10, 20, 32, 0.62), rgba(10, 20, 32, 0.48));
  }
}

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