*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, input, select, textarea, button, h1, h2, h3, h4, h5, h6, a, span, p, small {
  font-family: var(--font) !important;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}

/* ── SCROLL PROGRESS BAR ────────────────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0; width: 0%; height: 3px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s ease;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ── NAV ──────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
  gap: 24px;
}
nav.scrolled {
  height: 64px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap;
  letter-spacing: -.02em;
}
.nav-brand .logo-box {
  width: 32px; height: 32px; background: var(--accent); color: #000;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.2rem;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links { display: flex; gap: 4px; font-size: .875rem; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; color: var(--muted);
  font-weight: 500; transition: all .2s; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--accent-bg); }

/* Dropdown */
.dropdown-content {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; min-width: 220px; padding: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 8px; color: var(--text); transition: background .2s;
}
.dropdown-item:hover { background: var(--accent-bg); }
.dropdown-item i { width: 18px; color: var(--accent); font-size: 1rem; }
.dropdown-item div { display: flex; flex-direction: column; }
.dropdown-item span { font-weight: 600; font-size: .85rem; }
.dropdown-item small { font-size: .72rem; color: var(--muted); }

.dropdown-divider { height: 1px; background: var(--border); margin: 8px 12px; }

.nav-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mobile-toggle {
  display: none; /* Hidden by default (desktop) */
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

.nav-links-wrap {
  display: flex; /* Visible by default (desktop) */
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  nav { padding: 0 20px; justify-content: space-between; }
  .nav-brand { z-index: 101; }
  .nav-brand span {
    display: block;
    font-size: 0.9rem;
    max-width: 150px;
    line-height: 1.2;
    white-space: normal;
  }

  .mobile-toggle {
    display: block; /* Shown on mobile */
  }

  .nav-links-wrap {
    display: none; /* Hidden on mobile by default */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 100px 24px 40px;
    gap: 32px;
    overflow-y: auto;
    z-index: 100;
    justify-content: flex-start;
  }
  .nav-links-wrap.show {
    display: flex; /* Shown when toggled */
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
  }
  .nav-link {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--card);
    border: 1px solid var(--border);
  }

  .nav-item { width: 100%; }
  .nav-item .nav-link i { margin-left: auto; }

  .dropdown-content {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 1px solid var(--border); background: var(--surface);
    margin-top: 8px;
    display: block; /* Always show products in mobile menu for simplicity */
    width: 100%;
  }

  .nav-controls {
    width: 100%;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .nav-select {
    height: 48px;
    flex: 1;
    font-size: 0.9rem;
  }
}

.btn-contact {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: 8px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600;
  transition: all .2s;
}
.btn-contact:hover { background: var(--surface); border-color: var(--muted); }

.nav-select {
  appearance: none;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 28px 5px 10px; font-size: .8rem; cursor: pointer;
  font-family: var(--font);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-select:focus { outline: none; border-color: var(--accent); }

/* ── ANIMATIONS ──────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); text-align: center;
  padding: 28px 24px; font-size: .77rem; color: var(--muted);
  transition: border-color .25s;
}

/* ── COMMON UI COMPONENTS ───────────────────────────────────────────── */
.container { max-width: 1080px; margin: 40px auto; padding: 0 24px; }

.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.section-sub { color: var(--muted); max-width: 500px; font-size: .9rem; }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.faq-item h3 { font-size: .95rem; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 99px;
  border: 1px solid var(--accent-bd); background: var(--accent-bg);
  color: var(--accent); font-size: .76rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 28px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  font-family: var(--font);
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); border: none; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
