:root {
  color-scheme: light;
  --navy-950: #082f49;
  --navy-900: #0b3f5c;
  --navy-800: #145674;
  --sea-700: #087b98;
  --sea-600: #0796ad;
  --sea-100: #dff4f7;
  --sky-50: #f4f9fb;
  --sand-500: #f2b632;
  --sand-100: #fff4cf;
  --ink: #162c39;
  --muted: #526772;
  --line: #cbd9df;
  --panel: #ffffff;
  --success: #d8f0d8;
  --danger: #ef9a9a;
  --danger-soft: #f7caca;
  --departed: #e1e5e8;
  --booked: #1f4e79;
  --shadow: 0 18px 44px rgba(8, 47, 73, 0.12);
  --radius: 16px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--sky-50);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(7, 150, 173, 0.12), transparent 28rem),
    linear-gradient(180deg, #f9fcfd 0, var(--sky-50) 38rem);
  line-height: 1.55;
}

a {
  color: var(--sea-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-900);
}

button,
.button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-180%);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-950);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 86px;
  border-bottom: 1px solid rgba(11, 63, 92, 0.2);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 18px rgba(8, 47, 73, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 86px;
  padding: 0.7rem clamp(0.8rem, 2vw, 1.8rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: var(--navy-950);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid #bed7e1;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(8, 47, 73, 0.13);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-name {
  font-size: clamp(1.22rem, 2vw, 1.58rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-badge {
  margin-left: auto;
  padding: 0.42rem 0.72rem;
  border: 1px solid #d6a62b;
  border-radius: 999px;
  color: #654c00;
  background: var(--sand-100);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.header-download {
  margin-left: 0.2rem;
}

.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 86px);
}

.site-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 86px);
  padding: 1rem 0.8rem 1.5rem;
  border-right: 1px solid var(--line);
  background: rgba(237, 246, 249, 0.86);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 39px;
  margin-bottom: 0.8rem;
  border: 1px solid #aebfc7;
  border-radius: 9px;
  color: var(--navy-900);
  background: #fff;
  cursor: pointer;
}

.sidebar-toggle:hover {
  border-color: var(--sea-700);
  background: var(--sea-100);
}

.nav-list {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  color: #294957;
  font-size: 0.94rem;
  font-weight: 590;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.86);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--sea-700));
  box-shadow: 0 8px 20px rgba(8, 47, 73, 0.17);
}

.nav-icon {
  width: 1.35rem;
  flex: 0 0 1.35rem;
  text-align: center;
}

.sidebar-note {
  margin-top: auto;
  padding: 0.85rem;
  border: 1px solid #bed7e1;
  border-radius: 11px;
  color: #345563;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

body.sidebar-collapsed .layout {
  grid-template-columns: 74px minmax(0, 1fr);
}

body.sidebar-collapsed .site-sidebar {
  padding-inline: 0.55rem;
}

body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .toggle-label,
body.sidebar-collapsed .sidebar-note {
  display: none;
}

body.sidebar-collapsed .nav-link {
  justify-content: center;
  padding-inline: 0.45rem;
}

.content {
  width: 100%;
  max-width: 1320px;
  padding: clamp(1rem, 2.5vw, 2.2rem) clamp(1rem, 3vw, 3.4rem) 4rem;
}

.page-kicker {
  margin: 0 0 0.4rem;
  color: var(--sea-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-950);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 5vw, 4.65rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.48rem, 2.7vw, 2.15rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 67ch;
  color: #365563;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: clamp(2rem, 5vw, 5.2rem);
  align-items: center;
  min-height: 630px;
  padding: clamp(1.2rem, 3vw, 3.2rem) 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.7rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 46px;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--navy-900);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--sea-700));
  box-shadow: 0 9px 22px rgba(8, 47, 73, 0.16);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), #066e87);
}

.button.secondary {
  color: var(--navy-900);
  background: #fff;
  box-shadow: none;
}

.button.secondary:hover {
  color: var(--navy-950);
  background: var(--sea-100);
}

.microcopy {
  color: var(--muted);
  font-size: 0.86rem;
}

.product-window {
  overflow: hidden;
  border: 1px solid #aac3ce;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(0.35deg);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 45px;
  padding: 0.45rem 0.7rem;
  color: #fff;
  background: linear-gradient(90deg, var(--navy-900), var(--sea-700));
  font-size: 0.88rem;
  font-weight: 700;
}

.window-titlebar img {
  width: 27px;
  height: 27px;
  border-radius: 6px;
}

.window-controls {
  display: flex;
  gap: 0.28rem;
  margin-left: auto;
}

.window-control {
  width: 20px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px;
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem;
  border-bottom: 1px solid #c8d5da;
  background: #eef4f7;
}

.demo-button {
  padding: 0.3rem 0.48rem;
  border: 1px solid #a9bac2;
  border-radius: 5px;
  color: #24434f;
  background: linear-gradient(#fff, #e8eef1);
  font-size: 0.66rem;
}

.demo-table {
  padding: 0.7rem;
  font-size: clamp(0.65rem, 1.25vw, 0.82rem);
}

.demo-row {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr 1.55fr;
  min-height: 32px;
  border-bottom: 1px solid rgba(97, 124, 136, 0.23);
}

.demo-row > span {
  align-self: stretch;
  min-width: 0;
  padding: 0.4rem 0.48rem;
}

.demo-row.header {
  min-height: 29px;
  color: #294957;
  background: #e7eef1;
  font-weight: 700;
}

.demo-row.free {
  background: var(--success);
}

.demo-row.wanted {
  background: var(--danger);
}

.demo-row.booked {
  color: #fff;
  background: var(--booked);
  font-weight: 800;
}

.demo-status {
  padding: 0.58rem 0.75rem;
  border-top: 1px solid #c8d5da;
  color: #3c5964;
  background: #f3f7f9;
  font-size: 0.72rem;
}

.trust-strip,
.notice,
.callout {
  border: 1px solid #bed7e1;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 3.6rem;
  box-shadow: 0 10px 28px rgba(8, 47, 73, 0.07);
}

.trust-item {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  color: var(--navy-950);
}

.trust-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  margin: 0 0 4rem;
}

