/* ═══════════════════════════════════════════════════════════
   CONTEXTFULL — STONE & STEEL DESIGN SYSTEM
   Brutalist-luxe with warm stone neutrals
   ═══════════════════════════════════════════════════════════ */

:root {
  --bone:    #fafaf9;
  --chalk:   #e7e5e4;
  --stone:   #d6d3d1;
  --slate:   #a8a29e;
  --iron:    #78716c;
  --steel:   #44403c;
  --carbon:  #1c1917;

  --bone-rgb: 250, 250, 249;
  --carbon-rgb: 28, 25, 23;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --accent: #c2410c;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-width: 1200px;
  --nav-height: 72px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font-primary);
  background: #fff;
  color: var(--carbon);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── RTL SUPPORT ── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* ── TYPOGRAPHY ── */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.t-h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.t-body { font-size: 1rem; line-height: 1.7; color: var(--iron); }
.t-body-lg { font-size: 1.125rem; line-height: 1.7; color: var(--iron); }
.t-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iron);
}
.t-mono { font-family: var(--font-mono); font-size: 0.875rem; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.section { padding: 7rem 0; }
.section-lg { padding: 9rem 0; }
.section-dark { background: var(--carbon); color: var(--bone); }
.section-dark .t-body,
.section-dark .t-body-lg { color: var(--slate); }
.section-dark .t-caption { color: var(--iron); }
.section-chalk { background: var(--chalk); }

/* ── GRID ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--chalk);
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
}
.nav.scrolled {
  height: 60px;
  border-bottom-color: var(--stone);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 3rem; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.nav-logo svg { width: 28px; height: 28px; color: var(--carbon); }
.nav-logo span {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--steel);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--carbon); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--carbon);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

/* Products dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  font-size: 0.875rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.2s;
}
.nav-dropdown-trigger:hover { color: var(--carbon); }
.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 12px;
  background: var(--bone);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 8px 32px rgba(var(--carbon-rgb), 0.08);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: var(--chalk); }
.nav-dropdown-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.nav-dropdown-item span {
  font-size: 0.75rem;
  color: var(--iron);
}

/* Nav CTA */
.nav-cta {
  display: none;
  padding: 0.5rem 1.25rem;
  background: var(--carbon);
  color: var(--bone);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.2s var(--ease-out);
}
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--steel); }

/* Language selector */
.lang-selector {
  position: relative;
  display: none;
}
@media (min-width: 768px) { .lang-selector { display: block; } }
.lang-selector select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 0.375rem 2rem 0.375rem 0.625rem;
  font-size: 0.75rem;
  color: var(--steel);
  cursor: pointer;
}
.lang-selector::after {
  content: '▾';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--slate);
  pointer-events: none;
}

/* Mobile menu */
.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
@media (min-width: 768px) { .nav-mobile-toggle { display: none; } }
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--carbon);
  transition: all 0.3s var(--ease-out);
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bone);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 999;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--chalk);
}
.mobile-menu .mobile-cta {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--carbon);
  color: var(--bone);
  text-align: center;
  font-weight: 500;
  margin-top: 2rem;
}
.mobile-menu .lang-selector-mobile {
  margin-top: 1.5rem;
}
.mobile-menu .lang-selector-mobile select {
  width: 100%;
  appearance: none;
  background: var(--chalk);
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--carbon);
  color: var(--bone);
  border: 2px solid var(--carbon);
}
.btn-primary:hover {
  background: var(--steel);
  border-color: var(--steel);
}
.btn-secondary {
  background: transparent;
  color: var(--carbon);
  border: 2px solid var(--carbon);
}
.btn-secondary:hover {
  background: var(--carbon);
  color: var(--bone);
}
.btn-ghost {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--stone);
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}
.btn-ghost:hover {
  border-color: var(--carbon);
  color: var(--carbon);
}
.btn-light {
  background: var(--bone);
  color: var(--carbon);
  border: 2px solid var(--bone);
}
.btn-light:hover {
  background: var(--chalk);
  border-color: var(--chalk);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}
