/* PolyLens marketing site — no dependencies, multi-page static */

:root {
  color-scheme: light dark;

  --max-w: 1120px;

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);

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

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Light theme defaults (Apps SDK UI inspired) */
  --bg: #f9fafb;
  --bg2: #ffffff;

  --surface: #ffffff;
  --surface-strong: #f3f4f6;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.14);

  --text: rgba(26, 26, 26, 0.92);
  --muted: rgba(107, 114, 128, 0.95);
  --muted2: rgba(156, 163, 175, 0.9);

  --accent-1: #7c3aed; /* violet */
  --accent-2: #22d3ee; /* cyan */
  --accent-3: #34d399; /* green */
  --accent-4: #f59e0b; /* amber */

  --hover: rgba(15, 23, 42, 0.05);
  --hover-strong: rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #1a1a1a;
    --bg2: #1a1a1a;

    --surface: #262626;
    --surface-strong: #303030;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: rgba(249, 250, 251, 0.92);
    --muted: rgba(209, 213, 219, 0.92);
    --muted2: rgba(156, 163, 175, 0.92);

    --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.4);

    --hover: rgba(255, 255, 255, 0.06);
    --hover-strong: rgba(255, 255, 255, 0.1);
  }
}

:root[data-theme="light"] {
  --bg: #f9fafb;
  --bg2: #ffffff;

  --surface: #ffffff;
  --surface-strong: #f3f4f6;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.14);

  --text: rgba(26, 26, 26, 0.92);
  --muted: rgba(107, 114, 128, 0.95);
  --muted2: rgba(156, 163, 175, 0.9);

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);

  --hover: rgba(15, 23, 42, 0.05);
  --hover-strong: rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg2: #1a1a1a;

  --surface: #262626;
  --surface-strong: #303030;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: rgba(249, 250, 251, 0.92);
  --muted: rgba(209, 213, 219, 0.92);
  --muted2: rgba(156, 163, 175, 0.92);

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.4);

  --hover: rgba(255, 255, 255, 0.06);
  --hover-strong: rgba(255, 255, 255, 0.1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -2;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  filter: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: none;
  opacity: 0;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.skipLink {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  z-index: 999;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}

.skipLink:focus {
  transform: translateY(0);
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.navBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover,
.brand:focus,
.brand:active {
  text-decoration: none;
}

.brandLogo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.brandText {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brandText span:first-child {
  font-size: 16px;
}

.brandText span:last-child {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 500;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .navLinks {
    width: 100%;
    justify-content: flex-start;
  }

  .navActions {
    width: 100%;
    justify-content: flex-start;
  }
}

.navLinks a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 140ms var(--ease), color 140ms var(--ease);
}

.navLinks a:hover {
  background: var(--hover);
  color: var(--text);
  text-decoration: none;
}

.navLinks a[aria-current="page"] {
  background: var(--hover-strong);
  color: var(--text);
}

.navActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:hover {
  text-decoration: none;
  background: var(--surface-strong);
}

.btn:focus-visible,
.iconBtn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 2px;
}

.btnPrimary {
  border-color: transparent;
  background: var(--text);
  color: var(--bg2);
  box-shadow: none;
}

.btnPrimary:hover {
  filter: brightness(0.95);
}

.btnGhost {
  background: transparent;
}

.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.iconBtn:hover {
  background: var(--surface-strong);
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

main {
  padding: 48px 0 72px;
}

.hero {
  padding: 22px 0 12px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.08);
}

.h1 {
  margin: 14px 0 10px;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

@media (max-width: 560px) {
  .h1 {
    font-size: 38px;
  }
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 58ch;
}

.gradientText {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panelHeader {
  padding: 16px 16px 0;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panelBody {
  padding: 16px;
}

.stack {
  display: grid;
  gap: 10px;
}

.bullet {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(34, 211, 238, 0.95);
  flex: 0 0 auto;
  margin-top: 2px;
}

.check svg {
  width: 12px;
  height: 12px;
}

section {
  margin-top: 44px;
}

.sectionTitle {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.sectionDesc {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.cardGrid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 6;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

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

@media (max-width: 920px) {
  .card {
    grid-column: span 12;
  }
}

.cardTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.pillIcon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cardText {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.step {
  grid-column: span 4;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

@media (max-width: 920px) {
  .step {
    grid-column: span 12;
  }
}

.stepNum {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.12);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.stepTitle {
  margin: 10px 0 6px;
  font-weight: 700;
}

.stepText {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.callout {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.calloutTitle {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.calloutText {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

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

.prose {
  max-width: 78ch;
}

.prose h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 20px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 10px;
}

.faqList {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  max-width: 82ch;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 14px;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] {
  border-color: var(--border-strong);
}

.chev {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.8;
  transition: transform 160ms var(--ease);
}

details[open] .chev {
  transform: rotate(180deg);
}

.detailsBody {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.fieldRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted2);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted2);
}

input:hover,
textarea:hover {
  border-color: var(--border-strong);
}

.formHint {
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
}

.siteFooter {
  padding: 34px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footerGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

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

.footerSmall {
  color: var(--muted2);
  font-size: 12px;
  margin: 10px 0 0;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .footerLinks {
    justify-content: flex-start;
  }
}

.footerLinks a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.footerLinks a:hover {
  text-decoration: none;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tiny {
  font-size: 12px;
  color: var(--muted2);
}


