/* Netshot website. Colors, radii and fonts come from the Netshot web UI theme
   (src/main/resources/webui/src/theme). */

:root {
  /* green scale */
  --green-50: #ECF9F3;
  --green-100: #C4EBD9;
  --green-200: #A7E2C7;
  --green-300: #7FD4AE;
  --green-400: #66CC9E;
  --green-500: #40BF86;
  --green-600: #3AAE7A;
  --green-700: #2D885F;
  --green-800: #23694A;
  --green-900: #1B5038;
  --green-1000: #113223;
  --green-1100: #0A1F15;

  /* grey scale */
  --grey-50: #F6F8FA;
  --grey-100: #EAEEF2;
  --grey-200: #D0D7DE;
  --grey-300: #AFB8C1;
  --grey-400: #8C959F;
  --grey-500: #6E7781;
  --grey-600: #57606A;
  --grey-700: #424A53;

  --black: #0A1F15;
  --white: #FFFFFF;

  --bg: var(--white);
  --bg-alt: var(--grey-50);
  --fg: var(--black);
  --fg-muted: var(--grey-600);
  --border: var(--grey-100);

  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --shadow-shot: 0 1px 2px rgb(10 31 21 / 6%), 0 12px 32px -8px rgb(10 31 21 / 18%);
  --header-h: 72px;
  --container: 1200px;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  padding: 0.1em 0.4em;
}

:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--green-500);
  color: var(--black);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.125rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 1.125rem; height: 1.125rem; }
.btn-sm { height: 38px; padding: 0 0.875rem; font-size: 0.875rem; }
.btn-lg { height: 52px; padding: 0 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green-500); color: var(--white); }
.btn-primary:hover { background: var(--green-600); }

.btn-outline { background: var(--white); color: var(--fg); border-color: var(--grey-200); }
.btn-outline:hover { background: var(--grey-50); border-color: var(--grey-300); }

.btn-ghost-dark { background: rgb(255 255 255 / 6%); color: var(--white); border-color: rgb(255 255 255 / 16%); }
.btn-ghost-dark:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 28%); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .icon { width: 1rem; height: 1rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-1100);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}

.brand img { width: 119px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  transition: background-color .15s;
}
.main-nav a:hover { background: var(--green-1000); }
.main-nav a.active { background: var(--green-900); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow .icon { width: 1rem; height: 1rem; }
.eyebrow-dark { color: var(--green-400); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(64 191 134 / 16%) 0%, transparent 70%),
    var(--green-1100);
  color: var(--white);
  padding-top: 88px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}
.hero-inner .eyebrow {
  padding: 6px 12px;
  border: 1px solid rgb(64 191 134 / 30%);
  background: rgb(64 191 134 / 8%);
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}
.hero .lead { color: var(--green-100); max-width: 720px; margin-inline: auto; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-shot-wrap {
  margin-top: 64px;
  /* the screenshot straddles the dark hero and the light section below */
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 55%);
}

/* ---------- screenshots ---------- */

.shot {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  background: var(--white);
  box-shadow: var(--shadow-shot);
}
.shot-hero {
  border-color: rgb(255 255 255 / 12%);
  box-shadow: 0 0 0 6px rgb(255 255 255 / 4%), 0 30px 80px -20px rgb(0 0 0 / 55%);
}

/* ---------- sections ---------- */

.section { padding: 112px 0; }
#features { padding-top: 96px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}
.section-lead {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

/* ---------- features ---------- */

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.feature:hover { border-color: var(--green-200); box-shadow: 0 4px 16px -6px rgb(10 31 21 / 10%); }
.feature h3 { font-size: 1.125rem; margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--fg-muted); font-size: 0.9688rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--green-50);
  color: var(--green-700);
}
.feature-icon .icon { width: 22px; height: 22px; }

/* ---------- showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 64px;
  margin-top: 120px;
}
.showcase-reverse { grid-template-columns: 7fr 5fr; }
.showcase-reverse .showcase-text { order: 2; }

.showcase-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.showcase-text > p:not(.eyebrow) { margin-top: 16px; color: var(--fg-muted); font-size: 1.0625rem; }

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--green-500); margin-top: 0.15em; width: 1.125rem; height: 1.125rem; stroke-width: 2.5; }

/* ---------- devices ---------- */

