/* ============================================================
   Homepage styles — visual layout inspired by the original reference (Tilda / Roboto)
   ============================================================ */

:root {
  --green: #038c5c;
  --green-dark: #026e48;
  --red: #9c0528;
  --ink: #000000;
  --text: #2b2b2b;
  --muted: #8c8c8c;
  --line: #ededed;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --bg-soft2: #f2f2f2;
  --maxw: 1200px;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }

.section__head { text-align: center; max-width: 820px; margin: 0 auto 60px; }
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.2;
}
.section__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--green);
  margin: 22px auto 0;
}
.section__lead { font-size: 18px; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  border-radius: 4px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--white { background: #fff; color: var(--green); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(3, 52, 35, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.20);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--ink); }
.brand__logo { height: 50px; width: auto; display: block; }
.brand__logo--footer { height: 56px; }
.brand__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: #fff; font-weight: 700; font-size: 20px;
}
.brand span em { color: var(--green); font-style: normal; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: #fff; transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 8px; }

/* language switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch__opt {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch__opt.is-active { background: #fff; color: var(--green); }
.lang-switch__opt:not(.is-active):hover { background: rgba(255, 255, 255, 0.14); }
.header__cta .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}
.header__cta .btn--outline:hover { background: #fff; color: var(--green); border-color: #fff; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.burger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ---------- Hero (cover) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(3, 60, 40, 0.65)),
    url("/static/media/marvin-meyer-SYTO3xs.jpg") center/cover no-repeat;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; padding: 40px 20px; }

@media (prefers-reduced-motion: reduce) {
  .hero__canvas { display: none; }
}
.hero__eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dff5ec;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.hero__lead { font-size: 19px; color: #eaeaea; max-width: 640px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- About ---------- */
.about__lead {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.about__lead span { color: var(--green); }
.about__text { max-width: 820px; margin: 0 auto; text-align: center; }
.about h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; color: var(--ink); margin: 0 0 22px; line-height: 1.2; }
.about h2 span { color: var(--green); }
.about h2::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--green); margin: 22px auto 0;
}
.about p { font-size: 18px; color: var(--text); margin: 0 auto 16px; max-width: 700px; }
.about__list {
  list-style: none; padding: 0; margin: 30px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.about__list li {
  display: flex; align-items: center; gap: 9px;
  font-weight: 500; color: var(--ink); font-size: 15px;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.about__list li:hover { border-color: var(--green); background: rgba(3,140,92,0.06); }
.about__list li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- Services (3 cards) ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--green);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s ease;
}
.service:hover { box-shadow: 0 22px 50px rgba(0,0,0,0.13); transform: translateY(-8px); border-color: transparent; }
.service:hover::after { transform: scaleY(1); }

.service__media { position: relative; height: 190px; overflow: hidden; }
.service__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.service:hover .service__media img { transform: scale(1.07); }
.service__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,60,40,0.10) 0%, rgba(3,60,40,0.35) 60%, rgba(255,255,255,1) 100%);
}
.service__num {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  font-size: 40px; font-weight: 700; line-height: 1;
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
}

.service__body { position: relative; padding: 0 30px 34px; }
.service__icon {
  position: relative; z-index: 2;
  width: 68px; height: 68px; margin: -34px 0 18px; border-radius: 16px;
  display: grid; place-items: center; font-size: 30px;
  background: #fff; color: var(--green);
  box-shadow: 0 10px 26px rgba(3,140,92,0.22);
}
.service h3 { font-size: 21px; font-weight: 500; color: var(--ink); margin: 0 0 16px; }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.service li { color: var(--muted); display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.service li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- Header cart ---------- */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-right: 6px;
  color: #fff;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.header-cart:hover { background: rgba(255, 255, 255, 0.14); }
.header-cart__count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(3, 52, 35, 0.6);
}

