﻿/* ============================================
   Zovrik Theme Documentation
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-bg-sidebar: #fafafa;
  --color-bg-code: #f5f5f5;
  --color-bg-tip: #e8f5e9;
  --color-bg-warning: #fff8e1;
  --color-bg-danger: #ffebee;
  --color-bg-info: #e3f2fd;
  --color-primary: #151515;
  --color-primary-muted: #727070;
  --color-accent: #151515;
  --color-border: #dedede;
  --color-border-light: #eeeeee;
  --color-text: #151515;
  --color-text-muted: #727070;
  --color-text-light: #b5b5b5;
  --color-link: #1a73e8;
  --color-success: #2e7d32;
  --color-danger: #ff3333;
  --color-warning: #f9a825;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --sidebar-width: 280px;
  --header-height: 60px;
  --content-max-width: 860px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Header --- */
.docs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-header__logo {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-header__logo:hover {
  text-decoration: none;
}

.docs-header__logo span {
  opacity: 0.6;
  font-weight: 400;
  font-size: 14px;
}

.docs-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-header__search {
  position: relative;
}

.docs-header__search input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 7px 14px 7px 36px;
  border-radius: 6px;
  font-size: 13px;
  width: 240px;
  outline: none;
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s;
}

.docs-header__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.docs-header__search input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.docs-header__search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.docs-header__version {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.docs-header__menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

/* --- Sidebar --- */
.docs-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border-light);
  overflow-y: auto;
  padding: 20px 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.docs-sidebar__group {
  margin-bottom: 8px;
}

.docs-sidebar__group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 10px 24px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.docs-sidebar__group-title::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--color-text-light);
  border-bottom: 1.5px solid var(--color-text-light);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.docs-sidebar__group.collapsed .docs-sidebar__group-title::after {
  transform: rotate(-45deg);
}

.docs-sidebar__group.collapsed .docs-sidebar__links {
  display: none;
}

.docs-sidebar__links {
  list-style: none;
}

.docs-sidebar__links a {
  display: block;
  padding: 5px 24px 5px 32px;
  font-size: 13.5px;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.docs-sidebar__links a:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.docs-sidebar__links a.active {
  color: var(--color-text);
  font-weight: 500;
  border-left-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.04);
}

/* --- Main Content --- */
.docs-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  flex: 1;
  min-width: 0;
}

.docs-content__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 40px 48px 80px;
}

/* --- Typography --- */
.docs-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--color-primary);
}

.docs-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-primary);
}

.docs-content h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.docs-content h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.docs-content p {
  margin-bottom: 16px;
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 6px;
}

.docs-content .subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- Code --- */
code {
  background: var(--color-bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  background: var(--color-bg-code);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
}

/* --- Tables --- */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.docs-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg-sidebar);
}

.docs-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

/* --- Callouts --- */
.callout {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  border-left: 4px solid;
}

.callout-tip {
  background: var(--color-bg-tip);
  border-color: var(--color-success);
}

.callout-warning {
  background: var(--color-bg-warning);
  border-color: var(--color-warning);
}

.callout-danger {
  background: var(--color-bg-danger);
  border-color: var(--color-danger);
}

.callout-info {
  background: var(--color-bg-info);
  border-color: var(--color-link);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  border: 1px solid var(--color-border-light);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  border-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 15px;
}

.card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- Steps (Two-column tutorial layout) --- */
.steps {
  counter-reset: step-counter;
  margin-bottom: 32px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
  counter-increment: step-counter;
}

.step:last-child {
  border-bottom: none;
}

.step__text {
  padding-right: 16px;
}

.step__text h4 {
  margin-top: 0;
}

.step__text h4::before {
  content: "Step " counter(step-counter) ": ";
  color: var(--color-text-muted);
  font-weight: 400;
}

.step__visual {
  display: flex;
  align-items: flex-start;
}

.step__visual img {
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
  width: 100%;
}

