/* MeshX marketing — futuristic dark theme */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #030508;
  --bg: #060a12;
  --bg-card: rgba(12, 22, 40, 0.55);
  --border: rgba(53, 252, 255, 0.12);
  --border-strong: rgba(53, 252, 255, 0.28);
  --text: #e8f0f7;
  --muted: #8b9cb3;
  --accent: #35fcff;
  --accent-soft: rgba(53, 252, 255, 0.15);
  --accent-glow: rgba(53, 252, 255, 0.35);
  --blue-mid: #109eea;
  --nav-h: 4.25rem;
  --max: 72rem;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Subtle grid + noise feel */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(53, 252, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(16, 158, 234, 0.06), transparent 45%),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(53, 252, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 252, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #030508;
  font-weight: 600;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.brand span {
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem !important;
  background: linear-gradient(135deg, rgba(53, 252, 255, 0.2), rgba(16, 158, 234, 0.15));
  border: 1px solid var(--border-strong);
  color: var(--accent) !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px var(--accent-glow);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 8, 0.97);
  backdrop-filter: blur(16px);
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.nav-mobile a:hover,
.nav-mobile a:focus {
  background: var(--accent-soft);
  border-color: var(--border);
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Sections */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  background: var(--bg-card);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge::before {
    animation: none;
  }
}

.hero-logo {
  width: min(280px, 70vw);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 40px rgba(53, 252, 255, 0.2));
}

.hero h1 span {
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 45%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(53, 252, 255, 0.25), rgba(16, 158, 234, 0.2));
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(53, 252, 255, 0.08) inset;
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Cards & product grid */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: var(--border-strong);
}

.product-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.product-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: 12px;
}

.product-card h3 {
  font-size: 1.35rem;
}

.product-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.product-card a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.product-card a:hover {
  text-decoration: underline;
}

/* Module detail sections */
.module-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .module-block {
    grid-template-columns: 1fr 1.1fr;
  }
  .module-block.reverse {
    direction: rtl;
  }
  .module-block.reverse > * {
    direction: ltr;
  }
}

.module-visual {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(53, 252, 255, 0.08), transparent 65%);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.module-visual img {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.module-body ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.module-body li {
  margin: 0.5rem 0;
}

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.6);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.9;
  display: block;
  margin-bottom: 0.75rem;
}

.step-kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Pricing */
.pricing-box {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
}

.pricing-box p {
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 44rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact */
.contact-card {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.contact-card a.mail {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-card a.mail:hover {
  text-decoration: underline;
}

.text-accent {
  color: var(--accent);
}

.contact-secondary {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.footer-tag {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  max-width: 18rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal a {
  color: var(--muted);
  margin-right: 1rem;
}

.footer-legal a:hover {
  color: var(--accent);
}
