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

:root {
  --bg: #050816;
  --bg-alt: #070b1f;
  --card-bg: rgba(10, 14, 35, 0.96);
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.2);
  --accent-strong: #22c55e;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --transition-fast: 180ms ease-out;
  --max-width: 1120px;
  --header-height: 64px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 50%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-offset {
  margin-top: var(--header-height);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.5rem;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.nav a:hover {
  color: var(--text-main);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 3rem;
  overflow: hidden;
  background-image: url("../images/hero.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.96));
}

.hero-content {
  position: relative;
  max-width: 700px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #a3e635);
  color: #052e16;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 45px rgba(34, 197, 94, 0.55);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

.hero-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-soft);
  padding-left: 0.7rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.98));
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 640px;
}

.two-columns {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-columns {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.about-highlight {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.35));
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.about-highlight h3 {
  margin-top: 0;
}

.cards-grid {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
  border-color: var(--accent-soft);
}

.card-image {
  width: 72px;
  height: 72px;
  border-radius: 1.5rem;
  margin-bottom: 0.4rem;
}

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

.card p {
  margin: 0;
  color: var(--text-muted);
}

.scenarios-grid .card {
  align-self: stretch;
}

.scenario-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.scenario-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.scenario-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-strong);
}

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

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

.step {
  background: radial-gradient(circle at top left, rgba(74, 222, 128, 0.09), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.step h3 {
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

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

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

.benefit {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.benefit h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.benefit p {
  margin: 0;
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--accent-strong);
}

.usecase-panel {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.6rem;
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: var(--shadow-soft);
}

.connectivity-panel img {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.section-cta {
  padding: 3.5rem 0 3.5rem;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08), rgba(2, 6, 23, 0.98));
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cta-contact {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
}

.cta-label {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.cta-details {
  margin: 0;
  font-size: 0.95rem;
}

.cta-details span {
  color: var(--accent-strong);
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(2, 6, 23, 0.98);
  padding: 1rem 0 1.4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-tagline {
  opacity: 0.85;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.6rem 1.5rem 0.8rem;
    background: rgba(2, 6, 23, 0.98);
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--transition-fast), opacity var(--transition-fast);
  }

  .nav.nav-open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Small-screen layout tweaks */
@media (max-width: 639px) {
  .hero {
    text-align: left;
    padding-top: 3.5rem;
  }

  .header-inner {
    padding-inline: 0.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}
