/* ============ LoRaWAN Badge OEM Site — Dark Tech Theme ============ */
:root {
  --bg: #06090f;
  --bg2: #0a1018;
  --panel: #0e1620;
  --panel2: #121c28;
  --line: #1c2a3a;
  --neon: #00e5c7;
  --neon2: #38bdf8;
  --neon3: #7c5cff;
  --txt: #dce7f2;
  --txt-dim: #8ba3ba;
  --radius: 14px;
  --font: "Segoe UI", "Inter", "Helvetica Neue", Arial, "Noto Sans Arabic", "Tahoma", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--neon); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Particle canvas ---------- */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
}

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 2;
  background: rgba(6, 9, 15, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 13px; color: var(--txt-dim);
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--txt-dim); }
.topbar a:hover { color: var(--neon); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 15, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  display: grid; place-items: center; color: #04131a; font-size: 17px; font-weight: 800;
}
.brand small { display: block; font-size: 10.5px; font-weight: 400; color: var(--txt-dim); letter-spacing: .5px; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { color: var(--txt); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--neon); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* language dropdown */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; font-family: inherit;
}
.lang-btn:hover { border-color: var(--neon); }
.lang-btn .chev { font-size: 10px; color: var(--txt-dim); transition: transform .25s; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  list-style: none; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .22s;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch:hover .chev { transform: rotate(180deg); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; color: var(--txt); font-size: 14px; white-space: nowrap;
}
.lang-menu a:hover { background: rgba(0,229,199,.09); color: var(--neon); }
.lang-menu a.active { color: var(--neon); background: rgba(0,229,199,.08); }
.lang-menu .flag { font-size: 17px; }

.cta-nav {
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  color: #04131a; font-weight: 700; padding: 9px 20px; border-radius: 9px; font-size: 14px;
  white-space: nowrap;
}
.cta-nav:hover { filter: brightness(1.12); color: #04131a; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 84px 0 70px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,229,199,.35); background: rgba(0,229,199,.07);
  color: var(--neon); font-size: 13px; font-weight: 600; letter-spacing: .4px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.16; font-weight: 800; color: #fff;
}
.hero h1 .hl { background: linear-gradient(90deg, var(--neon), var(--neon2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 22px 0 30px; color: var(--txt-dim); font-size: 17px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 11px; font-weight: 700; font-size: 15px;
  transition: all .22s; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--neon), var(--neon2)); color: #04131a; }
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 0 32px rgba(0,229,199,.35); color: #04131a; }
.btn-ghost { border-color: var(--line); color: var(--txt); background: rgba(14,22,32,.6); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .st b { display: block; font-size: 30px; color: #fff; }
.hero-stats .st b em { font-style: normal; color: var(--neon); }
.hero-stats .st span { font-size: 13px; color: var(--txt-dim); }

.hero-visual { position: relative; }
.hero-visual .ring {
  position: absolute; inset: -34px; border-radius: 30px;
  background: radial-gradient(closest-side, rgba(0,229,199,.13), transparent 72%);
  filter: blur(2px);
}
.hero-visual img {
  position: relative; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 60px rgba(0,229,199,.10);
}
.hero-visual .chip {
  position: absolute; background: rgba(14,22,32,.92); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; font-size: 13px; backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
}
.hero-visual .chip b { display: block; color: var(--neon); font-size: 15px; }
.chip-c1 { top: 22px; inset-inline-start: -18px; }
.chip-c2 { bottom: 34px; inset-inline-end: -14px; }

/* ---------- Sections ---------- */
section.sec { position: relative; z-index: 1; padding: 74px 0; }
.sec-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head .eyebrow { color: var(--neon); font-weight: 700; letter-spacing: 1.6px; font-size: 12.5px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; margin: 10px 0 14px; font-weight: 800; }
.sec-head p { color: var(--txt-dim); font-size: 16px; }

/* features grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all .25s; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2)); opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,199,.4); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,229,199,.1); border: 1px solid rgba(0,229,199,.28);
  font-size: 21px; margin-bottom: 16px;
}
.card h3 { color: #fff; font-size: 17px; margin-bottom: 9px; }
.card p { color: var(--txt-dim); font-size: 14.5px; }

/* specs table */
.specs-wrap { max-width: 900px; margin: 0 auto; }
table.specs {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 15px;
}
table.specs caption { caption-side: top; text-align: start; padding: 18px 22px 0; color: #fff; font-weight: 700; font-size: 18px; }
table.specs th, table.specs td { padding: 14px 22px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: none; }
table.specs th { color: var(--neon); font-weight: 600; white-space: nowrap; width: 38%; background: rgba(0,229,199,.04); }
table.specs td { color: var(--txt); }
table.specs tr:hover td, table.specs tr:hover th { background: rgba(0,229,199,.03); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); position: relative;
}
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 13px 16px; font-size: 13.5px; color: var(--txt-dim); }

/* bands pills */
.bands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.pill {
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; color: var(--txt); font-weight: 600;
  font-family: "Consolas", "Courier New", monospace;
}
.pill:hover { border-color: var(--neon); color: var(--neon); }

/* applications */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-item {
  background: linear-gradient(160deg, var(--panel), var(--panel2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center;
  transition: all .25s;
}
.app-item:hover { border-color: rgba(56,189,248,.45); transform: translateY(-3px); }
.app-item .ico { font-size: 34px; margin-bottom: 12px; }
.app-item h3 { color: #fff; font-size: 15.5px; margin-bottom: 6px; }
.app-item p { font-size: 13px; color: var(--txt-dim); }

/* OEM section */
.oem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.oem-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.oem-list li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 15px; font-size: 14px; display: flex; align-items: center; gap: 9px;
}
.oem-list li::before { content: "✓"; color: var(--neon); font-weight: 800; }
.oem-img img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.55); }

/* company */
.company-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; }
.company-grid .txt p { color: var(--txt-dim); margin-bottom: 15px; font-size: 15px; }
.company-grid .txt p b { color: var(--txt); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.kv .box { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; }
.kv .box span { display: block; font-size: 12px; color: var(--txt-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.kv .box b { color: var(--neon); font-size: 15px; }
.company-grid .img img { border-radius: var(--radius); border: 1px solid var(--line); }

/* contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-cards { display: grid; gap: 15px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; transition: all .22s;
}
.contact-card:hover { border-color: rgba(0,229,199,.45); }
.contact-card .ico {
  width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(0,229,199,.09); border: 1px solid rgba(0,229,199,.25); font-size: 19px;
}
.contact-card b { display: block; color: #fff; margin-bottom: 3px; font-size: 15px; }
.contact-card a, .contact-card span { color: var(--txt-dim); font-size: 14px; display: block; }
.contact-card a:hover { color: var(--neon); }
.contact-side { background: linear-gradient(160deg, var(--panel), #0b2330); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.contact-side h3 { color: #fff; font-size: 21px; margin-bottom: 12px; }
.contact-side p { color: var(--txt-dim); font-size: 14.5px; margin-bottom: 20px; }
.contact-side .mail-btn { display: block; text-align: center; }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 1; background: #04070c; border-top: 1px solid var(--line); padding: 54px 0 26px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 38px; }
.foot-grid h4 { color: #fff; font-size: 15px; margin-bottom: 15px; }
.foot-grid p, .foot-grid li { color: var(--txt-dim); font-size: 13.5px; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid ul a { color: var(--txt-dim); }
.foot-grid ul a:hover { color: var(--neon); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--txt-dim); font-size: 12.5px; }
.foot-langs a { color: var(--txt-dim); margin-inline-start: 12px; }
.foot-langs a:hover { color: var(--neon); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container, .oem-grid, .company-grid, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .gallery, .apps, .oem-list, .kv { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 50px; }
  .hero-stats { gap: 24px; }
  .chip-c1, .chip-c2 { display: none; }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .nav .container { flex-direction: row; }
[dir="rtl"] table.specs th, [dir="rtl"] table.specs td { text-align: right; }
[dir="rtl"] .oem-list li { flex-direction: row-reverse; justify-content: flex-start; }
