:root {
  --sky: #e3f2fd;
  --sky-soft: #eef6fe;
  --sky-line: #c4dcf4;
  --bg: #f6faff;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --muted: #4a5e75;
  --line: #d4e3f2;
  --accent: #1565c0;
  --accent-hover: #0e4f9c;
  --accent-soft: #dcebfb;
  --ok-bg: #e6f5ec;
  --ok-ink: #136139;
  --warn-bg: #fff5dd;
  --warn-ink: #7a4b06;
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(13, 27, 42, 0.09);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
}
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--sky-line);
  padding: 2px 6px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sky-line);
}
.nav-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-link img { width: 30px; height: 30px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn.sm {
  padding: 7px 13px;
  font-size: 13.5px;
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--sky-line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--sky-line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.btn:hover {
  background: var(--sky-soft);
  border-color: var(--accent);
  text-decoration: none;
}
.btn.lg { padding: 12px 20px; font-size: 15.5px; }
.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---------- Sky Heroes ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #f1f7fe 100%);
  border-bottom: 1px solid var(--sky-line);
  padding: 44px 0 48px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-shot {
  width: 100%;
  max-width: 960px;
}
.hero-points {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.page-hero {
  background: linear-gradient(180deg, var(--sky) 0%, #f1f7fe 100%);
  border-bottom: 1px solid var(--sky-line);
  padding: 36px 0 34px;
}
.page-hero h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 660px;
}
.page-hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Screenshots & Interactive Tool Tabs ---------- */
.screen-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--sky-line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: zoom-in;
}
.screen-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tool-tab {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--sky-line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tool-tab:hover {
  color: var(--ink);
  background: var(--sky-soft);
}
.tool-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.tool-panel[hidden] { display: none; }
.tool-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
}
.tool-copy h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.tool-copy p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Sections & Cards ---------- */
.section { padding: 52px 0; }
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.sky {
  background: var(--sky-soft);
  border-top: 1px solid var(--sky-line);
  border-bottom: 1px solid var(--sky-line);
}
.section-head {
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(23px, 2.8vw, 31px);
  margin-bottom: 6px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); }

.check-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.price-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.price-num span {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Download Tabs & Steps ---------- */
.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.os-tab {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--sky-line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.os-tab.active, .os-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.os-panel[hidden] { display: none; }

.step-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  font-size: 15px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.callout {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: var(--sky-soft);
  border: 1px solid var(--sky-line);
  font-size: 14.5px;
}
.callout.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #bfe4ce; }
.callout.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #eed496; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-weight: 600; font-size: 13.5px; }
.fld input, .fld select, .fld textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--sky-line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: 2px solid rgba(21, 101, 192, 0.25);
  border-color: var(--accent);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok-ink); }
.form-status.err { display: block; background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- Screenshot Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 27, 42, 0.84);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1160px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(13, 27, 42, 0.75);
  color: #ffffff;
  border-radius: 9px;
  padding: 7px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--sky-line);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--sky-line);
    padding: 14px 22px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .tool-layout, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-bar { padding: 10px 14px; gap: 10px; }
  .nav-actions .btn.sm { padding: 6px 10px; font-size: 12.5px; }
  .hero { padding: 30px 0 36px; }
  .section { padding: 38px 0; }
}
