/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:       #f8f8f6;
  --clr-surface:  #ffffff;
  --clr-border:   #e5e5e0;
  --clr-text:     #1a1a1a;
  --clr-muted:    #6b6b6b;
  --clr-accent:   #2563eb;
  --clr-accent-h: #1d4ed8;
  --radius:       12px;
  --max-w:        1100px;
  --font:         'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  font-size: 1rem;
}

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

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2rem);
  margin-inline: auto;
}

section { padding-block: 5rem; }

/* ── Header / Nav ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,248,246,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 2rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--clr-text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: 4rem 4rem;
}

@media (max-width: 820px) {
  .hero { padding-block: 2.5rem 3rem; }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--clr-muted);
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

/* ── Hero / page-hero split layout ───────────────────────── */
.hero-inner,
.page-hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text { flex: 1; min-width: 0; }

.hero-illus {
  flex: 0 0 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illus dotlottie-wc {
  width: 100%;
  height: 520px;
}

@media (max-width: 820px) {
  .hero-inner,
  .page-hero-inner {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }
  .hero h1 { margin-inline: auto; }
  .hero p  { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-illus {
    flex: unset;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
  .hero-illus dotlottie-wc {
    height: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--clr-accent-h); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn-ghost:hover { border-color: var(--clr-text); transform: translateY(-1px); }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section title ────────────────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* ── Products grid ────────────────────────────────────────── */
.products { background: var(--clr-bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-icon svg { width: 24px; height: 24px; color: var(--clr-accent); }

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card p { color: var(--clr-muted); font-size: 0.95rem; flex: 1; }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-top: 0.5rem;
  transition: gap 0.2s;
}
.product-link:hover { gap: 0.6rem; }

/* ── Portfolio ────────────────────────────────────────────── */
.portfolio { background: var(--clr-surface); border-top: 1px solid var(--clr-border); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--clr-bg);
}
.portfolio-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

.portfolio-illustration {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-illustration svg { width: 48px; height: 48px; color: var(--clr-accent); opacity: 0.5; }

.portfolio-body { padding: 1.5rem; }
.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.portfolio-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.portfolio-body p { font-size: 0.9rem; color: var(--clr-muted); }

/* ── Inner page hero ──────────────────────────────────────── */
.page-hero {
  padding-block: 5rem 3rem;
  border-bottom: 1px solid var(--clr-border);
}
.page-hero .badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--clr-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* ── Features list ────────────────────────────────────────── */
.features { padding-block: 4rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--clr-accent); }
.feature h4 { font-size: 1rem; font-weight: 700; }
.feature p { font-size: 0.9rem; color: var(--clr-muted); }

/* ── CTA banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--clr-text);
  color: #fff;
  text-align: center;
  padding-block: 4rem;
  border-radius: var(--radius);
  margin-block: 3rem;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.cta-banner p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; }
.cta-banner .btn-primary { background: var(--clr-accent); }

/* ── Contact ──────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 680px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--clr-muted); margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-item svg { width: 18px; height: 18px; color: var(--clr-accent); flex-shrink: 0; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--clr-accent); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--clr-border);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { height: 1.6rem; width: auto; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.85rem; color: var(--clr-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--clr-text); }
.footer-copy { font-size: 0.8rem; color: var(--clr-muted); }

/* ── Responsive nav ───────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.82rem; }
}