.section-intro {
  max-width: 72ch;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card .steps,
.prose .steps {
  grid-template-columns: minmax(0, 1fr);
}

.featured-card {
  border-color: var(--sea-600);
  box-shadow: 0 12px 30px rgba(8, 89, 119, 0.14);
}

.download-actions {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 9px 24px rgba(8, 47, 73, 0.06);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.8rem;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--sea-600));
  font-size: 1.2rem;
  font-weight: 800;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.35rem 0 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 150px;
  padding: 3.5rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-900);
  content: counter(steps);
  font-weight: 800;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(70, 90, 100, 0.3);
  border-radius: 8px;
  background: #fff;
  font-size: 0.84rem;
}

.swatch {
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.swatch.free { background: var(--success); }
.swatch.unavailable { background: var(--danger-soft); }
.swatch.wanted { background: var(--danger); }
.swatch.departed { background: var(--departed); }
.swatch.booked { background: var(--booked); }

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #88b5c5;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), #0b6f89);
  box-shadow: var(--shadow);
}

.download-panel h2,
.download-panel a:not(.button) {
  color: #fff;
}

.download-panel p {
  max-width: 65ch;
  margin-bottom: 0.35rem;
  color: #d9edf4;
}

.download-panel .button {
  border-color: var(--sand-500);
  color: #243846;
  background: var(--sand-500);
  white-space: nowrap;
}

.hash {
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.prose code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-header {
  max-width: 880px;
  padding: 1rem 0 1.8rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.prose {
  max-width: 900px;
}

.prose section,
.prose .prose-section {
  margin: 0 0 2.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.42rem;
}

.notice,
.callout {
  max-width: 900px;
  margin: 1rem 0 1.6rem;
  padding: 1rem 1.1rem;
}

.notice {
  border-left: 5px solid var(--sand-500);
  background: var(--sand-100);
}

.callout {
  border-left: 5px solid var(--sea-600);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 920px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.faq-item summary {
  padding: 0.95rem 1rem;
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 700;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: #eef6f8;
}

.faq-answer {
  padding: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.command-card {
  max-width: 920px;
  margin: 0 0 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.command-line {
  display: block;
  margin: 0.65rem 0;
  padding: 0.75rem 0.85rem;
  overflow-wrap: anywhere;
  border: 1px solid #b9cbd2;
  border-radius: 8px;
  color: #effaff;
  background: var(--navy-950);
  font-family: Consolas, "Courier New", monospace;
}

.property-list {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  gap: 0.38rem 1rem;
  margin: 0.8rem 0 0;
}

.property-list dt {
  color: var(--navy-900);
  font-weight: 700;
}

.property-list dd {
  margin: 0;
}

.version-entry {
  max-width: 920px;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sea-600);
  border-radius: 12px;
  background: #fff;
}

.version-entry.current {
  border-left-color: var(--sand-500);
  background: #fffdf7;
}

.version-entry p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #46606b;
  background: #eaf2f5;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  align-items: center;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}

.footer-links a {
  color: #355865;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 820px;
  }

  .product-window {
    max-width: 760px;
    transform: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 74px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-subtitle,
  .header-download {
    display: none;
  }

  .preview-badge {
    padding: 0.32rem 0.48rem;
    font-size: 0.7rem;
  }

  .layout,
  body.sidebar-collapsed .layout {
    display: block;
  }

  .site-sidebar {
    position: relative;
    min-height: 0;
    padding: 0.65rem 0.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-toggle {
    margin-bottom: 0;
  }

  .nav-list,
  .sidebar-note {
    display: none;
  }

  body.mobile-nav-open .nav-list {
    display: grid;
    margin-top: 0.6rem;
  }

  body.mobile-nav-open .sidebar-note {
    display: block;
    margin-top: 0.6rem;
  }

  body.sidebar-collapsed .toggle-label {
    display: inline;
  }

  body.sidebar-collapsed .nav-link {
    justify-content: flex-start;
  }

  body.sidebar-collapsed .nav-label {
    display: inline;
  }

  .content {
    padding-top: 1.2rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .hero {
    gap: 2rem;
    padding-top: 0.6rem;
  }

  .trust-strip,
  .card-grid,
  .card-grid.two-columns,
  .steps {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel .button {
    justify-self: start;
  }

  .property-list {
    grid-template-columns: 1fr;
  }

  .property-list dd + dt {
    margin-top: 0.5rem;
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 470px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .preview-badge {
    max-width: 6.8rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .demo-row {
    grid-template-columns: 0.9fr 0.55fr 1.3fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}

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

@media print {
  .site-header,
  .site-sidebar,
  .site-footer,
  .hero-actions,
  .preview-badge {
    display: none !important;
  }

  .layout {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }
}
