/* ZeroRoutine — dual theme (light editorial / dark AI purple) */

:root {
  --serif: "Outfit", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 76px;
  --container: min(1080px, calc(100% - 2.5rem));
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f4f2ed;
  --bg-sand: #ebe7df;
  --bg-elevated: #ffffff;
  --bg-contact: #1a1c24;
  --surface: #ffffff;
  --border: rgba(26, 28, 36, 0.1);
  --border-strong: rgba(26, 28, 36, 0.2);
  --text: #1a1c24;
  --text-muted: #5a5f6e;
  --text-on-dark: rgba(244, 242, 237, 0.78);
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-warm: #d97706;
  --accent-glow: rgba(79, 70, 229, 0.22);
  --header-bg: rgba(244, 242, 237, 0.9);
  --nav-mobile-bg: rgba(244, 242, 237, 0.98);
  --line-color: rgba(26, 28, 36, 0.06);
  --zone-line: rgba(79, 70, 229, 0.2);
  --particles-opacity: 0.42;
  --dropdown-shadow: rgba(26, 28, 36, 0.1);
  --pill-shadow: rgba(79, 70, 229, 0.08);
  --hero-highlight: #4f46e5;
  --input-focus: #d97706;
  --panel-before: #fef3c7;
  --panel-mid: #e0e7ff;
  --panel-after: #d1fae5;
}

[data-theme="dark"] {
  --bg: #101015;
  --bg-sand: #16161e;
  --bg-elevated: #1c1c26;
  --bg-contact: #0c0c10;
  --surface: #1c1c26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-muted: #9494a8;
  --text-on-dark: rgba(236, 236, 241, 0.72);
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --accent-warm: #fbbf24;
  --accent-glow: rgba(129, 140, 248, 0.28);
  --header-bg: rgba(16, 16, 21, 0.9);
  --nav-mobile-bg: rgba(16, 16, 21, 0.98);
  --line-color: rgba(255, 255, 255, 0.04);
  --zone-line: rgba(129, 140, 248, 0.22);
  --particles-opacity: 0.75;
  --dropdown-shadow: rgba(0, 0, 0, 0.45);
  --pill-shadow: rgba(129, 140, 248, 0.12);
  --hero-highlight: #fbbf24;
  --input-focus: #fbbf24;
  --panel-before: rgba(251, 191, 36, 0.12);
  --panel-mid: rgba(129, 140, 248, 0.14);
  --panel-after: rgba(52, 211, 153, 0.12);
}

html {
  color-scheme: light dark;
}

[data-theme="light"] {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

.bg-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--particles-opacity);
  transition: opacity 0.4s ease;
}

.bg-lines {
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    var(--line-color) 48px,
    var(--line-color) 49px
  );
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

.bg-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--zone-line);
}

.bg-zone-label {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.bg-zone-label--chaos {
  left: 1.5rem;
}

.bg-zone-label--flow {
  left: calc(50% + 1.5rem);
}

.container {
  width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: var(--accent-warm);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__lead {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn--sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background 0.3s ease;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-warm);
  border: 2px solid var(--accent-warm);
  border-radius: 6px;
}

.logo__wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
  min-width: 4.5rem;
}

.lang-dropdown__trigger:hover,
.lang-dropdown.is-open .lang-dropdown__trigger {
  color: var(--text);
  border-color: var(--border-strong);
}

.lang-dropdown__chevron {
  transition: transform var(--transition);
}

.lang-dropdown.is-open .lang-dropdown__chevron {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9rem;
  padding: 0.375rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px var(--dropdown-shadow);
  z-index: 200;
  list-style: none;
}

.lang-dropdown__menu[hidden] {
  display: none;
}

.lang-dropdown__option {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: none;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.lang-dropdown__option:hover {
  color: var(--text);
  background: var(--bg);
}

.lang-dropdown__option--active {
  color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-strong);
}

.theme-toggle__icon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

[data-theme="light"] .theme-toggle__moon {
  display: block;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.nav__burger.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__burger.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero__title span {
  display: block;
}

.hero__highlight {
  color: var(--hero-highlight);
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 16px 48px var(--dropdown-shadow);
}

.hero__panel-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pipeline__step {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pipeline__step--before {
  background: var(--panel-before);
  border-left: 3px solid var(--accent-warm);
}

.pipeline__step--mid {
  background: var(--panel-mid);
  border-left: 3px solid var(--accent);
}

.pipeline__step--after {
  background: var(--panel-after);
  border-left: 3px solid #34d399;
}

.pipeline__tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pipeline__arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  opacity: 0.5;
}

.hero__metrics {
  display: flex;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.metric__value {
  display: block;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.metric__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}

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

.section--dark {
  background: var(--bg-contact);
  color: #f4f2ef;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

[data-theme="dark"] .section--dark {
  background: var(--bg-contact);
  border-block: 1px solid var(--border);
}

.section--dark .section__lead,
.section--dark p {
  color: var(--text-on-dark);
}

.service-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0 2rem 1rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  align-items: start;
  transition: var(--transition);
}

.service-row:hover {
  border-left-color: var(--accent-warm);
}

.service-row:hover .service-row__index {
  color: var(--accent);
}

.service-row__index {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.service-row__body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-row__body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.65;
}

.timeline {
  position: relative;
  max-width: 640px;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border-strong);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__content h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.timeline__content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pill {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.pill:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--pill-shadow);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.method-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--accent);
}

.method-card:nth-child(2) {
  border-top-color: var(--accent-warm);
}

.method-card:nth-child(3) {
  border-top-color: #34d399;
}

.method-card__level {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.method-card:nth-child(2) .method-card__level {
  color: var(--accent-warm);
}

.method-card:nth-child(3) .method-card__level {
  color: #34d399;
}

.method-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.method-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.methods__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__intro h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-on-dark);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--input-focus);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer__tagline {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-muted);
  min-width: 200px;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }

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

  .nav__links a {
    padding: 1rem;
    border-radius: var(--radius);
  }

  .nav__links a:hover {
    background: var(--surface);
  }

  .nav__burger {
    display: flex;
  }

  .nav__actions .btn--sm {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__panel {
    order: -1;
  }

  .bg-zone-label--flow {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 3rem);
  }

  .hero__metrics {
    flex-direction: column;
    gap: 1.25rem;
  }

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

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

  .contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .pill-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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