.vendor-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.vendor {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.vendor h3 { font-size: 1rem; }
.vendor p { margin-top: 6px; color: var(--fg-muted); font-size: 0.9063rem; line-height: 1.5; }

.drivers-note {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius-2xl);
  border: 1px dashed var(--green-300);
  background: var(--green-50);
}
.drivers-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--green-500);
  color: var(--white);
}
.drivers-note-icon .icon { width: 22px; height: 22px; }
.drivers-note h3 { font-size: 1.125rem; }
.drivers-note p { margin-top: 6px; color: var(--grey-700); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px !important; }

/* ---------- get started ---------- */

.start-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.start-grid > div > p:not(.eyebrow):not(.section-lead) { margin-top: 16px; }
.start-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.small { font-size: 0.9375rem; color: var(--fg-muted); }
.start-grid .small { margin-top: 24px !important; }

.terminal {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--green-1100);
  box-shadow: var(--shadow-shot);
  min-width: 0;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgb(255 255 255 / 14%); }
.terminal-title { margin-left: 8px; color: var(--grey-400); font-size: 0.8125rem; font-family: var(--font-mono); }

.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgb(255 255 255 / 14%);
  background: transparent;
  color: var(--grey-200);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: rgb(255 255 255 / 8%); color: var(--white); }
.copy-btn .icon { width: 0.9375rem; height: 0.9375rem; }
.copy-btn .icon-done { display: none; color: var(--green-400); }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-done { display: block; }

.terminal pre {
  margin: 0;
  padding: 22px 20px 24px;
  overflow-x: auto;
  color: var(--green-50);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.prompt { color: var(--green-500); user-select: none; }

/* ---------- open source & support ---------- */

.section-dark {
  background:
    radial-gradient(50% 60% at 100% 100%, rgb(64 191 134 / 12%) 0%, transparent 70%),
    var(--green-1100);
  color: var(--white);
}

.oss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.oss-text .lead { color: var(--green-100); }

.pledge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px !important;
  padding: 20px 22px;
  border-left: 3px solid var(--green-500);
  background: rgb(64 191 134 / 8%);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--green-50);
}
.pledge .icon { color: var(--green-400); width: 1.5rem; height: 1.5rem; margin-top: 0.05em; }
.pledge strong { color: var(--white); }

.oss-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--green-100);
}
.oss-points li { display: flex; gap: 12px; align-items: center; }
.oss-points .icon { color: var(--green-400); width: 1.125rem; height: 1.125rem; }

.support-card {
  background: var(--white);
  color: var(--fg);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / 50%);
}
.support-head { display: flex; align-items: center; gap: 14px; }
.support-head h3 { font-size: 1.375rem; }
.support-card > p { margin-top: 14px; color: var(--fg-muted); }

.support-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  border-top: 1px solid var(--border);
}
.support-list li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.support-list strong { font-weight: 600; }
.support-list span { color: var(--fg-muted); font-size: 0.9375rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 0.9375rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand img { width: 104px; }
.footer-brand p { margin-top: 12px; color: var(--fg-muted); max-width: 280px; }

.footer-nav { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-nav h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  margin-bottom: 12px;
}
.footer-nav a {
  display: block;
  padding: 3px 0;
  text-decoration: none;
  color: var(--grey-700);
}
.footer-nav a:hover { color: var(--green-700); }

.footer-bottom {
  margin-top: 40px;
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.footer-bottom p { padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom a { color: var(--grey-700); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .header-inner { gap: 24px; }
  .main-nav a { padding: 8px 8px; font-size: 0.875rem; }
  .vendor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase,
  .showcase-reverse { grid-template-columns: 1fr; gap: 32px; margin-top: 88px; }
  .showcase-reverse .showcase-text { order: 0; }
  .start-grid,
  .oss-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--green-1100);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .hero-shot-wrap { margin-top: 44px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vendor { padding: 16px; }
  .drivers-note { flex-direction: column; padding: 22px; }
  .support-card { padding: 24px; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { width: 40px; padding: 0; }
  .footer-nav { gap: 32px; }
}

@media (max-width: 400px) {
  .vendor-grid { grid-template-columns: 1fr; }
}

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