:root {
  --blue-950: #06264f;
  --blue-900: #08366d;
  --blue-800: #084386;
  --blue-700: #0a55ad;
  --blue-600: #1268cb;
  --blue-100: #eaf3ff;
  --cream: #faf7ef;
  --gold: #c8a35e;
  --ink: #132238;
  --muted: #64748b;
  --line: #dbe5f0;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(5, 50, 102, .12);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,229,240,.75);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: .03em; }
.brand-text strong { color: var(--blue-800); font-family: Georgia, serif; font-size: 20px; letter-spacing: .12em; }
.brand-text small { color: var(--blue-600); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; color: #32445c; }
.primary-nav > a:not(.btn) { position: relative; }
.primary-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--blue-600); transition: .25s ease; }
.primary-nav > a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--blue-900); margin: 6px 0; transition: .2s; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 800; transition: .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); box-shadow: 0 12px 25px rgba(10, 85, 173, .22); }
.btn-primary:hover { box-shadow: 0 16px 28px rgba(10, 85, 173, .28); }
.btn-ghost { border-color: #cbd8e8; color: var(--blue-900); background: rgba(255,255,255,.8); }
.btn-sm { min-height: 42px; padding: 0 16px; border-radius: 12px; }
.btn-full { width: 100%; }

.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #f8fbff 0%, #edf5ff 55%, #fffaf0 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(8,67,134,.08) 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.hero-grid { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; padding-block: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-700); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow.light { color: #dbeeff; }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; color: var(--blue-950); }
.hero h1 span { color: var(--blue-600); }
.hero-copy > p { max-width: 680px; margin: 24px 0 0; font-size: 18px; color: #43566e; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 28px; color: #51647a; font-size: 13px; font-weight: 700; }
.hero-trust span::first-letter { color: var(--blue-600); }
.hero-visual { min-height: 480px; display: grid; place-items: center; position: relative; }
.logo-orbit { position: relative; width: min(420px, 86vw); aspect-ratio: 1; border: 1px solid rgba(10,85,173,.16); border-radius: 50%; display: grid; place-items: center; }
.logo-orbit::before, .logo-orbit::after { content: ""; position: absolute; inset: 8%; border: 1px dashed rgba(10,85,173,.17); border-radius: 50%; }
.logo-orbit::after { inset: 20%; border-style: solid; background: rgba(255,255,255,.46); backdrop-filter: blur(5px); }
.logo-card { position: relative; z-index: 2; width: 62%; aspect-ratio: 1; border-radius: 30px; background: white; box-shadow: 0 25px 60px rgba(4,51,109,.18); display: grid; place-items: center; padding: 18px; transform: rotate(-2deg); }
.logo-card img { width: 100%; }
.orbit-dot { position: absolute; z-index: 3; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(200,163,94,.13); }
.dot-a { top: 5%; left: 46%; }
.dot-b { right: 5%; bottom: 27%; background: var(--blue-600); box-shadow: 0 0 0 7px rgba(18,104,203,.12); }
.dot-c { left: 8%; bottom: 22%; width: 11px; height: 11px; }
.floating-card { position: absolute; z-index: 4; width: 220px; padding: 15px 16px; background: rgba(255,255,255,.92); border: 1px solid rgba(219,229,240,.9); border-radius: 15px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { color: var(--blue-900); font-size: 14px; }
.floating-card small { color: var(--muted); margin-top: 3px; line-height: 1.4; }
.card-top { right: -7%; top: 18%; }
.card-bottom { left: -8%; bottom: 12%; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .65; }
.hero-glow-one { width: 380px; height: 380px; background: rgba(54,143,236,.14); top: -150px; right: 10%; }
.hero-glow-two { width: 260px; height: 260px; background: rgba(200,163,94,.14); bottom: -100px; left: 12%; }

.stats { position: relative; z-index: 2; margin-top: -30px; }
.stats-grid { background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.stats article { padding: 23px 26px; min-height: 100px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.stats article:last-child { border-right: 0; }
.stats strong { color: var(--blue-900); font-size: 18px; }
.stats span { color: var(--muted); font-size: 13px; margin-top: 3px; }

.section { padding-block: 100px; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -.025em; color: var(--blue-950); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 46px; }
.section-head > p { max-width: 460px; margin: 0; color: var(--muted); }
.about-copy { font-size: 18px; color: #475a71; }
.about-copy p:first-child { margin-top: 2px; }
.text-link { display: inline-flex; gap: 10px; color: var(--blue-700); font-weight: 900; margin-top: 10px; }
.text-link span { transition: .2s; }
.text-link:hover span { transform: translateX(4px); }

.services { background: var(--cream); }
.card-grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { min-height: 235px; background: rgba(255,255,255,.88); border: 1px solid #e8e2d5; border-radius: var(--radius-sm); padding: 28px; transition: .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-100); color: var(--blue-700); font-weight: 900; font-size: 13px; }
.service-card h3 { margin: 23px 0 10px; color: var(--blue-950); font-size: 20px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.search-box { flex: 1; max-width: 500px; height: 50px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 0 15px; background: #fff; }
.search-box span { color: var(--blue-700); font-size: 23px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); background: white; color: #52657b; padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pill.active, .pill:hover { background: var(--blue-900); color: white; border-color: var(--blue-900); }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-card { min-width: 0; }
.book-cover { position: relative; aspect-ratio: 3/4.35; border-radius: 15px 24px 24px 15px; box-shadow: 0 14px 30px rgba(6,38,79,.16); overflow: hidden; padding: 26px 22px; display: flex; flex-direction: column; color: white; transition: .25s; }
.book-cover::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.2); }
.book-card:hover .book-cover { transform: translateY(-7px) rotate(-1deg); box-shadow: 0 20px 38px rgba(6,38,79,.22); }
.book-cover span { font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; opacity: .82; }
.book-cover strong { margin-top: auto; font-family: Georgia, serif; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.04; }
.book-cover small { margin-top: 14px; opacity: .75; }
.cover-one { background: linear-gradient(150deg, #0b2e5b, #0b66bf); }
.cover-two { background: linear-gradient(150deg, #1a536e, #58a6a6); }
.cover-three { background: linear-gradient(150deg, #6c4f2e, #c89d52); }
.cover-four { background: linear-gradient(150deg, #30285d, #6555ba); }
.book-meta { padding: 18px 4px 0; }
.book-meta .category { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-700); }
.book-meta h3 { margin: 6px 0 2px; font-size: 18px; color: var(--blue-950); line-height: 1.35; }
.book-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.book-detail { border: 0; padding: 0; background: transparent; color: var(--blue-700); font-weight: 900; margin-top: 10px; }
.empty-state { padding: 30px; text-align: center; background: #f8fbff; border-radius: 16px; color: var(--muted); }

.why-us { padding-block: 0; background: var(--blue-950); color: white; overflow: hidden; }
.why-grid { min-height: 480px; align-items: center; }
.why-panel { padding-block: 78px; }
.why-panel h2 { color: white; }
.why-panel p { max-width: 560px; color: #c0d2e8; font-size: 17px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-grid > div { min-height: 140px; padding: 23px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); border-radius: 17px; display: flex; gap: 13px; }
.check-grid span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: rgba(200,163,94,.16); color: #f0c97b; font-weight: 900; }
.check-grid p { margin: 0; color: #bcd0e7; font-size: 13px; }
.check-grid strong { color: white; font-size: 16px; }

.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 7%; right: 7%; height: 2px; background: linear-gradient(to right, var(--gold), var(--blue-600)); opacity: .42; }
.step { position: relative; z-index: 1; text-align: center; padding-inline: 6px; }
.step span { margin-inline: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: white; border: 2px solid var(--blue-600); color: var(--blue-700); font-weight: 900; box-shadow: 0 0 0 8px white; }
.step h3 { margin: 22px 0 8px; color: var(--blue-950); font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; }

.author-strip { padding-top: 10px; }
.author-inner { border-radius: 30px; padding: 50px 54px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: linear-gradient(135deg, #f5f9ff, #fff8e9); border: 1px solid #e6edf5; }
.author-inner h2 { font-size: clamp(32px, 4vw, 46px); }
.author-inner p { margin: 10px 0 0; color: var(--muted); }

.submission { background: #f7faff; }
.submission-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.submission p { color: var(--muted); font-size: 16px; }
.submission-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; margin-top: 28px; color: #41566f; font-weight: 700; font-size: 13px; }
.submission-form { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 18px 48px rgba(5,50,102,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submission-form label { display: grid; gap: 7px; margin-bottom: 15px; color: #32465f; font-weight: 800; font-size: 13px; }
.submission-form input, .submission-form select, .submission-form textarea { width: 100%; border: 1px solid #d9e3ee; border-radius: 12px; background: #fbfdff; padding: 13px 14px; outline: none; color: var(--ink); resize: vertical; transition: .2s; }
.submission-form input:focus, .submission-form select:focus, .submission-form textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(18,104,203,.08); background: white; }
.form-status { min-height: 18px; margin: 10px 0 0 !important; font-size: 12px !important; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: .2s; background: white; }
a.contact-card:hover { transform: translateX(5px); border-color: #b7cce3; box-shadow: 0 12px 26px rgba(5,50,102,.07); }
.contact-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.contact-card strong { color: var(--blue-900); text-align: right; }

.site-footer { background: #041b38; color: #d6e2f0; padding: 60px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 45px; }
.footer-brand img { width: 110px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.15)); }
.footer-brand p { color: #aabdd2; max-width: 300px; font-size: 13px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong { color: white; margin-bottom: 5px; }
.footer-grid a, .footer-grid span { color: #aabdd2; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: #8ba3be; font-size: 12px; }

.book-dialog { width: min(520px, calc(100% - 30px)); border: 0; border-radius: 22px; padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.28); color: var(--ink); }
.book-dialog::backdrop { background: rgba(2,20,42,.6); backdrop-filter: blur(3px); }
.book-dialog h3 { margin: 0 0 10px; font-family: Georgia, serif; color: var(--blue-950); font-size: 30px; }
.book-dialog p { color: var(--muted); }
.dialog-close { position: absolute; right: 14px; top: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f3f6fa; color: #41566f; font-size: 24px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  .primary-nav { position: fixed; top: 81px; right: 0; bottom: 0; width: min(360px, 88vw); padding: 28px; background: white; flex-direction: column; align-items: stretch; gap: 7px; box-shadow: -20px 30px 50px rgba(5,50,102,.12); transform: translateX(105%); transition: .25s ease; }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > a { padding: 11px 10px; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; padding-block: 70px 80px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats article:nth-child(2) { border-right: 0; }
  .stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two-col, .submission-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 34px 12px; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 70px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 9px; }
  .primary-nav { top: 71px; }
  .hero-grid { min-height: auto; padding-block: 54px 70px; }
  .hero h1 { font-size: clamp(43px, 14vw, 60px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { display: grid; }
  .hero-visual { min-height: 345px; }
  .logo-orbit { width: 310px; }
  .floating-card { width: 180px; padding: 11px 12px; }
  .floating-card strong { font-size: 12px; }
  .floating-card small { font-size: 10px; }
  .card-top { right: -1%; top: 12%; }
  .card-bottom { left: -1%; bottom: 3%; }
  .stats { margin-top: -18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 82px; padding: 16px 20px; }
  .stats article:last-child { border-bottom: 0; }
  .section { padding-block: 72px; }
  .section-head { display: block; margin-bottom: 30px; }
  .section-head > p { margin-top: 14px; }
  .services-grid, .book-grid, .check-grid, .form-grid, .submission-notes { grid-template-columns: 1fr; }
  .catalog-toolbar { display: grid; }
  .filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .book-grid { gap: 30px; }
  .book-cover { max-width: 310px; margin-inline: auto; }
  .book-meta { max-width: 310px; margin-inline: auto; }
  .why-grid { min-height: auto; padding-block: 70px; }
  .why-panel { padding-block: 0; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 30px 10px; }
  .author-inner { padding: 32px 26px; display: block; }
  .author-inner .btn { margin-top: 22px; width: 100%; }
  .submission-form { padding: 20px; }
  .contact-card { display: block; }
  .contact-card strong { display: block; text-align: left; margin-top: 5px; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}