.btn svg { width: 16px; height: 16px; }

/* ── CARDS ── */
.card {
  background: var(--bone);
  border: 1px solid var(--stone);
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.card:hover {
  border-color: var(--carbon);
}
.card-featured {
  border-width: 2px;
  border-color: var(--carbon);
}
.card-dark {
  background: var(--steel);
  border-color: var(--iron);
  color: var(--bone);
}
.card-dark:hover { border-color: var(--slate); }
.card-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  background: var(--chalk);
  color: var(--steel);
  margin-bottom: 1.25rem;
}
.section-dark .card-label {
  background: var(--iron);
  color: var(--bone);
}

/* ── HERO ── */
.hero {
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-caption {
  margin-bottom: 1.5rem;
}
.hero-title {
  margin-bottom: 1.75rem;
}
.hero-subtitle {
  max-width: 540px;
  margin-bottom: 3rem;
  font-size: 1.25rem;
  line-height: 1.65;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-visual {
  display: none;
}
@media (min-width: 768px) {
  .hero-visual { display: block; }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  margin-top: 4rem;
  border: 1px solid var(--stone);
}
.hero-stat {
  background: var(--bone);
  padding: 1.5rem;
  text-align: center;
}
.hero-stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--iron);
  margin-top: 0.375rem;
  letter-spacing: 0.02em;
}

/* ── STAT COUNTERS ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--stone);
}
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
}
.section-dark .stat-item { background: var(--carbon); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--carbon);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* ── PILLAR BLOCKS ── */
.pillar {
  padding: 2.5rem;
  border: 1px solid var(--stone);
  position: relative;
  transition: all 0.4s var(--ease-out);
}
.pillar:hover {
  border-color: var(--iron);
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.04);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.pillar:hover::before { width: 4px; }
[dir="rtl"] .pillar::before { left: auto; right: 0; }
.pillar-number {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.pillar-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.pillar-desc {
  font-size: 0.9375rem;
  color: var(--iron);
  line-height: 1.6;
}

/* ── PRODUCT CARDS ── */
.product-card {
  padding: 2.5rem;
  border: 1px solid var(--stone);
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card:hover {
  border-color: var(--carbon);
  box-shadow: 0 8px 40px rgba(28, 25, 23, 0.06);
  transform: translateY(-2px);
}
.product-card-featured {
  border-width: 2px;
  border-color: var(--carbon);
  border-top: 3px solid var(--accent);
}
.product-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--steel);
}
.product-name {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.product-tagline {
  font-size: 0.8125rem;
  color: var(--slate);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.product-desc {
  font-size: 0.9375rem;
  color: var(--iron);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--carbon);
  transition: gap 0.2s var(--ease-out), color 0.2s;
}
.product-link:hover { gap: 0.75rem; color: var(--accent); }
.product-link svg { width: 14px; height: 14px; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}
.cta-section .t-display { margin-bottom: 1.5rem; }
.cta-section .t-body-lg { max-width: 560px; margin: 0 auto 3rem; }
.cta-divider {
  width: 48px;
  height: 2px;
  background: var(--bone);
  margin: 2rem auto;
  opacity: 0.3;
}
.cta-newsletter {
  max-width: 440px;
  margin: 0 auto;
}
.cta-newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 1rem;
}
.cta-newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--iron);
  background: transparent;
  color: var(--bone);
  font-size: 0.9375rem;
  outline: none;
  min-width: 0;
}
.cta-newsletter-form input::placeholder { color: var(--iron); }
.cta-newsletter-form input:focus { border-color: var(--bone); }
.cta-newsletter-form button {
  padding: 0.875rem 1.5rem;
  background: var(--bone);
  color: var(--carbon);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}
.cta-newsletter-form button:hover { background: var(--chalk); }