/* ---------- Products ---------- */
.product-family { margin-top: 60px; }
.product-family:first-of-type { margin-top: 0; }
.product-family__intro { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.product-family__tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
  background: rgba(3, 140, 92, 0.10);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.product-family__intro h3 { font-size: 24px; font-weight: 500; color: var(--ink); margin: 0 0 10px; }
.product-family__intro p { color: var(--muted); margin: 0; font-size: 16px; }
.link-info {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-size: 14px; font-weight: 500; color: var(--green);
  padding: 9px 18px;
  border: 1px solid rgba(3, 140, 92, 0.35);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.link-info:hover { background: rgba(3, 140, 92, 0.08); border-color: var(--green); }
.link-info svg { flex: none; }

.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.products__grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 860px; margin: 0 auto; }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10); transform: translateY(-5px); }
.product-card__media { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.product-card__name { font-size: 17px; font-weight: 500; color: var(--ink); margin: 0; }
.product-card__desc { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.product-card__price {
  font-size: 21px; font-weight: 700; color: var(--green);
  margin-top: auto; line-height: 1.2;
}
.product-card__price .from {
  display: block;
  font-size: 11px; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.product-card__add { width: 100%; margin-top: 4px; padding: 11px 18px; }
.product-card__add.is-added { background: var(--ink); border-color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  background: var(--ink);
  color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 13px 24px;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Platforms (iOS / Android) — hero-vibe dark section ---------- */
.platforms-section {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.60), rgba(3, 60, 40, 0.78)),
    url("/static/media/marvin-meyer-SYTO3xs.jpg") center/cover fixed no-repeat;
}
.section__title--light { color: #fff; }
.section__title--light::after { background: rgba(255, 255, 255, 0.7); }
.section__lead--light { color: rgba(255, 255, 255, 0.82); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.platform {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 32px 34px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.platform:hover {
  transform: translateY(-6px);
  border-color: rgba(3, 140, 92, 0.7);
  background: rgba(255, 255, 255, 0.10);
}
.platform__phone {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* soft, feathered glow behind the phone (no hard edges) */
.platform__phone::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 150%; height: 82%;
  transform: translate(-50%, -46%);
  background: radial-gradient(closest-side,
              rgba(3, 140, 92, 0.45) 0%,
              rgba(3, 140, 92, 0.18) 45%,
              rgba(3, 140, 92, 0) 78%);
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}
.platform__phone img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
  animation: phoneFloat 6s ease-in-out infinite;
}
.platform:nth-child(2) .platform__phone img { animation-delay: -3s; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .platform__phone img { animation: none; }
}
.platform__title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 14px; }
.platform__title .ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: grid; place-items: center; font-size: 22px;
}
.platform p { color: rgba(255, 255, 255, 0.78); margin: 0 0 18px; font-size: 15px; }
.platform ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.platform li { display: flex; gap: 12px; color: rgba(255, 255, 255, 0.92); font-size: 15px; }
.platform li::before { content: "→"; color: #6ee7b0; font-weight: 700; }

/* ---------- Portfolio ---------- */
.portfolio__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.12); transform: translateY(-6px); }
.project__cover { height: 150px; background-size: cover; background-position: center; }
.project__body { padding: 22px 22px 26px; }
.project__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.project h3 { font-size: 17px; font-weight: 500; color: var(--ink); margin: 8px 0 8px; line-height: 1.35; }
.project p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 30px;
  position: relative;
}
.quote::before { content: "“"; font-family: Georgia, serif; font-size: 70px; line-height: 0.7; color: rgba(3,140,92,0.18); }
.quote p { color: var(--text); font-size: 16px; margin: 14px 0 24px; }
.quote__author { display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.quote__author strong { display: block; color: var(--ink); font-size: 15px; }
.quote__author span { color: var(--muted); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta {
  color: #fff;
  text-align: center;
  padding: 90px 20px;
  background:
    linear-gradient(rgba(3, 60, 40, 0.86), rgba(3, 60, 40, 0.90)),
    url("/static/media/marvin-meyer-SYTO3xs.jpg") center/cover fixed no-repeat;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 0 0 14px; }
.cta p { font-size: 19px; opacity: 0.92; margin: 0 0 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0d0d; color: #b3b3b3; padding: 66px 0 26px; }
.site-footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand__mark { background: var(--green); }
.site-footer__about { color: #8f8f8f; font-size: 15px; max-width: 300px; }
.fcol h4 { color: #fff; font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.fcol a, .fcol p { display: block; color: #8f8f8f; padding: 6px 0; margin: 0; font-size: 15px; transition: color 0.15s ease; }
.fcol a:hover { color: var(--green); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; color: #6f6f6f; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { color: #93a0b5; font-size: 14px; transition: color 0.15s ease; }
.footer__legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services__grid, .quotes__grid { grid-template-columns: 1fr 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .products__grid, .products__grid--3 { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .nav, .header__cta .btn { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 78px; left: 0; right: 0;
    background: rgba(3, 52, 35, 0.97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10); padding: 6px 20px 14px;
  }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .services__grid, .quotes__grid, .portfolio__grid { grid-template-columns: 1fr; }
  .products__grid, .products__grid--3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
  .platform { grid-template-columns: 1fr; text-align: center; }
  .platform__phone img { max-width: 150px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26)); }
  .platform__phone::before { width: 120%; height: 70%; filter: blur(18px); background: radial-gradient(closest-side, rgba(3,140,92,0.35) 0%, rgba(3,140,92,0) 76%); }
  .platform__title { justify-content: center; }
  .platform li { justify-content: center; }
  .platforms-section { background-attachment: scroll; }
}
