/* =========================================================
   MeshLogiq — Landing page styles
   Brand: mesh-network navy / blue / cyan
   ========================================================= */

:root {
  /* Brand palette (from logo) */
  --navy: #2c3a5a;
  --navy-deep: #1c2740;
  --blue: #4a7dfc;
  --blue-bright: #5b8cff;
  --cyan: #38d3e8;
  --cyan-soft: #58e0f0;

  /* Surfaces */
  --bg: #0a1020;
  --bg-2: #0e1526;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(120, 150, 210, 0.14);
  --border-strong: rgba(120, 150, 210, 0.28);

  /* Text */
  --text: #e9eefb;
  --muted: #9fb0cd;
  --muted-dim: #6d7d9c;

  /* Effects */
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-text: linear-gradient(120deg, #7aa2ff 0%, #58e0f0 100%);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px -12px rgba(74, 125, 252, 0.45);

  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(56, 211, 232, 0.14), transparent 60%),
    radial-gradient(800px 500px at 12% 8%, rgba(74, 125, 252, 0.16), transparent 60%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  --_pad: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--_pad);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad-brand);
  color: #07101f;
  box-shadow: 0 10px 30px -10px rgba(56, 211, 232, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(56, 211, 232, 0.7);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.btn-lg {
  --_pad: 15px 30px;
  font-size: 1.02rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 16, 32, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav__logo img {
  height: 34px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__signin {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.nav__signin:hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 40px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/bg-iot2.jpg") center right / cover no-repeat;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 90%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--cyan-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
  font-weight: 800;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 30px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero__stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat .lbl {
  font-size: 0.85rem;
  color: var(--muted-dim);
}

/* Hero visual card */
.hero__visual {
  position: relative;
}

.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero__visual .glass-card img {
  border-radius: 12px;
}

.hero__float {
  position: absolute;
  background: rgba(14, 21, 38, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero__float .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #24d17a;
  box-shadow: 0 0 0 0 rgba(36, 209, 122, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(36, 209, 122, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(36, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 209, 122, 0); }
}

.hero__float--tl { top: -18px; left: -22px; }
.hero__float--br { bottom: -20px; right: -18px; }

/* ---------- Section shell ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* ---------- Device strip ---------- */
.devices {
  padding: 40px 0 10px;
}

.devices__label {
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
  font-weight: 600;
}

.devices__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--text);
  transform: translateY(-2px);
}

.chip svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

/* ---------- Features grid ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px 160px at 100% 0, rgba(74, 125, 252, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.feature:hover::after {
  opacity: 1;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(74, 125, 252, 0.22), rgba(56, 211, 232, 0.18));
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  color: var(--cyan-soft);
}

.feature h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- GPU / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split__media {
  order: -1;
}

.split__media {
  position: relative;
}

.split__media .glass-card {
  padding: 0;
  overflow: hidden;
}

.gpu-panel {
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(56, 211, 232, 0.18), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(74, 125, 252, 0.22), transparent 60%),
    var(--navy-deep);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.gpu-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(118, 185, 0, 0.14);
  border: 1px solid rgba(118, 185, 0, 0.4);
  color: #a4e14a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.gpu-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gpu-stat {
  background: rgba(10, 16, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.gpu-stat .big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan-soft);
}

.gpu-stat .sub {
  font-size: 0.82rem;
  color: var(--muted-dim);
  margin-top: 2px;
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.check-list li strong {
  color: var(--text);
  font-weight: 600;
}

.check-list .tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.check-list .tick svg {
  width: 13px;
  height: 13px;
  color: #07101f;
}

.split h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  font-weight: 800;
}

.split p.lead {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

/* ---------- Dashboard preview ---------- */
.preview {
  position: relative;
}

.preview__frame {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-2);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.preview__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a4763;
  display: block;
}

.preview__bar i:nth-child(1) { background: #ff5f57; }
.preview__bar i:nth-child(2) { background: #febc2e; }
.preview__bar i:nth-child(3) { background: #28c840; }

/* ---------- Security cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.sec-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(74, 125, 252, 0.14);
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
}

.sec-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--cyan-soft);
}

.sec-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.sec-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  padding: 40px 0 96px;
}

.cta__box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(700px 340px at 50% -30%, rgba(56, 211, 232, 0.22), transparent 60%),
    radial-gradient(700px 400px at 50% 130%, rgba(74, 125, 252, 0.26), transparent 60%),
    var(--bg-2);
}

.cta__box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.cta__box p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 30px;
}

.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 34px;
  background: rgba(8, 13, 26, 0.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer__brand img {
  height: 32px;
  margin-bottom: 16px;
}

.footer__brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 300px;
  margin: 0;
}

.footer__col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  margin: 0 0 16px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted-dim);
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .split { grid-template-columns: 1fr; }
  .split.reverse .split__media { order: 0; }
  .hero__visual { margin-top: 24px; }
  .grid-features,
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__actions .nav__signin { display: none; }
  .nav__toggle { display: block; }

  .nav__links.open {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 22px;
    background: rgba(10, 16, 32, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open a {
    padding: 10px 0;
    width: 100%;
    font-size: 1rem;
  }

  .section { padding: 68px 0; }
  .grid-features,
  .grid-3 { grid-template-columns: 1fr; }
  .cta__box { padding: 48px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero__float { display: none; }
}
