:root {
  --bg: #090b0f;
  --bg-soft: #0f131a;
  --surface: #151a22;
  --surface-strong: #1d2430;
  --border: #2b3340;
  --text: #f8fafc;
  --text-soft: #c4ccd8;
  --text-muted: #7f8a9a;
  --green: #21c6a8;
  --green-dark: #15977f;
  --amber: #f5b84b;
  --coral: #ff6b57;
  --blue: #4e9af1;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 11, 15, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #04110e;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a,
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  padding: 82px 0 48px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(33, 198, 168, 0.13), transparent 34%),
    linear-gradient(225deg, rgba(245, 184, 75, 0.12), transparent 36%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--amber);
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.18rem;
}

.hero-actions,
.card-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--text-muted);
}

.btn-primary {
  border-color: var(--green);
  background: var(--green);
  color: #04110e;
  font-weight: 800;
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--text);
}

.btn-small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
}

.is-disabled,
.is-disabled:hover {
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.hero-media {
  margin: 0;
  aspect-ratio: 1200 / 630;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stat-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 26, 34, 0.74);
}

.stat-number {
  display: block;
  color: var(--amber);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.06rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: 28px;
  align-items: start;
}

.text-panel {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature-card,
.catalog-card,
.pdf-card,
.prompt-card,
.timeline-card,
.tip-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  padding: 18px;
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.quote-panel {
  padding: 22px;
  border-left: 4px solid var(--green);
  background: var(--surface-strong);
  color: var(--text-soft);
}

.catalog-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.search-field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.search-field:focus,
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(33, 198, 168, 0.18);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  border-color: var(--green);
  color: var(--text);
}

.filter-btn.is-active {
  background: rgba(33, 198, 168, 0.13);
}

.catalog-grid,
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card,
.pdf-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.catalog-card h3,
.pdf-card h3,
.prompt-card h3,
.timeline-card h3 {
  margin: 0 0 10px;
  font-size: 1.13rem;
  line-height: 1.28;
}

.catalog-card p,
.pdf-card p,
.prompt-card p {
  margin: 0;
  color: var(--text-soft);
}

.card-category,
.status-badge {
  width: fit-content;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: var(--radius);
  background: rgba(33, 198, 168, 0.12);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-soon {
  background: rgba(245, 184, 75, 0.12);
  color: var(--amber);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
}

.tip-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.tip-box {
  padding: 28px;
  border-color: rgba(245, 184, 75, 0.45);
}

.tip-text {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.42;
}

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.prompt-card {
  padding: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text);
}

.form-field textarea {
  min-height: 106px;
  resize: vertical;
}

.prompt-result {
  min-height: 244px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-soft);
  white-space: pre-wrap;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
}

.timeline-card {
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  color: var(--text-soft);
}

.timeline time {
  color: var(--amber);
  font-weight: 900;
}

.final-cta {
  padding: 34px;
  border: 1px solid rgba(33, 198, 168, 0.42);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.final-cta h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.final-cta p {
  max-width: 720px;
  color: var(--text-soft);
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal.is-open {
  display: flex;
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.modal-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
}

.modal-text {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-soft);
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 320px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.copied {
  outline: 3px solid rgba(33, 198, 168, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-changing {
  animation: pulse 0.32s ease;
}

@keyframes pulse {
  0% {
    transform: scale(0.99);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .intro-grid,
  .prompt-layout,
  .story-grid,
  .tip-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .lead {
    font-size: 1rem;
  }

  .stats,
  .feature-grid,
  .catalog-grid,
  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section-head h2 {
    font-size: 1.85rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .btn,
  .card-actions .btn {
    width: 100%;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 24px;
  }
}