/* ── AUDIENCE SECTION ── */
.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--chalk);
}
.audience-item:last-child { border-bottom: none; }
.audience-marker {
  width: 8px;
  height: 8px;
  background: var(--carbon);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.audience-title {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.audience-desc {
  font-size: 0.9375rem;
  color: var(--iron);
  line-height: 1.5;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 3.5rem;
}
.section-header .t-caption { margin-bottom: 1rem; }
.section-header .t-h2 { margin-bottom: 1rem; }
.section-header .t-body-lg { max-width: 560px; }
.section-header-center { text-align: center; }
.section-header-center .t-body-lg { margin: 0 auto; }
.section-rule {
  width: 32px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 2rem;
}
.section-header-center .section-rule { margin: 0 auto 2rem; }

/* ── FOOTER ── */
.footer {
  background: var(--carbon);
  color: var(--bone);
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--steel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand {
  max-width: 280px;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo svg { color: var(--bone); }
.footer-brand .nav-logo span { color: var(--bone); }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--slate);
  padding: 0.375rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--steel);
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--iron);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--iron);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--bone); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--steel);
}
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--stone);
  background: var(--bone);
  font-size: 0.9375rem;
  color: var(--carbon);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--carbon); }
.form-input::placeholder { color: var(--slate); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2378716c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}
.form-error {
  font-size: 0.8125rem;
  color: #b91c1c;
  margin-top: 0.375rem;
  display: none;
}
.form-success {
  padding: 1.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  text-align: center;
  display: none;
}

/* ── COOKIE CONSENT ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--carbon);
  color: var(--bone);
  padding: 1.25rem 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  border-top: 2px solid var(--steel);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cookie-inner { flex-direction: row; align-items: center; }
}
.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.5;
}
.cookie-text a { color: var(--bone); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: var(--bone);
  color: var(--carbon);
}
.cookie-btn-accept:hover { background: var(--chalk); }
.cookie-btn-reject {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--iron);
}
.cookie-btn-reject:hover { border-color: var(--bone); color: var(--bone); }

/* ── LEGAL PAGES ── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
}
.legal-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal-content .legal-date {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-content p {
  font-size: 0.9375rem;
  color: var(--iron);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-content li {
  font-size: 0.9375rem;
  color: var(--iron);
  line-height: 1.7;
  list-style: disc;
  margin-bottom: 0.375rem;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero .fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

.slide-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Count-up animation for stat numbers */
.count-up { display: inline-block; }

/* ── ABOUT PLACEHOLDER ── */
.about-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}
.about-placeholder-inner {
  max-width: 480px;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--chalk);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; color: var(--steel); }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  right: 1.5rem;
  background: var(--carbon);
  color: var(--bone);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  z-index: 10001;
  transform: translateX(120%);
  transition: transform 0.4s var(--ease-out);
  max-width: 360px;
}
.toast.visible { transform: translateX(0); }
.toast-success { border-left: 3px solid #22c55e; }
.toast-error { border-left: 3px solid #ef4444; }

/* ── SKIP LINK (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 0.75rem 1.5rem;
  background: var(--carbon);
  color: var(--bone);
  z-index: 10002;
  font-weight: 500;
}
.skip-link:focus { top: 16px; }

/* ── ZERO SLOP ── */
.zs-install-block {
  background: var(--carbon);
  color: var(--bone);
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border-left: 3px solid var(--iron);
  overflow-x: auto;
  white-space: nowrap;
}
.zs-install-block code {
  user-select: all;
  cursor: text;
}

.zs-pipeline {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 0;
}
.zs-pipeline-inner {
  min-width: 320px;
  max-width: 960px;
  margin: 0 auto;
}
.zs-phase {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.zs-phase.visible {
  opacity: 1;
  transform: translateY(0);
}
.zs-phase-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}
.zs-phase-label span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
}
.zs-phase-label .phase-measure { background: rgba(168,162,158,0.15); color: var(--steel); }
.zs-phase-label .phase-verify { background: rgba(134,239,172,0.15); color: #166534; }
.zs-phase-label .phase-reflect { background: rgba(196,181,253,0.15); color: #5b21b6; }
.zs-phase-label .phase-tune { background: rgba(253,224,71,0.15); color: #854d0e; }

.zs-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1rem;
}
.zs-node {
  flex: 1 1 200px;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--stone);
  background: var(--bone);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.3s;
}
.zs-node.visible {
  opacity: 1;
  transform: translateX(0);
}
.zs-node:hover {
  border-color: var(--iron);
}
.zs-node-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--carbon);
}
.zs-node-desc {
  font-size: 0.75rem;
  color: var(--iron);
  line-height: 1.5;
}
.zs-node-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 2px;
  float: right;
  margin-left: 0.5rem;
}
.badge-wording { background: rgba(168,162,158,0.2); color: var(--iron); }
.badge-blind { background: rgba(168,162,158,0.2); color: var(--iron); }