.step__visual .placeholder-img {
  background: var(--color-bg-code);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 13px;
}

/* --- Settings Table --- */
.setting-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
}

.setting-row:first-child {
  padding-top: 0;
}

.setting-label {
  font-weight: 500;
  color: var(--color-primary);
}

.setting-desc {
  color: var(--color-text-muted);
}

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: var(--color-bg);
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--color-bg-sidebar);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 18px 16px;
  max-height: 500px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-bg-sidebar);
}

/* --- Search Results Overlay --- */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 400px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  z-index: 300;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--color-bg-sidebar);
  text-decoration: none;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.search-result-item span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.search-no-results {
  padding: 24px 18px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* --- Footer --- */
.docs-footer {
  border-top: 1px solid var(--color-border-light);
  padding: 24px 0;
  margin-top: 48px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Page Navigation (Prev/Next) --- */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.page-nav a {
  display: block;
  padding: 14px 20px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s;
  font-size: 14px;
  flex: 1;
}

.page-nav a:hover {
  border-color: var(--color-border);
  text-decoration: none;
}

.page-nav a small {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-nav a.next {
  text-align: right;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .docs-content__inner {
    padding: 32px 28px 60px;
  }
}

@media (max-width: 768px) {
  .docs-header__search input {
    width: 160px;
  }

  .docs-header__version {
    display: none;
  }

  .docs-header__menu-toggle {
    display: block;
  }

  .docs-sidebar {
    transform: translateX(-100%);
  }

  .docs-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .docs-content {
    margin-left: 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .setting-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .docs-header__search {
    display: none;
  }

  .docs-content__inner {
    padding: 24px 16px 48px;
  }

  .docs-content h1 {
    font-size: 24px;
  }

  .page-nav {
    flex-direction: column;
  }
}

/* ============================================
   Landing Page (index.html marketing)
   ============================================ */

.landing {
  --landing-bg: #fafaf7;
  --landing-surface: #ffffff;
  --landing-ink: #0e0e0e;
  --landing-ink-soft: #565656;
  --landing-line: #e8e6df;
  --landing-accent: #E8631A;
  --landing-accent-soft: #FEE9DE;
  --landing-radius: 18px;
  --landing-shadow-sm: 0 6px 16px rgba(20, 20, 20, 0.06);
  --landing-shadow-md: 0 18px 40px rgba(20, 20, 20, 0.10);
  --landing-shadow-lg: 0 30px 70px rgba(20, 20, 20, 0.14);
  background: var(--landing-bg);
  color: var(--landing-ink);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

.landing a {
  color: inherit;
  text-decoration: none;
}

.landing .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(.2,.7,.2,1),
    transform 0.8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.text-center { text-align: center; }
.text-accent {
  color: var(--landing-accent);
  font-style: italic;
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 15px; }
.btn--primary {
  background: var(--landing-ink);
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--landing-shadow-md);
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--landing-ink);
  border-color: var(--landing-ink);
}
.btn--outline:hover {
  background: var(--landing-ink);
  color: #fff;
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--landing-ink);
}
.btn--ghost:hover {
  background: rgba(14, 14, 14, 0.06);
  text-decoration: none;
}
.btn--primary.get-started {
  color: #fff
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--landing-ink-soft);
  font-weight: 500;
}

/* --- Top Nav --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.landing-nav.is-scrolled {
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--landing-line);
  padding: 10px 0;
}
.landing-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--landing-ink);
}
.landing-nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--landing-ink);
  color: #fff;
  border-radius: 8px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.landing-nav__brand-logo {
  height: 36px;
  width: auto;
  display: block;
}
.landing-nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.landing-nav__links a {
  color: var(--landing-ink-soft);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.landing-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--landing-ink);
  transition: width 0.3s ease;
}
.landing-nav__links a:hover {
  color: var(--landing-ink);
  text-decoration: none;
}
.landing-nav__links a:hover::after { width: 100%; }
.landing-nav__cta {
  display: flex;
  gap: 10px;
}
.landing-nav__burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.landing-nav__burger span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--landing-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.landing-nav.is-open .landing-nav__burger span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}
.landing-nav.is-open .landing-nav__burger span:nth-child(2) {
  opacity: 0;
}
.landing-nav.is-open .landing-nav__burger span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blob-float 14s ease-in-out infinite;
}
.hero__blob--1 {
  width: 480px; height: 480px;
  background: var(--landing-accent-soft);
  top: -120px; left: -100px;
}
.hero__blob--2 {
  width: 380px; height: 380px;
  background: #ffe9d6;
  top: 30%; right: -80px;
  animation-delay: -4s;
}
.hero__blob--3 {
  width: 320px; height: 320px;
  background: #e6f0ff;
  bottom: -120px; left: 30%;
  animation-delay: -8s;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20px, -30px) scale(1.05); }
  66%      { transform: translate(-15px, 20px) scale(0.97); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,14,14,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,14,14,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 50%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 50%, transparent 80%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 18px; }
.hero__title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title-accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--landing-accent) 0%, #B84010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--landing-ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__meta {
  display: flex;
  list-style: none;
  gap: 32px;
  padding: 0;
  margin: 0;
}
.hero__meta li {
  font-size: 13px;
  color: var(--landing-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
}
.hero__meta strong {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--landing-ink);
  font-weight: 700;
  line-height: 1;
  border: none;
}

.hero__visual {
  position: relative;
  height: 540px;
}
.hero-stack {
  position: relative;
  height: 100%;
  width: 100%;
}
.hero-stack__card {
  position: absolute;
  border-radius: var(--landing-radius);
  overflow: hidden;
  background: var(--landing-surface);
  box-shadow: var(--landing-shadow-lg);
  border: 1px solid var(--landing-line);
}
.hero-stack__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-stack__card--main {
  width: 78%;
  height: 90%;
  top: 5%;
  left: 11%;
  z-index: 2;
}
.hero-stack__card--top {
  width: 46%;
  height: 38%;
  top: 0;
  right: -2%;
  z-index: 3;
}
.hero-stack__card--bottom {
  width: 50%;
  height: 36%;
  bottom: 0;
  left: -4%;
  z-index: 3;
}
.hero-stack__pulse {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,165,91,0.25), transparent 70%);
  z-index: 1;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.6; }
  50%      { transform: scale(1.05); opacity: 1; }
}
.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty--delay { animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--landing-ink-soft);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--landing-ink-soft);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* --- Marquee --- */
.marquee {
  background: var(--landing-ink);
  color: #fff;
  padding: 22px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  width: max-content;
}
.marquee__track span { opacity: 0.85; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Section heads --- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-head__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--landing-ink-soft);
}

