/* ==============================
    Core variables & resets
    ============================== */
:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #22d3ee;
  --brand-2: #38bdf8;
  --border: rgba(0, 0, 0, .08);
  --container: 1200px;
  --radius: 16px;
  --shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

/* Base */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff
}

img {
  max-width: 100%;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: auto;
  padding: 0 20px
}

/* ==============================
    Header & Navigation
    ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border)
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px
}

.nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent; /* Set transparent by default for nav items */
  transition: .2s
}

.btn--primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #001019;
  font-weight: 700;
  border: none
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 211, 238, .15)
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem
}

/* ==============================
    Products Dropdown Menu (NEW)
    ============================== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .btn {
  background: none;
  font-weight: normal;
  font-size: 1rem;
  cursor: pointer;
}

.dropdown .btn:hover {
  background-color: var(--bg-2);
  transform: none;
  box-shadow: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, .1);
  z-index: 10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown-content a {
  color: var(--text);
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  border-radius: 10px;
}

.dropdown-content a:hover {
  background-color: var(--bg-2);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* RTL adjustments for dropdown */
[dir="rtl"] .dropdown-content {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .dropdown-content a {
  text-align: right;
}


/* ==============================
    Responsive Navigation
    ============================== */
@media (max-width: 800px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: .8rem;
    align-items: flex-start;
  }

  .nav.open {
    display: flex
  }

  .nav-toggle {
    display: block
  }

  /* Mobile dropdown adjustments */
  .dropdown {
    width: 100%;
  }
  .dropdown .btn {
    width: 100%;
    justify-content: space-between;
  }
  .dropdown-content {
    position: static;
    display: none; /* Controlled by JS or details/summary for accessibility */
    box-shadow: none;
    border: none;
    width: 100%;
    transform: none;
  }
  .dropdown:hover .dropdown-content {
    display: block; /* Simple show on hover for mobile too */
  }
}


/* ==============================
    Hero Section
    ============================== */
.hero {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(34, 211, 238, .1), transparent), radial-gradient(900px 500px at -10% 10%, rgba(56, 189, 248, .08), transparent), var(--bg);
  border-bottom: 1px solid var(--border)
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 56px 0;
  text-align: center;
}

.eyebrow {
  font-size: .9rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-2)
}

h1 {
  font-size: clamp(2.2rem, 2.2rem + 1vw, 3.2rem);
  line-height: 1.1;
  margin: .4rem 0 1rem
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
}

/* ==============================
    Content Sections & Cards
    ============================== */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border)
}
.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  margin-bottom: .5rem
}

.muted {
  color: var(--muted)
}

.mt-18 {
  margin-top: 18px
}

.grid {
  display: grid;
  gap: 24px
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.cards .card {
  padding: 0;
}

.cards .card img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.cards .card-body {
  padding: 20px;
}
.card-body h3 {
  margin: .2rem 0;
}

@media (max-width: 900px) {
  .cols-3 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 640px) {
  .cols-3 {
    grid-template-columns: 1fr
  }
}

/* ==============================
    Footer
    ============================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 40px 0
}

.footer-col h5 {
  margin-bottom: .5rem;
  color: #0f172a
}

.footer-col p {
  color: var(--muted);
  margin: .3rem 0
}

.foot-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #475569;
  font-size: .95rem
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}