:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 246, 0.72);
  --text: #1f1a17;
  --muted: #6e6259;
  --line: rgba(64, 49, 39, 0.12);
  --accent: #9f6b3f;
  --accent-dark: #7e522f;
  --green: #587a57;
  --red: #9a5748;
  --gold: #c19a5f;
  --shadow: 0 20px 60px rgba(38, 27, 20, 0.09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top left, #fbf8f2 0%, var(--bg) 58%, #ede4d8 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.bg-noise,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.bg-noise {
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.25) 0.8px, transparent 0.8px),
    radial-gradient(circle at 80% 40%, rgba(0, 0, 0, 0.2) 0.7px, transparent 0.7px),
    radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.18) 0.9px, transparent 0.9px);
  background-size: 32px 32px, 44px 44px, 56px 56px;
}

.bg-grid {
  z-index: -3;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(100, 80, 60, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 80, 60, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

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

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 22px 0 10px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  border-top: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(80,50,30,0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 230, 0.68);
  border-bottom: 1px solid rgba(61, 43, 31, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  font-family: "Abel", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a,
.footer-links a,
.mobile-menu a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-menu a:hover {
  color: var(--text);
}

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

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 6px auto;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(61, 43, 31, 0.06);
}

.mobile-menu.active {
  display: grid;
  gap: 14px;
}

.mobile-cta {
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #b68652);
  color: #fff;
  box-shadow: 0 14px 30px rgba(159, 107, 63, 0.25);
}

.btn-dark {
  background: #241d19;
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.4);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

.hero-grid,
.ai-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.hero h1,
.section-head h2,
.ai-copy h2,
.contact-copy h2,
.future-box h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.section-head h2,
.ai-copy h2,
.contact-copy h2,
.future-box h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-text,
.section-head p,
.ai-copy > p,
.contact-copy p,
.future-box p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.step-card,
.service-card,
.case-card,
.contact-card,
.future-box,
.glass-card {
  border: 1px solid rgba(65, 48, 38, 0.09);
  background: var(--paper);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.dashboard-card,
.terminal-card {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.panel-top,
.panel-footer,
.metric-row,
.insight-item,
.footer-wrap,
.future-points,
.strip-items {
  display: flex;
}

.panel-top,
.panel-footer,
.footer-wrap {
  justify-content: space-between;
  align-items: center;
}

.panel-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-top h3 {
  margin: 0;
  font-size: 1.3rem;
}

.status-pill {
  padding: 8px 12px;
  background: rgba(88, 122, 87, 0.12);
  border: 1px solid rgba(88, 122, 87, 0.16);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.metric-row {
  gap: 12px;
  margin: 22px 0;
}

.metric-box {
  flex: 1;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  padding: 14px;
  border: 1px solid rgba(66, 47, 34, 0.08);
}

.metric-box span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.metric-box strong {
  font-size: 1.4rem;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.insight-item {
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(66, 47, 34, 0.08);
}

.insight-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.dot-red { background: var(--red); }
.dot-gold { background: var(--gold); }
.dot-green { background: var(--green); }

.panel-footer {
  margin-top: 18px;
}

.mini-btn {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  background: rgba(36, 29, 25, 0.92);
  color: white;
  cursor: pointer;
}

.logo-strip {
  border-top: 1px solid rgba(60, 42, 30, 0.06);
}

.strip-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.strip-items {
  flex-wrap: wrap;
  gap: 12px;
}

.strip-items span,
.future-points span {
  padding: 12px 16px;
  border: 1px solid rgba(66, 47, 34, 0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.section-head {
  margin-bottom: 28px;
}

.steps-grid,
.services-grid,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.service-card,
.case-card {
  border-radius: 24px;
  padding: 22px;
}

.step-no {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(159, 107, 63, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card h3,
.service-card h3,
.case-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.step-card p,
.service-card p,
.case-card p,
.service-card li,
.feature-item p {
  color: var(--muted);
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.feature-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(66, 47, 34, 0.08);
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.terminal-head {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.terminal-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(31,26,23,0.22);
}

.terminal-body {
  min-height: 320px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(28, 22, 19, 0.96);
  color: #efe2d2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.92rem;
}

.future-box {
  border-radius: 30px;
  padding: 34px;
}

.future-points {
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  border-radius: 28px;
  padding: 24px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(66, 47, 34, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.72);
  outline: none;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 28px 0 50px;
  border-top: 1px solid rgba(60, 42, 30, 0.08);
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 1080px) {
  .steps-grid,
  .services-grid,
  .cases-grid,
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .ai-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .menu-btn {
    display: inline-block;
  }

  .section {
    padding: 74px 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .section-head h2,
  .ai-copy h2,
  .contact-copy h2,
  .future-box h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }
}

@media (max-width: 640px) {
  .steps-grid,
  .services-grid,
  .cases-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    font-size: 1.5rem;
    letter-spacing: 0.14em;
  }

  .metric-row {
    flex-direction: column;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .future-box,
  .contact-card,
  .dashboard-card,
  .terminal-card {
    padding: 20px;
  }
}