:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-card: #1c1c22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --green: #30d158;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1100px;
  --nav-h: 52px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(100% - 2rem, var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.brand img { width: 28px; height: 28px; border-radius: 6px; }

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.lang-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 980px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

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

.btn-primary { background: var(--accent); color: #fff; }

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 24px rgba(10, 132, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

main { padding-top: var(--nav-h); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.hero {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

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

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 980px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge.mit { color: var(--green); border-color: rgba(48, 209, 88, 0.3); }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.hero-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero-shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 80px rgba(0, 0, 0, 0.55);
  background: var(--bg-elevated);
}

.hero-shot img { display: block; width: 100%; height: auto; }

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}

section { padding: 4rem 0; }

section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(10, 132, 255, 0.35);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.screenshot-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.screenshot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.screenshot-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.screenshot-card img { display: block; width: 100%; height: auto; }

.schedule-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.schedule-type {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.schedule-type h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.schedule-type p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.scheduling-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36rem;
  margin: 0 auto;
}

.install-grid {
  display: grid;
  gap: 1rem;
}

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

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.install-card .tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.install-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.install-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

pre {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  overflow-x: auto;
  color: #e8e8ed;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  line-height: 1.5;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 720px;
}

th, td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elevated);
  font-weight: 600;
  position: sticky;
  top: 0;
}

th:first-child, td:first-child { font-weight: 500; }

tr:last-child td { border-bottom: none; }

.col-highlight { background: rgba(10, 132, 255, 0.08); }

.yes { color: var(--green); }
.no { color: #ff453a; }
.warn { color: #ffd60a; }

.help-topics {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.help-topic {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.help-topic h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.help-topic p,
.help-topic li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.help-topic ul,
.help-topic ol {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.help-topic li + li { margin-top: 0.35rem; }

.usage-steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.usage-steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.usage-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
}

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.support {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(10, 132, 255, 0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.support img {
  max-width: 200px;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.04), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.text-link-row {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .menu-toggle { display: block; }
  .nav-cta-desktop { display: none; }
}
