:root {
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --surface: #eef1f5;
  --surface-hover: #e4e8ef;
  --text: #111418;
  --text-secondary: #5a6270;
  --accent: #1a56db;
  --accent-hover: #1547b8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  background-image: none;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: left;
  max-width: 36rem;
  margin: 0 0 2.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.products .section-head,
.contact .section-head {
  margin-inline: auto;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent);
  transition: background 0.15s ease, opacity 0.15s ease;
  box-shadow: none;
}

.btn:hover {
  background: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

.btn:active {
  opacity: 0.92;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  padding: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-text {
  color: var(--text-secondary);
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-glow {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.products-status {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.45s ease, transform 0.45s ease;
  position: relative;
  opacity: 0;
  transform: translateY(12px);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(0);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-media {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.product-body {
  padding: 1.1rem 1.15rem 1.15rem;
}

.product-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.product-description {
  margin: 0.5rem 0 0.85rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.btn-card {
  width: 100%;
  margin-top: 0.25rem;
}

.product-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.resource-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.product-card.placeholder {
  pointer-events: none;
}

.product-card.placeholder .product-body h3,
.product-card.placeholder .btn-card {
  background: linear-gradient(90deg, #e8ecf2 25%, #f0f3f8 50%, #e8ecf2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  color: transparent;
  border-radius: 6px;
}

.product-card.placeholder .product-body h3 {
  min-height: 1.1rem;
  width: 68%;
}

.product-card.placeholder .btn-card {
  min-height: 2.4rem;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(26, 86, 219, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.875rem;
}

.social-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-links a:hover {
  transform: none;
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.65rem 0;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