/* --- Features --- */
.features { padding: 110px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  padding: 28px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--landing-shadow-md);
  border-color: transparent;
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--landing-accent-soft);
  color: var(--landing-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-card__icon {
  transform: rotate(-6deg) scale(1.05);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--landing-ink-soft);
  margin: 0;
}

/* --- Showcase --- */
.showcase { padding: 110px 0; background: #fff; border-top: 1px solid var(--landing-line); border-bottom: 1px solid var(--landing-line); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}
.showcase-card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--landing-radius);
  overflow: hidden;
  background: var(--landing-bg);
  border: 1px solid var(--landing-line);
  box-shadow: var(--landing-shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
}
.showcase-card--wide { grid-column: span 3; }
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--landing-shadow-md);
  text-decoration: none;
}
.showcase-card:hover img {
  transform: scale(1.06);
}
.showcase-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(14,14,14,0.85));
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.showcase-card:hover .showcase-card__overlay {
  transform: translateY(0);
  opacity: 1;
}
.showcase-card__overlay h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.showcase-card__overlay p {
  font-size: 13px;
  margin: 0;
  opacity: 0.85;
}

/* --- Sections list / chips --- */
.sections-list { padding: 110px 0; }
.chip-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.chip-grid li {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--landing-surface);
  border: 1px solid var(--landing-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--landing-ink-soft);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: default;
}
.chip-grid li:hover {
  transform: translateY(-3px);
  color: var(--landing-ink);
  border-color: var(--landing-ink);
  background: #fff;
}

