/* ============================================================
   Zhan Sheng — Industrial / Technical Design System
   Qingdao Zhanshengzhen Network Technology Co., Ltd.
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Core palette */
  --color-bg: #F8FAFC;
  --color-dark: #1E293B;
  --color-surface: #FFFFFF;
  --color-accent: #EA580C;
  --color-secondary: #0EA5E9;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-dark-text: #F1F5F9;

  /* Extended accent tones */
  --color-accent-light: #F97316;
  --color-accent-dark: #C2410C;
  --color-secondary-light: #38BDF8;
  --color-secondary-dark: #0284C7;

  /* Surface variants */
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;
  --color-slate-400: #94A3B8;
  --color-slate-500: #64748B;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 80px;
  --border-radius: 2px;

  /* Shadows — industrial: sharp, minimal */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.12);

  /* Transitions */
  --transition: 200ms ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-dark);
}

ul, ol {
  list-style: none;
}

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Utility: Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Grid Line Decoration --- */
.grid-bg {
  position: relative;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

/* --- Section Common --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-dark-text);
}

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

.section--white {
  background-color: var(--color-surface);
}

.section--divider {
  border-bottom: 4px solid var(--color-accent);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: var(--space-md);
}

.section__title--accent-underline {
  position: relative;
  display: inline-block;
}

.section__title--accent-underline::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-accent);
  margin-top: var(--space-sm);
}

.section__subtitle {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.6;
}

.section--dark .section__subtitle {
  color: var(--color-slate-400);
}

.section__header {
  margin-bottom: var(--space-3xl);
}

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

.section__header--center .section__subtitle {
  margin: 0 auto;
}

.section__header--center .section__title--accent-underline::after {
  margin-left: auto;
  margin-right: auto;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  height: 64px;
  transition: box-shadow var(--transition);
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

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

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__accent {
  color: var(--color-accent);
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-slate-600);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav__link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.hamburger__line {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 300ms ease;
  transform-origin: center;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(to right, transparent 0%,
      var(--color-dark) 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(234, 88, 12, 0.06) 39px,
      rgba(234, 88, 12, 0.06) 40px
    );
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 540px;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--color-dark-text);
}

.hero__title-accent {
  position: relative;
  display: inline-block;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--color-accent);
  z-index: -1;
}

.hero__desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-slate-400);
  margin-bottom: var(--space-xl);
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  color: var(--color-dark-text);
  border-color: var(--color-slate-500);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-slate-300);
  border-color: var(--color-slate-600);
}

.btn--outline-light:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hero Code Block (decorative) */
.hero__code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-slate-700);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.hero__code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

.hero__code-line {
  display: flex;
  gap: var(--space-md);
}

.hero__code-prompt {
  color: var(--color-accent);
  user-select: none;
}

.hero__code-cmd {
  color: var(--color-secondary-light);
}

.hero__code-arg {
  color: var(--color-slate-300);
}

.hero__code-str {
  color: #34D399;
}

.hero__code-keyword {
  color: #A78BFA;
}

