/* ═══════════════════════════════════════════════════════════════════
   GreenForest Technology — Design System
   Inspired by Stripe's design principles, adapted for green tech
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Color: Green palette */
  --color-primary: #0b6b4f;
  --color-primary-dark: #052e21;
  --color-primary-deeper: #031c14;
  --color-accent: #34d399;
  --color-accent-light: #6ee7b7;
  --color-accent-glow: rgba(52, 211, 153, 0.25);

  /* Surfaces */
  --color-bg: #fafdfb;
  --color-surface: #ffffff;
  --color-surface-2: #f0f7f2;
  --color-surface-3: #e6f2ea;

  /* Text */
  --color-heading: #052e21;
  --color-body: #374151;
  --color-muted: #6b7280;
  --color-label: #374151;

  /* Borders */
  --color-border: rgba(5, 46, 33, 0.08);
  --color-border-hover: rgba(5, 46, 33, 0.15);

  /* Shadows — Stripe-inspired, green-tinted */
  --shadow-ambient: rgba(5, 46, 33, 0.04) 0px 3px 6px;
  --shadow-standard: rgba(5, 46, 33, 0.06) 0px 15px 35px;
  --shadow-elevated: rgba(5, 46, 33, 0.12) 0px 30px 45px -30px, rgba(0,0,0,0.06) 0px 18px 36px -18px;
  --shadow-card: rgba(5, 46, 33, 0.08) 0px 12px 40px -12px;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Typography (Stripe-inspired hierarchy) ── */
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin-top: 0; color: var(--color-body); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-3xl);
}

.section-head p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-muted);
}

.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 46, 33, 0.2), 0 0 0 1px rgba(5, 46, 33, 0.1);
}

.btn-primary:hover {
  background: var(--color-primary);
  box-shadow: 0 4px 16px rgba(5, 46, 33, 0.25), 0 0 0 1px rgba(5, 46, 33, 0.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border-hover);
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  border-color: rgba(5, 46, 33, 0.25);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 253, 251, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  box-shadow: 0 4px 12px rgba(11, 107, 79, 0.3);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-3deg);
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
}

.brand-text small {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.nav-links a:hover {
  color: var(--color-heading);
  background: var(--color-surface-2);
}

.nav-cta {
  background: var(--color-primary-dark) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 8px rgba(5, 46, 33, 0.2);
}

.nav-cta:hover {
  background: var(--color-primary) !important;
  box-shadow: 0 4px 16px rgba(5, 46, 33, 0.3) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-heading);
  position: absolute;
  left: 10px;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  z-index: -2;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 70%);
  top: -10%;
  left: -5%;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(11, 107, 79, 0.15), transparent 70%);
  top: 10%;
  right: -10%;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.2), transparent 70%);
  bottom: -5%;
  left: 30%;
  animation: orbFloat 18s ease-in-out infinite 5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--color-muted);
  backdrop-filter: blur(8px);
}

.trust-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(12px);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(11, 107, 79, 0.06);
  border-radius: 20px;
  pointer-events: none;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-heading);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.launch-list {
  display: grid;
  gap: 8px;
}

.launch-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-out);
}

.launch-list li:hover {
  background: var(--color-surface-3);
  border-color: var(--color-border-hover);
  transform: translateX(4px);
}

.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: 'Source Code Pro', ui-monospace, monospace;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(11, 107, 79, 0.08);
}

.launch-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 2px;
}

.launch-list span {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   METRICS
   ═══════════════════════════════════════════════════════════════════ */
.metrics {
  padding: 32px 0;
  background: var(--color-primary-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.metrics::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), transparent 50%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.metric-item {
  display: grid;
  gap: 4px;
  text-align: center;
}

.metric-item strong {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent-light);
}

.metric-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-4xl) 0;
}

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

.section-dark {
  background: var(--color-primary-dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.05), transparent 40%, rgba(52, 211, 153, 0.03));
  pointer-events: none;
}

.section-dark .eyebrow {
  color: var(--color-accent);
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-primary);
  margin-bottom: 20px;
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover .card-icon {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.card-tags span {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════════════════════════════
   WORKFLOW
   ═══════════════════════════════════════════════════════════════════ */
.workflow-track {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.workflow-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), rgba(52, 211, 153, 0.1));
}

.workflow-steps {
  display: grid;
  gap: 20px;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration-normal) var(--ease-out);
}

.workflow-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(8px);
}

.step-marker {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-marker span {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  font-family: 'Source Code Pro', ui-monospace, monospace;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* ═══════════════════════════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════════════════════════ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-normal) var(--ease-out);
}

.case-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.case-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
  color: var(--color-primary);
  margin-bottom: 20px;
}

.case-card h3 {
  margin-bottom: 8px;
}

.case-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}

.license-brief {
  display: grid;
  gap: 10px;
}

.license-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.license-item dt {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}

.license-item dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
}

.about-card-stack {
  display: grid;
  gap: 14px;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  transition: all var(--duration-normal) var(--ease-out);
}

.about-card:hover {
  box-shadow: var(--shadow-standard);
  transform: translateY(-2px);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-3));
  color: var(--color-primary);
  flex-shrink: 0;
}

.about-card h4 {
  margin-bottom: 4px;
}

.about-card p {
  font-size: 14px;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════ */
.cta {
  padding: var(--space-4xl) 0;
}

.cta-card {
  text-align: center;
  padding: 64px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-muted);
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  gap: 24px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 6px;
}

.footer-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--color-heading);
  background: var(--color-surface-2);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   Progressive enhancement: content visible by default,
   JS adds .reveal-init class to enable animations
   ═══════════════════════════════════════════════════════════════════ */
.reveal-init .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-init .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-init .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-init .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-init .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-init .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 72px 0 60px;
  }

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

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

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 56px;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 60px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    flex-direction: column;
    align-items: stretch;
    z-index: 50;
  }

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

  .nav-links a {
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .hero-card {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .metric-item strong {
    font-size: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .license-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .workflow-line {
    display: none;
  }

  .workflow-step {
    padding: 18px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

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