/* --- Stats --- */
.stats {
  padding: 80px 0;
  background: var(--landing-ink);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat {
  text-align: center;
}
.stat__num {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--landing-accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__suffix {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--landing-accent);
  margin-left: 4px;
}
.stat p {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
}

/* --- Steps --- */
.steps-section { padding: 110px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.step-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 80px;
  height: 80px;
  background: var(--landing-accent-soft);
  border-radius: 0 0 0 80px;
  opacity: 0.6;
  transition: transform 0.5s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--landing-shadow-md);
}
.step-card:hover::before {
  transform: scale(1.4);
}
.step-card__num {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--landing-accent);
  display: block;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.step-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--landing-ink-soft);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* --- CTA --- */
.cta { padding: 80px 0 120px; }
.cta__card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
  color: #fff;
  border-radius: 28px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__card::before,
.cta__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.cta__card::before {
  width: 320px; height: 320px;
  background: var(--landing-accent);
  top: -120px; left: -120px;
}
.cta__card::after {
  width: 280px; height: 280px;
  background: var(--landing-accent);
  bottom: -100px; right: -80px;
}
.cta__card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.cta__card p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta .btn--ghost {
  color: #fff;
}
.cta .btn--ghost:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Footer --- */
.landing-footer {
  background: #0e0e0e;
  color: rgba(255,255,255,0.7);
  padding: 70px 0 30px;
}
.landing-footer .landing-nav__brand {
  color: #fff;
}
.landing-footer .landing-nav__brand-mark {
  background: #fff;
  color: #0e0e0e;
}
.landing-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.landing-footer__tag {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.65;
}
.landing-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.landing-footer__cols h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.landing-footer__cols a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.landing-footer__cols a:hover {
  color: #fff;
  text-decoration: none;
}
.landing-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* --- Landing responsive --- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__visual {
    height: 460px;
    order: -1;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .hero { padding: 130px 0 80px; }

  .landing-nav__links,
  .landing-nav__cta {
    display: none;
  }
  .landing-nav__burger { display: flex; }

  .landing-nav.is-open .landing-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 28px 24px;
    box-shadow: var(--landing-shadow-md);
    border-top: 1px solid var(--landing-line);
  }
  .landing-nav.is-open .landing-nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--landing-line);
    color: var(--landing-ink);
    font-weight: 500;
  }
  .landing-nav.is-open .landing-nav__links a::after { display: none; }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .showcase-card,
  .showcase-card--wide { grid-column: span 1; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }

  .landing-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .landing .container { padding: 0 20px; }
  .landing-nav__inner { padding: 0 20px; }

  .hero { padding: 120px 0 70px; }
  .hero__title { font-size: clamp(36px, 10vw, 52px); }
  .hero__subtitle { font-size: 15px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { gap: 22px; flex-wrap: wrap; }
  .hero__meta strong { font-size: 22px; }
  .hero__visual { height: 380px; }
  .hero__scroll { display: none; }

  .features,
  .showcase,
  .sections-list,
  .steps-section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }

  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .showcase-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .stats__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { padding: 60px 0; }

  .cta { padding: 50px 0 80px; }
  .cta__card { padding: 56px 24px; }
  .cta__actions .btn { width: 100%; }

  .marquee { padding: 16px 0; }
  .marquee__track { gap: 32px; font-size: 12px; }

  .landing-footer__cols { grid-template-columns: 1fr; }
  .landing-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__visual { height: 320px; }
  .hero-stack__card--main { width: 84%; left: 8%; }
  .hero-stack__card--top { right: -4%; }
  .hero-stack__card--bottom { left: -6%; }
}

