/* vNetMap landing page styles. Self-hosted, no external resources. */

:root {
  color-scheme: dark;
  --bg: #111827;
  --surface: #1f2937;
  --border: #374151;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --subtle: #6b7280;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --radius: 0.5rem;
  --gutter: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 0.2);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--subtle);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.text-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: #fff;
}

/* Header */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero */

.hero {
  padding-block: 2.5rem 3rem;
  text-align: center;
}

.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

.hero-lead {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}

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

/* Beta strip */

.beta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.beta-strip li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.beta-strip a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.beta-strip a:hover {
  color: #fff;
}

/* Screenshots */

.screenshots {
  padding-bottom: 4rem;
}

.screenshot-frame {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.375rem;
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 3rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

/* Features */

.features {
  display: grid;
  gap: 2.5rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  background: rgb(59 130 246 / 0.1);
  border-radius: var(--radius);
  color: var(--accent);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature h3 {
  margin-bottom: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

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

.feature-note {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.feature-note p {
  color: var(--text);
  font-weight: 600;
}

.feature-note ul {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.feature-note li {
  position: relative;
  padding-left: 1rem;
}

.feature-note li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.3125rem;
  height: 0.3125rem;
  background: var(--subtle);
  border-radius: 50%;
}

/* Current limitations */

.limitations {
  max-width: 44rem;
}

.limitations ul {
  display: grid;
  gap: 0.875rem;
  color: var(--muted);
}

.limitations li {
  position: relative;
  padding-left: 1.5rem;
}

.limitations li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0.25rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--subtle);
  border-radius: 50%;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--surface);
  color: var(--subtle);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer .container {
  padding-block: 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Larger screens */

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .site-nav {
    gap: 1.5rem;
  }

  .hero {
    padding-block: 4rem 4rem;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 48rem) {
  .screenshot-frame {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .screenshots {
    padding-bottom: 6rem;
  }

  .section {
    padding-block: 6rem;
  }

  .section h2 {
    margin-bottom: 4rem;
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .beta-strip {
    gap: 0.25rem 0.625rem;
    font-size: 0.875rem;
  }

  .beta-strip li {
    padding: 0;
    border: 0;
  }

  .beta-strip li + li::before {
    content: "\00b7";
    margin-right: 0.625rem;
    color: var(--subtle);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
