:root {
  --bg: oklch(0.96 0.012 85);
  --surface: oklch(0.99 0.005 90);
  --text: oklch(0.22 0.02 260);
  --text-muted: oklch(0.52 0.02 70);
  --accent: oklch(0.35 0.04 250);
  --btn: oklch(0.28 0.02 260);
  --btn-hover: oklch(0.22 0.02 260);
  --border: oklch(0.88 0.01 85);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  --radius-image: 24px;
  --radius-pill: 999px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --announce-h: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--btn);
  color: white;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1280px, calc(100% - 3rem));
  margin-inline: auto;
}

/* Announcement bar */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent);
  color: oklch(0.95 0.01 90);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.announce-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.announce-bar a:hover {
  opacity: 0.85;
}

.announce-bar svg {
  width: 14px;
  height: 14px;
}

/* Header */
.site-header {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px oklch(0 0 0 / 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.65;
}

.nav-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: oklch(0.55 0.12 250);
  color: white;
  border-radius: 4px;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-login {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: oklch(0.92 0.01 85);
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.btn-login:hover {
  background: oklch(0.88 0.01 85);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  background: var(--btn);
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: opacity 0.2s;
}

.btn-ghost:hover {
  opacity: 0.65;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding-top: calc(var(--announce-h) + var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-content p {
  max-width: 28rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  margin-left: auto;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.08);
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual video {
  position: absolute;
  inset: 0;
}

.hero-visual .hero-still {
  position: relative;
  z-index: 1;
  transition: opacity 1.2s ease;
}

.hero-visual.playing .hero-still {
  opacity: 0;
  pointer-events: none;
}

/* Trust bar */
.trust-bar {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: var(--space-md);
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  flex: 1;
}

.trust-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: oklch(0.72 0.01 85);
  text-transform: lowercase;
}

/* Section shared */
.section {
  padding-block: var(--space-xxl);
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 36rem;
  margin-bottom: var(--space-xl);
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-image);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px oklch(0 0 0 / 0.06);
}

.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-card-media img,
.product-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card-media video {
  position: absolute;
  inset: 0;
}

.product-card-media .product-fallback {
  position: relative;
  z-index: 0;
}

.product-card:hover .product-card-media img,
.product-card:hover .product-card-media video {
  transform: scale(1.03);
}

.product-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.product-card-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-tags span {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg);
  border-radius: var(--radius-pill);
}

/* Tools carousel */
.tools-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.tools-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tools-carousel-wrap {
  position: relative;
  overflow: hidden;
}

.tools-track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tool-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  border-color: oklch(0.78 0.01 85);
  box-shadow: 0 8px 24px oklch(0 0 0 / 0.04);
}

.tool-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--bg);
  border-color: oklch(0.78 0.01 85);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.82 0.01 85);
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--btn);
  transform: scale(1.2);
}

/* Values section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-section {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-md);
}

.testimonial-photo {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-image);
  object-fit: cover;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-size: 0.9375rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  max-width: 48rem;
}

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
}

.articles-list {
  list-style: none;
}

.articles-list li {
  border-bottom: 1px solid var(--border);
}

.articles-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.articles-list a:hover {
  opacity: 0.65;
}

.articles-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.article-feature {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.article-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-feature-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, oklch(0 0 0 / 0.65));
  color: white;
}

.article-feature-caption span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.article-feature-caption h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.35rem;
}

/* Newsletter */
.newsletter-section {
  padding-bottom: var(--space-xxl);
}

.newsletter-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-image);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-color: oklch(0.65 0.02 85);
}

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  background: var(--btn);
  border-radius: var(--radius-pill);
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--btn-hover);
}

/* Footer */
.site-footer {
  background: var(--btn);
  color: oklch(0.85 0.01 90);
  padding-block: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 20rem;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.7 0.01 90);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid oklch(0.4 0.02 260);
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a:hover {
  color: white;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: calc(var(--announce-h) + var(--header-h)) 0 0 0;
  z-index: 90;
  background: var(--bg);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  padding-block: 0.5rem;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-visual {
    margin-inline: auto;
    max-width: 420px;
  }

  .products-grid,
  .values-grid,
  .articles-grid,
  .newsletter-box {
    grid-template-columns: 1fr;
  }

  .tool-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .testimonial-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-photo {
    margin-inline: auto;
    width: 200px;
    height: 200px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .site-nav,
  .header-actions .btn-login {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .tool-card {
    flex: 0 0 85%;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .newsletter-form {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .tools-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
