/* Base page styles */
:root {
  --bg: #0d1117;
  --bg-soft: #111827;
  --panel: #161b22;
  --panel-light: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #30363d;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --success: #34d399;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: #7dd3fc;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 4rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font: inherit;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.24);
}

.button:hover {
  background: #0284c7;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--panel-light);
}

.button-small {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  color: #ffffff !important;
}

/* Hero */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.eyebrow {
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel {
  padding: 1rem;
}

.window-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: #0f172a;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #475569;
}

.preview-content {
  min-height: 330px;
  display: grid;
  grid-template-columns: 120px 1fr;
}

.preview-sidebar {
  background: #101720;
  border-right: 1px solid var(--line);
}

.preview-main {
  padding: 1.5rem;
}

.preview-line {
  height: 12px;
  width: 58%;
  margin-bottom: 1rem;
  border-radius: 4px;
  background: #334155;
}

.preview-line.wide {
  width: 82%;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.preview-grid div {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #1f2937, #111827);
}

/* Reusable content sections */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.feature-grid,
.note-list,
.screenshot-grid,
.contact-layout,
.download-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.download-layout,
.contact-layout {
  grid-template-columns: 1.2fr 1fr;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.25rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 2rem;
}

.screenshot-link {
  display: block;
}

.screenshot-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #101720;
  background-size: 28px 28px;
  color: var(--muted);
  font-weight: 700;
}

.screenshot-card h2 {
  margin-top: 1rem;
}

.cta {
  margin: 4.5rem 0;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--panel), #0f172a);
}

.page-header {
  padding: 5rem 0 3rem;
  max-width: 760px;
}

.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
}

.check-list {
  padding-left: 1.2rem;
}

.check-list li {
  margin-bottom: 0.5rem;
}

/* Changelog */
.changelog {
  display: grid;
  gap: 1.5rem;
}

.release {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.release-date {
  color: var(--success);
  font-weight: 700;
}

/* Footer */
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Mobile layout */
@media (max-width: 760px) {
  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .nav {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .split-section,
  .download-layout,
  .contact-layout,
  .release {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .hero-panel {
    padding: 0;
  }

  .feature-grid,
  .note-list,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .preview-content {
    grid-template-columns: 80px 1fr;
    min-height: 260px;
  }

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