@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #2a2a35;
  background-color: #fafaf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  height: 42px;
  background: #1a1a24;
  color: #c8c8d0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar__text {
  flex: 1;
  text-align: center;
}

.top-bar__text a {
  color: #e8a04a;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.top-bar__text a:hover {
  border-bottom-color: #e8a04a;
}

.top-bar__cta {
  margin-left: auto;
}

.top-bar__cta a {
  color: #e8a04a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border: 1px solid #e8a04a;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.top-bar__cta a:hover {
  background: #e8a04a;
  color: #1a1a24;
}

/* ===== HEADER / NAV ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  height: 72px;
  background: #fafaf8;
  border-bottom: 2px solid #2a2a35;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  text-decoration: none;
  color: #2a2a35;
}

.site-logo__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-logo__suffix {
  font-family: 'Inter', sans-serif;
  font-size: 0.65em;
  font-weight: 600;
  color: #4a9e9e;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  margin-left: 0.1em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.main-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  height: 100%;
}

.main-nav__item {
  height: 100%;
}

.main-nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.15rem;
  text-decoration: none;
  color: #4a4a55;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link--active {
  color: #2a2a35;
  border-bottom-color: #4a9e9e;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #2a2a35;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 60vh, 700px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(165deg, #f0f4f4 0%, #fafaf8 40%, #f8f6f2 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(74,158,158,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232,160,74,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 820px;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a9e9e;
  margin-bottom: 1.5rem;
}

.hero-eyebrow__rule {
  display: block;
  width: 32px;
  height: 1.5px;
  background: #4a9e9e;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a24;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: #4a9e9e;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: #5a5a68;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #1a1a24;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid #1a1a24;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.primary-button:hover {
  background: #4a9e9e;
  border-color: #4a9e9e;
  color: #fff;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: #2a2a35;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid #d0d0d5;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: #4a9e9e;
  color: #4a9e9e;
}

/* ===== SECTION WRAPPER ===== */
.section-wrapper {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1240px;
  margin: 0 auto;
}

.section-wrapper--bordered {
  border-top: 1px solid #e0e0e5;
}

.section-wrapper--dark {
  background: #1a1a24;
  color: #d8d8e0;
  max-width: 100%;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a24;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-wrapper--dark .section-heading {
  color: #f0f0f0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4a9e9e;
  margin-bottom: 0.75rem;
}

.lead-paragraph {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: #5a5a68;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.body-text {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.75;
  color: #4a4a55;
  margin-bottom: 1.25rem;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  list-style: none;
}

.card {
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-color: #c0c0c8;
}

.card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8e8ec;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__body {
  padding: 1.5rem;
}

.card__eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a9e9e;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a24;
  margin-bottom: 0.65rem;
}

.card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5a5a68;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a9e9e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card__link:hover {
  color: #1a1a24;
}

.card__link-arrow {
  transition: transform 0.2s ease;
}

.card__link:hover .card__link-arrow {
  transform: translateX(3px);
}

/* ===== IMAGE ===== */
.image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

/* ===== EDITORIAL RULE ===== */
.editorial-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.editorial-rule__line {
  flex: 1;
  height: 1px;
  background: #d8d8dc;
}

.editorial-rule__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b0b0b8;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid #e0e0e5;
  border-bottom: 1px solid #e0e0e5;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #4a9e9e;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a8a95;
}

/* ===== TEXTURES SHOWCASE GRID ===== */
.texture-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 6px;
  margin-top: 2rem;
}

.texture-showcase__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e8e8ec;
  border-radius: 2px;
  cursor: pointer;
}

.texture-showcase__item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.texture-showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.texture-showcase__item:hover img {
  transform: scale(1.06);
}

.texture-showcase__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(26,26,36,0.85));
  color: #f0f0f0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.texture-showcase__item:hover .texture-showcase__label {
  transform: translateY(0);
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 3px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pricing-card--featured {
  border: 2px solid #4a9e9e;
  background: #f8fcfc;
}

.pricing-card__badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #e8a04a;
  color: #1a1a24;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
}

.pricing-card__name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a9e9e;
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a24;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-card__price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #8a8a95;
}

.pricing-card__desc {
  font-size: 0.85rem;
  color: #6a6a75;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  font-size: 0.88rem;
  color: #4a4a55;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f0f0f3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card__features li::before {
  content: '✓';
  color: #4a9e9e;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===== DOCS LAYOUT ===== */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  padding-right: 2rem;
  border-right: 1px solid #e0e0e5;
}

.docs-sidebar__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a8a95;
  margin-bottom: 1rem;
}

.docs-sidebar__list {
  list-style: none;
}

.docs-sidebar__list li {
  margin-bottom: 0.25rem;
}

.docs-sidebar__list a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.88rem;
  color: #5a5a68;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.docs-sidebar__list a:hover,
.docs-sidebar__list a--active {
  color: #4a9e9e;
  border-left-color: #4a9e9e;
}

/* ===== INTEGRATION CARDS ===== */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.integration-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.integration-card:hover {
  border-color: #4a9e9e;
  box-shadow: 0 6px 24px rgba(74,158,158,0.08);
  transform: translateY(-2px);
}

.integration-card__icon {
  width: 48px;
  height: 48px;
  background: #f0f4f4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.integration-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a24;
  margin-bottom: 0.15rem;
}

.integration-card__type {
  font-size: 0.78rem;
  color: #8a8a95;
}

/* ===== USE CASES ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.usecase-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.usecase-card__bg {
  position: absolute;
  inset: 0;
  background: #e8e8ec;
  transition: transform 0.5s ease;
}

.usecase-card:hover .usecase-card__bg {
  transform: scale(1.05);
}

.usecase-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(transparent 30%, rgba(26,26,36,0.8) 100%);
  color: #f0f0f0;
}

.usecase-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8a04a;
  margin-bottom: 0.5rem;
}

.usecase-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.usecase-card__desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(240,240,240,0.75);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a24;
  color: #a0a0ac;
  border-top: 3px solid #4a9e9e;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 1rem;
  line-height: 1;
}

.footer-brand__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #808090;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #3a3a45;
  border-radius: 2px;
  color: #a0a0ac;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: #4a9e9e;
  color: #4a9e9e;
}

.footer-col__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0c0cc;
  margin-bottom: 1.25rem;
}

.footer-col__list {
  list-style: none;
}

.footer-col__list li {
  margin-bottom: 0.6rem;
}

.footer-col__list a {
  color: #808090;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-col__list a:hover {
  color: #4a9e9e;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid #2a2a35;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: #606068;
}

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom__links a {
  color: #606068;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom__links a:hover {
  color: #a0a0ac;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e0e0e5;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }

  .texture-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .texture-showcase__item--wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: #fafaf8;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 150;
  }

  .main-nav--open {
    opacity: 1;
    pointer-events: all;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .main-nav__link {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: none;
  }

  .main-nav__link:hover,
  .main-nav__link--active {
    color: #4a9e9e;
  }

  .texture-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .top-bar {
    flex-direction: column;
    height: auto;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
    text-align: center;
  }

  .top-bar__cta {
    margin-left: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