.hero__code-comment {
  color: var(--color-slate-500);
  font-style: italic;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.trust-bar__item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

.trust-bar__item:last-child::after {
  display: none;
}

.trust-bar__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.trust-bar__value {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.trust-bar__suffix {
  color: var(--color-accent);
}

.trust-bar__label {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: var(--space-xs);
}

/* --- Services (Alternating Rows) --- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.service-row + .service-row {
  border-top: 1px solid var(--color-border);
}

.service-row__text {
  max-width: 460px;
}

.service-row--reverse .service-row__text {
  order: 2;
  margin-left: auto;
}

.service-row__number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.service-row__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.service-row__desc {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
}

.service-row__code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding: var(--space-xl);
  border-left: 4px solid var(--color-accent);
  overflow-x: auto;
  white-space: pre;
}

.service-row--reverse .service-row__code {
  order: 1;
  border-left: none;
  border-right: 4px solid var(--color-secondary);
}

/* --- Tech Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.tech-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  transition: background var(--transition);
}

.tech-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.tech-card:hover::before {
  background: var(--color-accent);
}

.tech-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.tech-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.tech-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  border: 1px solid var(--color-border);
  color: var(--color-slate-600);
  background: var(--color-slate-50);
}

.pill--accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #FFF7ED;
}

.pill--secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: #F0F9FF;
}

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  transition: border-color var(--transition);
}

.process-card:hover {
  border-color: var(--color-accent);
}

.process-card__step {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 900;
  color: var(--color-slate-200);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.process-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.process-card__desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Connector arrows between process cards */
.process-card::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  z-index: 2;
}

.process-card:last-child::after {
  display: none;
}

/* --- Values / Principles --- */
.values-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.value-item {
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: border-left-color var(--transition);
}

.value-item:hover {
  border-left-color: var(--color-secondary);
}

.value-item__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.value-item__title span {
  color: var(--color-accent);
  margin-right: var(--space-sm);
  font-family: var(--font-mono);
}

.value-item__desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-panel {
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding: var(--space-3xl);
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-panel::before {
  content: '';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  width: 32px;
  height: 32px;
  border-top: 3px solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
}

.about-panel__quote {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.about-panel__attribution {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-slate-400);
}

.about-text__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.about-text__body {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.8;
}

.about-text__body p + p {
  margin-top: var(--space-md);
}

/* --- Contact --- */
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-3xl);
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group__input,
.form-group__textarea {
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  background: var(--color-slate-50);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group__input:focus,
.form-group__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface);
}

.form-group__textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
  color: var(--color-slate-400);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-dark-text);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-slate-700);
}

.footer-brand__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark-text);
  margin-bottom: var(--space-sm);
}

.footer-brand__name span {
  color: var(--color-accent);
}

.footer-brand__desc {
  font-size: 14px;
  color: var(--color-slate-400);
  line-height: 1.7;
}

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 14px;
  color: var(--color-slate-400);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom__copyright {
  font-size: 13px;
  color: var(--color-slate-500);
  font-family: var(--font-mono);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom__links a {
  font-size: 13px;
  color: var(--color-slate-500);
  font-family: var(--font-mono);
  transition: color var(--transition);
}

.footer-bottom__links a:hover {
  color: var(--color-accent);
}

/* --- Legal Pages --- */
.legal-hero {
  background: var(--color-dark);
  padding: 120px 0 var(--space-3xl);
  text-align: center;
}

.legal-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--color-dark-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.legal-hero__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-4xl);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  font-size: 16px;
  color: var(--color-slate-600);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content li {
  font-size: 16px;
  color: var(--color-slate-600);
  line-height: 1.8;
  list-style-type: disc;
  margin-bottom: var(--space-xs);
}

.legal-content a {
  color: var(--color-accent);
  font-weight: 600;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content strong {
  color: var(--color-text);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-up--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 600ms ease;
}

.fade-in--visible {
  opacity: 1;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.stagger-children--visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children--visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children--visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children--visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger-children--visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger-children--visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger-children--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation is handled via JS */

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

  .hero__content {
    max-width: 100%;
  }

  .hero__desc {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__code-block {
    display: none;
  }

  .hero::before {
    width: 100%;
    opacity: 0.15;
  }

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

  .trust-bar__item:nth-child(2)::after {
    display: none;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-row__text {
    max-width: 100%;
  }

  .service-row--reverse .service-row__text {
    order: 1;
    margin-left: 0;
  }

  .service-row--reverse .service-row__code {
    order: 2;
  }

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

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

  .process-card:nth-child(2)::after {
    display: none;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-surface);
    padding: 96px var(--space-xl) var(--space-xl);
    border-left: 2px solid var(--color-border);
    transition: right 300ms ease;
    gap: var(--space-md);
    z-index: 999;
  }

  .nav__list--open {
    right: 0;
  }

  .nav__link {
    font-size: 18px;
    padding: var(--space-sm) 0;
  }

  .hamburger {
    display: flex;
  }

  .trust-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-bar__value {
    font-size: 28px;
  }

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

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

  .process-card::after {
    content: '↓';
    right: 50%;
    top: auto;
    bottom: -16px;
    transform: translateX(50%);
  }

  .process-card:last-child::after {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar__item::after {
    right: 10%;
    top: auto;
    bottom: 0;
    width: 80%;
    height: 1px;
  }

  .trust-bar__item:last-child::after {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