.zs-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.zs-arrow.visible { opacity: 1; }
.zs-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--slate);
}

.zs-node-center {
  flex: 1 1 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  border-width: 2px;
}
.zs-node-result {
  border-color: var(--iron);
  background: var(--chalk);
}
.zs-node-verify {
  border-color: #86efac;
  background: rgba(134,239,172,0.08);
}
.zs-node-reflect {
  border-style: dashed;
  border-color: #c4b5fd;
}
.zs-node-tune {
  border-color: #fde047;
  background: rgba(253,224,71,0.06);
}

.zs-flow-connector {
  text-align: center;
  padding: 0.25rem 0;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--slate);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.zs-flow-connector.visible { opacity: 1; }

@media (max-width: 640px) {
  .zs-nodes { flex-direction: column; }
  .zs-node { flex: 1 1 auto; }
  .zs-node-center { max-width: 100%; }
}

/* ── HERO ANIMATION (mobile-first) ── */
.hero-anim {
  --hero-shift-y: 0px;
  --hero-tilt-x: 0deg;
  --hero-tilt-y: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + var(--hero-shift-y)));
  width: min(150vw, 620px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}
@media (min-width: 768px) {
  .hero-anim {
    left: auto;
    right: -4%;
    width: 52%;
    max-width: 580px;
    transform: translate(0, calc(-50% + var(--hero-shift-y)));
    opacity: 1;
  }
}
.hero-anim-tilt {
  width: 100%;
  height: 100%;
  transform: perspective(1200px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-anim svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.hero-line {
  stroke: var(--carbon);
  stroke-width: 1.5;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.hero-line-1 {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw-rect 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
  opacity: 0.25;
}
.hero-line-2 {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-rect 1.9s cubic-bezier(0.65, 0, 0.35, 1) 0.8s forwards;
  opacity: 0.18;
}
.hero-line-3 {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-rect 1.6s cubic-bezier(0.65, 0, 0.35, 1) 1.2s forwards;
  opacity: 0.12;
}
.hero-line-4 {
  fill: var(--accent);
  stroke: none;
  opacity: 0;
  animation: fill-core 0.9s ease-out 1.8s forwards;
}
@keyframes draw-rect {
  to { stroke-dashoffset: 0; }
}
@keyframes fill-core {
  to { opacity: 0.4; }
}

/* layers drift at different depths — gives it dimension */
.hero-layers .hero-line-1 { animation: draw-rect 2.2s cubic-bezier(0.65,0,0.35,1) 0.4s forwards, layer-drift-1 14s ease-in-out 3s infinite; }
.hero-layers .hero-line-2 { animation: draw-rect 1.9s cubic-bezier(0.65,0,0.35,1) 0.8s forwards, layer-drift-2 11s ease-in-out 3s infinite; }
.hero-layers .hero-line-3 { animation: draw-rect 1.6s cubic-bezier(0.65,0,0.35,1) 1.2s forwards, layer-drift-3 9s ease-in-out 3s infinite; }
.hero-layers .hero-line { transform-origin: 250px 250px; transform-box: view-box; }
@keyframes layer-drift-1 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}
@keyframes layer-drift-2 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.985); }
}
@keyframes layer-drift-3 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* core breathes and glows */
.hero-core-group {
  transform-origin: 250px 250px;
  transform-box: view-box;
  animation: core-breathe 5s ease-in-out 2.8s infinite;
}
@keyframes core-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.hero-core-halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  animation: halo-in 1s ease-out 2.2s forwards, halo-shimmer 5s ease-in-out 3.2s infinite;
}
@keyframes halo-in { to { opacity: 0.25; } }
@keyframes halo-shimmer {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.45; }
}

