/* Polytech minimalist, professional, mobile-first */

:root {
  /* Brand */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #0b1320;
  --color-text-muted: #5a6573;
  --color-border: #e6e8ec;
  --color-primary: #0b1320;       /* near-black ink */
  --color-accent: #3caf85;        /* brand green */
  --color-accent-hover: #2f9670;
  --color-success: #1f8a5b;
  --gradient-brand: linear-gradient(135deg, #3caf85 0%, #25618d 100%);
  --gradient-brand-hover: linear-gradient(135deg, #2f9670 0%, #1f527a 100%);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", var(--font-sans);

  /* Scale */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 32, 0.04),
    0 1px 1px rgba(11, 19, 32, 0.03);
  --shadow-md: 0 6px 24px rgba(11, 19, 32, 0.06),
    0 2px 6px rgba(11, 19, 32, 0.04);

  /* Layout */
  --container: 1140px;
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.6vw + 1rem, 3.4rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

p.lead {
  font-size: 1.125rem;
  color: var(--color-text);
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section__head {
  max-width: 720px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--gradient-brand-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.nav__brand img,
.nav__brand svg {
  height: 28px;
  width: auto;
}

.nav__links {
  display: none;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: var(--color-accent);
}

.nav__lang {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  align-items: center;
}

.nav__lang a {
  color: var(--color-text-muted);
  padding: 4px 6px;
  border-radius: 4px;
}

.nav__lang a.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav__mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 12px 0 18px;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile a {
  display: block;
  padding: 10px 4px;
  color: var(--color-primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

@media (min-width: 880px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__mobile {
    display: none !important;
  }
}

/* Hero banner (above-the-fold visual under header) */
.hero-banner {
  display: block;
  line-height: 0;
  background: var(--color-bg-alt);
}

.hero-banner picture,
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero */
.hero {
  padding: 24px 0 48px;
  position: relative;
  overflow: hidden;
}

/* Mobile: center hero content for a more natural feel */
@media (max-width: 879px) {
  .hero__copy h1 {
    margin-bottom: 0.35em;
  }

  .hero__copy .section__eyebrow {
    margin-bottom: 0.35rem;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__copy p,
  .hero__copy p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__meta {
    justify-content: center;
  }

  .hero__meta-item {
    align-items: center;
    text-align: center;
  }

  .section__head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero__copy h1 span {
  color: var(--color-accent);
}

.hero__copy p {
  font-size: 1.075rem;
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero__media {
  position: relative;
}

.hero__media .media {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
}

.hero__meta-item strong {
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1.1;
}

.hero__meta-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (min-width: 880px) {
  .hero {
    padding: 96px 0 88px;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

/* Features strip */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(60, 175, 133, 0.12);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.94rem;
  margin: 0;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Products */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.product {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product:hover {
  box-shadow: var(--shadow-md);
}

.product__media {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.product__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product__tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 600;
}

.product h3 {
  font-size: 1.4rem;
  margin: 0;
}

.product__spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 8px 0 4px;
  font-size: 0.9rem;
}

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

.product__spec dd {
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

@media (min-width: 720px) {
  .products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  margin-bottom: 4px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq__item.is-open .faq__q::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__item.is-open .faq__a {
  max-height: 400px;
}

.faq__a-inner {
  padding: 0 0 22px;
  color: var(--color-text-muted);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

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

.founder {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--color-surface);
}

.founder__role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.founder h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.founder a {
  font-size: 0.95rem;
  word-break: break-all;
}

@media (min-width: 720px) {
  .founders {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* Contact / CTA banner */
.cta {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  color: #fff;
  padding: 40px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.cta h2 {
  color: #fff;
  margin: 0 0 6px;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta .btn--ghost:hover {
  border-color: #fff;
}

@media (min-width: 880px) {
  .cta {
    grid-template-columns: 1.4fr 1fr;
    padding: 56px;
  }

  .cta__actions {
    justify-content: flex-end;
  }
}

/* Footer */
.site-footer {
  background: var(--gradient-brand);
  color: #e8eef2;
  padding: 56px 0 24px;
}

.site-footer a {
  color: #e8eef2;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}

.footer__brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__brand svg {
  height: 24px;
}

.footer__about {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.85);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #c7ccd6;
}

.footer__social a:hover {
  border-color: #fff;
  color: #fff;
}

.footer__eu {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.footer__eu p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__eu strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.footer__eu .btn {
  justify-self: start;
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer__eu {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal-delay="1"] {
    transition-delay: 80ms;
  }

  .js [data-reveal-delay="2"] {
    transition-delay: 160ms;
  }

  .js [data-reveal-delay="3"] {
    transition-delay: 240ms;
  }
}

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