:root {
  --bg-primary: #1a1f2c;
  --bg-gradient-end: #232936;
  --accent: #52e5e7;
  --accent-dim: rgba(82, 229, 231, 0.15);
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --surface: #232936;
  --surface-hover: #2d3548;
  --border: rgba(82, 229, 231, 0.2);
  --header-height: 72px;
  --radius: 12px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.85;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 31, 44, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.header__logo:hover {
  opacity: 1;
}

.header__logo img {
  object-fit: contain;
}

.header__logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover {
  opacity: 1;
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero */
.hero {
  padding: 4rem 0 6rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-gradient-end) 100%);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(280px, 70vw);
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(82, 229, 231, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(82, 229, 231, 0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--secondary:hover {
  background: var(--accent-dim);
}

/* About */
.about__text {
  text-align: center;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.stat:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Products */
.products {
  background: var(--bg-gradient-end);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(82, 229, 231, 0.12);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.product-card__icon svg {
  width: 100%;
  height: 100%;
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.product-card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

.product-card__link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Contact */
.contact {
  text-align: center;
}

.contact__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact__email:hover {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(82, 229, 231, 0.15);
  transform: translateY(-2px);
}

.contact__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer__nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 44, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__logo-text {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