/* echo pulses radiating out of the core */
.hero-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  opacity: 0;
  transform-origin: 250px 250px;
  transform-box: view-box;
}
.hero-pulse-1 { animation: pulse-out 6s cubic-bezier(0.25, 0.6, 0.4, 1) 2.6s infinite; }
.hero-pulse-2 { animation: pulse-out 6s cubic-bezier(0.25, 0.6, 0.4, 1) 4.6s infinite; }
.hero-pulse-3 { animation: pulse-out 6s cubic-bezier(0.25, 0.6, 0.4, 1) 6.6s infinite; }
@keyframes pulse-out {
  0%   { transform: scale(1); opacity: 0; }
  8%   { opacity: 0.45; }
  70%  { opacity: 0.06; }
  100% { transform: scale(6.4); opacity: 0; }
}

/* traveling highlights orbiting each layer */
.hero-tracer {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
}
.hero-tracer-1 {
  stroke-dasharray: 90 1710;
  animation: tracer-fade 1s ease-out 2.8s forwards, tracer-orbit-1 16s linear 2.8s infinite;
}
.hero-tracer-2 {
  stroke-dasharray: 60 1140;
  animation: tracer-fade 1s ease-out 3.1s forwards, tracer-orbit-2 12s linear 3.1s infinite reverse;
}
.hero-tracer-3 {
  stroke-dasharray: 36 564;
  animation: tracer-fade 1s ease-out 3.4s forwards, tracer-orbit-3 9s linear 3.4s infinite;
}
@keyframes tracer-fade { to { opacity: 0.6; } }
@keyframes tracer-orbit-1 { to { stroke-dashoffset: -1800; } }
@keyframes tracer-orbit-2 { to { stroke-dashoffset: -1200; } }
@keyframes tracer-orbit-3 { to { stroke-dashoffset: -600; } }

/* compass ticks */
.hero-tick {
  stroke: var(--carbon);
  stroke-width: 1;
  opacity: 0;
  animation: tick-in 0.8s ease-out 2.4s forwards;
}
@keyframes tick-in { to { opacity: 0.2; } }

.hero-glow {
  opacity: 0;
  animation: glow-in 1.6s ease-out 2s forwards;
}
@keyframes glow-in { to { opacity: 1; } }

