﻿:root {
  --blue: #7ecbff;
  --soft: #121c31;
  --ink: #edf2ff;
  --bg: #0b1220;
  --muted: #b6c3df;
  --text: #dce6ff;
  --subtle: #b6c3df;
  --border: #26385b;
  --border2: #2b416a;
  --radius: 18px;
  --shadow-sm: 0 4px 16px rgba(20, 37, 63, 0.05);
  --shadow-md: 0 6px 24px rgba(20, 37, 63, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.42);
  --panel: #121c31;
  --panel-2: #17253f;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 10px; }
ul { margin: 10px 0; padding-left: 18px; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}
.site-brand { display: flex; align-items: center; text-decoration: none; }
.site-brand img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; }
.site-nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--blue); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.9);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--blue);
}
.nav-group { position: relative; display: inline-block; margin-left: 16px; }
.nav-group > button {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.nav-group > button:hover { color: var(--blue); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: rgba(11, 18, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
}
.nav-dropdown a { display: block; margin: 0; padding: 10px; border-radius: 10px; }
.nav-dropdown a:hover { background: var(--soft); }
.nav-group[data-open="true"] .nav-dropdown { display: block; }

.title {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.28;
  margin: 10px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.section { padding: 26px 0; }
.section h2 { margin: 0 0 10px; font-size: 1.2rem; }
.section p { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
  padding: 22px 0 24px;
}
.hero.full { grid-template-columns: 1fr; }
.hero-card,
.book-card,
.app-card,
.plan-card,
.fcard,
.card {
  background: rgba(11, 18, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-card {
  background: linear-gradient(180deg, rgba(23, 37, 63, 0.96), rgba(18, 28, 49, 0.94));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.9);
}

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: flex-start; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: start; margin-top: 18px; }

.panel,
.callout,
.plans-note,
.note {
  margin: 18px 0 0;
  background: var(--soft);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--muted);
}
.panel strong,
.callout strong,
.plans-note strong,
.note strong { color: #f3f7ff; }

.product-mark { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.product-mark img { height: 46px; width: auto; }

.fcard { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.fcard:hover,
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 37, 63, 0.1);
}
.fcard h3 { margin: 0 0 8px; font-size: 1.05rem; }
.fcard p { margin: 0; color: var(--subtle); font-size: 0.98rem; }

.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-name { margin: 0; font-size: 1.08rem; }
.plan-price { margin: 0; color: var(--subtle); font-weight: 700; font-size: 0.98rem; }
.plan-meta { margin: 10px 0 0; color: var(--subtle); padding-left: 18px; }
.plan-meta li { margin: 4px 0; }
.plan-foot { margin-top: 10px; color: #8ea4cf; font-size: 0.92rem; }

details {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(11, 18, 32, 0.9);
  box-shadow: 0 4px 16px rgba(20, 37, 63, 0.04);
  margin: 10px 0;
}
summary { cursor: pointer; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: rgba(11, 18, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.product-card .product-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: #0f1a30;
}
.product-body {
  padding: 16px;
}
.product-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.product-body p {
  margin: 0 0 10px;
  color: var(--subtle);
  font-size: 0.95rem;
}
.product-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.94rem;
}
.product-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.product-links a:hover { text-decoration: underline; }
.key-points {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--subtle);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8db7ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose { max-width: 760px; }
.prose h2 { margin-top: 24px; }
.hero-inner { max-width: 760px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
}
.social-link svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-label {
  color: #8ea4cf;
  font-weight: 600;
}
footer { padding: 28px 0; color: #8ea4cf; }
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .foot-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
}

.page-home .title { font-size: clamp(1.35rem, 1.9vw, 1.75rem); margin-top: 0; }
.page-fv .title { font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.3; }
.page-fv .subtitle { font-size: 1rem; }
.page-fv .hero.full { padding: 22px 0; }

body.book-page .hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  grid-template-areas:
    "title subtitle"
    "layout layout";
  column-gap: 48px;
  row-gap: 22px;
  align-items: start;
}
body.book-page .hero > .title { grid-area: title; margin: 0; }
body.book-page .hero > .subtitle { grid-area: subtitle; margin: 10px 0 0; max-width: 40ch; }
body.book-page .hero > .layout { grid-area: layout; width: 100%; margin-top: 10px; }
body.book-page .layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
body.book-page .layout .section { padding: 0; }
body.book-page .book-card { width: 100%; justify-self: end; }
body.book-page .book-card img { width: 100%; height: auto; object-fit: contain; border-radius: 12px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    align-items: flex-start;
  }
  .site-nav a { margin-left: 0; }
  .nav-group { margin-left: 0; }
  .site-nav[data-open="true"] { display: flex; }
  .nav-dropdown { position: static; box-shadow: none; border-radius: 12px; margin-top: 6px; }

  .hero,
  .two-col,
  .grid,
  .plan-grid,
  .layout,
  .product-grid { grid-template-columns: 1fr; }

  body.book-page .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "subtitle"
      "layout";
    column-gap: 0;
  }
  body.book-page .hero > .subtitle { max-width: 60ch; margin-top: 8px; }
  body.book-page .layout { gap: 22px; }
  body.book-page .book-card { justify-self: start; max-width: 520px; }

  .hero-card img { max-height: 240px; }
}















