/* Stone theme (light, cool) — hard-coded from designer defaults */
:root {
  --bg:        oklch(0.96 0.004 250);
  --bg2:       oklch(0.92 0.004 250);
  --bg3:       oklch(0.88 0.004 250);
  --gold:      oklch(0.48 0.12 250);
  --gold-dim:  oklch(0.40 0.10 250);
  --fg:        oklch(0.16 0.010 250);
  --fg2:       oklch(0.38 0.008 250);
  --fg3:       oklch(0.55 0.006 250);
  --line:      oklch(0.82 0.006 250);
  --dot-color: oklch(0.76 0.004 250);
  --nav-bg:    oklch(0.96 0.004 250 / 0.92);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Syne', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* DOT GRID TEXTURE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  transition: background 0.4s, border-color 0.4s;
}
nav.scrolled {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nav-logo span { color: var(--gold); }
.cat-mark { width: 17px; height: 20px; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 max(60px, calc((100% - 1160px) / 2));
  gap: 60px;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, oklch(from var(--gold) l c h / 0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.7; }
}

.hero-left { position: relative; z-index: 10; padding-top: 80px; background: var(--bg); padding-right: 20px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.75;
  max-width: 420px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}
.btn-primary {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost::after { content: '→'; font-size: 14px; }

.canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.hero-right {
  position: relative;
  z-index: 10;
  padding-top: 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.2s 1s forwards;
}

.agent-card {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 2;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 28px;
}
.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 70%);
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.agent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.agent-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.agent-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--fg3);
  font-variant-numeric: tabular-nums;
}

.agent-log { display: flex; flex-direction: column; gap: 10px; }
.log-line {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.log-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  margin-top: 1px;
}
.log-icon.done   { background: oklch(0.55 0.14 145 / 0.20); color: oklch(0.45 0.14 145); }
.log-icon.active { background: oklch(from var(--gold) l c h / 0.2); color: var(--gold); }
.log-icon.wait   { background: var(--line); color: var(--fg3); }
.log-text { color: var(--fg2); }
.log-text strong { color: var(--fg); font-weight: 500; }
.log-text .val { color: var(--gold); font-weight: 600; }

.agent-progress {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prog-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prog-label { font-size: 11px; color: var(--fg3); width: 120px; }
.prog-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.prog-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--gold);
  animation: fillBar 2s 1.5s ease-out forwards;
  width: 0%;
}
@keyframes fillBar { to { width: var(--w, 80%); } }
.prog-fill--100 { --w: 100%; }
.prog-fill--78  { --w: 78%; }
.prog-fill--12  { --w: 12%; }
.prog-val { font-size: 11px; color: var(--fg2); width: 36px; text-align: right; }

.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 1.2s forwards;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  color: var(--fg);
}
.stat-num span { color: var(--gold); }
.stat-desc { font-size: 11px; color: var(--fg3); letter-spacing: 0.06em; text-transform: uppercase; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── SECTION SHARED ─── */
section { position: relative; z-index: 1; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 em { font-style: italic; color: var(--gold); }

/* ─── SERVICES ─── */
#services {
  padding: 120px max(60px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
}
.services-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.services-desc {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.75;
  max-width: 420px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.service-card:hover { background: var(--bg2); }
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--line);
  line-height: 1;
  margin-bottom: 24px;
}
.service-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.2;
}
.service-body {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.7;
}
.service-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg3);
  border: 1px solid var(--line);
  padding: 4px 10px;
  transition: color 0.2s, border-color 0.2s;
}
.service-card:hover .tag { color: var(--gold-dim); border-color: var(--gold-dim); }

/* ─── USE CASES ─── */
#usecases {
  padding: 120px max(60px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
}
.usecases-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
}
.usecase-item:hover {
  border-color: var(--gold-dim);
  background: var(--bg3);
}
.usecase-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: border-color 0.25s;
}
.usecase-item:hover .usecase-icon { border-color: var(--gold-dim); }
.usecase-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}
.usecase-desc {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.65;
}
.usecase-arrow {
  margin-top: auto;
  font-size: 20px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.usecase-item:hover .usecase-arrow { opacity: 1; transform: none; }

/* ─── PROCESS ─── */
#process {
  padding: 120px max(60px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.process-header { text-align: center; margin-bottom: 72px; }
.process-header .section-label { justify-content: center; }
.process-header .section-label::before { display: none; }

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 96px;
  right: calc(33.33% - 40px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold-dim) 50%, transparent 100%);
}
.process-step {
  padding: 0 40px;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20px; bottom: 0;
  width: 1px;
  background: var(--line);
}
.step-num {
  width: 56px; height: 56px;
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 28px;
  position: relative;
  background: var(--bg2);
}
.step-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 14px;
}
.step-body { font-size: 13.5px; color: var(--fg2); line-height: 1.7; }

/* ─── CONTACT ─── */
#contact {
  padding: 140px max(60px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(from var(--gold) l c h / 0.08) 0%, transparent 70%);
  bottom: -200px; left: -100px;
  pointer-events: none;
}
.contact-left h2 { margin-bottom: 20px; }
.contact-left p { font-size: 16px; color: var(--fg2); line-height: 1.75; max-width: 400px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}
.field input,
.field textarea,
.field select {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg2); }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.form-note { font-size: 12px; color: var(--fg3); }
.submit-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  padding: 40px max(60px, calc((100% - 1160px) / 2));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-logo span { color: var(--gold); }
.footer-cat { width: 14px; height: 16px; flex-shrink: 0; }
.footer-copy { font-size: 12px; color: var(--fg2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  color: var(--fg2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; padding: 0 24px; min-height: auto; padding-top: 100px; padding-bottom: 60px; }
  .hero-right { display: none; }
  #services, #usecases, #process, #contact { padding: 72px 24px; }
  .services-top, .usecases-top { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { display: none; }
  .process-steps::before { display: none; }
  #contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .hero-stats { gap: 28px; }
}