/* keep hero copy readable above the mobile backdrop */
@media (max-width: 767.98px) {
  .hero-content {
    text-shadow: 0 0 24px var(--bone, #faf7f2), 0 0 48px var(--bone, #faf7f2);
  }
}

/* reduced motion: settle into the final composed state, no movement */
@media (prefers-reduced-motion: reduce) {
  .hero-line-1, .hero-line-2, .hero-line-3 { animation: none; stroke-dashoffset: 0; }
  .hero-line-4 { animation: none; opacity: 0.4; }
  .hero-core-group, .hero-pulse, .hero-tracer, .hero-core-halo,
  .hero-layers .hero-line, .hero-glow, .hero-tick { animation: none; }
  .hero-core-halo { opacity: 0.25; }
  .hero-glow { opacity: 1; }
  .hero-tick { opacity: 0.2; }
  .hero-anim-tilt { transform: none; transition: none; }
}

/* ── ADOPTION BAR CHART ── */
.adoption-chart { max-width: 600px; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.bar-label {
  font-size: 0.8125rem;
  color: var(--iron);
  width: 170px;
  flex-shrink: 0;
  text-align: right;
}
.bar-track {
  flex: 1;
  height: 24px;
  background: var(--chalk);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--carbon);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-row:first-of-type .bar-fill {
  background: linear-gradient(90deg, var(--carbon), var(--accent));
}
.bar-pct {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
  width: 36px;
  text-align: right;
  color: var(--carbon);
}
@media (max-width: 640px) {
  .bar-row { flex-wrap: wrap; gap: 0.5rem; }
  .bar-label { width: 100%; text-align: left; font-size: 0.75rem; }
  .bar-pct { width: auto; }
}

/* ── PLATFORM CONNECTOR ── */
.platform-core {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 480px;
  margin: 3rem auto 0;
}
.core-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
}
.core-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
  border: 1px solid var(--stone);
  border-left: 3px solid var(--accent);
  white-space: nowrap;
}
.core-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.core-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-top: 0.125rem;
}
.core-desc {
  font-size: 0.6875rem;
  color: var(--iron);
  margin-top: 0.25rem;
  white-space: normal;
  max-width: 240px;
}

/* ── ALIVE ANIMATIONS ── */
.section-rule {
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-rule.visible { transform: scaleX(1); }
.surface-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.core-badge {
  animation: accent-glow 3s ease-in-out infinite;
}
@keyframes accent-glow {
  0%, 100% { border-left-color: var(--accent); }
  50% { border-left-color: rgba(194, 65, 12, 0.4); }
}

/* ── ENHANCED HOVER ── */
.card {
  transition: all 0.4s var(--ease-out);
}
.card:hover {
  border-color: var(--carbon);
  box-shadow: 0 8px 40px rgba(28, 25, 23, 0.06);
  transform: translateY(-2px);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(194, 65, 12, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; }

/* ── CTA LIGHT ── */
.cta-section-light {
  border-top: 1px solid var(--stone);
  background: linear-gradient(180deg, #fff 0%, var(--bone) 100%);
}
.cta-newsletter-light input {
  border: 2px solid var(--stone);
  background: #fff;
  color: var(--carbon);
}
.cta-newsletter-light input::placeholder { color: var(--slate); }
.cta-newsletter-light input:focus { border-color: var(--carbon); }
.cta-newsletter-light button {
  background: var(--carbon);
  color: #fff;
}
.cta-newsletter-light button:hover { background: var(--steel); }

/* ── SURFACES BAR ── */
.surfaces-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--stone);
}
.surfaces-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.surface-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--stone);
  transition: border-color 0.2s;
}
.surface-tag:hover { border-color: var(--iron); }
.surface-live { color: var(--carbon); }
.surface-soon { color: var(--slate); border-style: dashed; }

/* ── HERO GRADIENT WASH ── */
.hero .container::before {
  content: '';
  position: absolute;
  top: -20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── PREMIUM SECTION DIVIDERS ── */
#problem { border-top: 1px solid var(--chalk); }
#platform { border-top: 1px solid var(--chalk); }
#products { border-top: 1px solid var(--chalk); }

/* ── PRODUCT NAME HOVER ── */
.product-name {
  transition: color 0.2s;
}
.product-card:hover .product-name { color: var(--accent); }

/* ── REFINED SURFACES ── */
.surface-tag {
  transition: all 0.3s var(--ease-out);
}
.surface-live:hover {
  border-color: var(--carbon);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
}

/* ── PRINT ── */
@media print {
  .nav, .footer, .cookie-banner, .mobile-menu { display: none; }
  body { color: #000; background: #fff; }
  .section-dark { background: #f5f5f5; color: #000; }
}
