/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f2ec;
  color: #14110f;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::selection { background: #f0491f; color: #fff; }

a { color: inherit; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shared ---------- */
.section-inner { max-width: 1000px; margin: 0 auto; }
#demos .section-inner,
#case-studies .section-inner { max-width: 1100px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0491f;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0491f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #c73a15; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #4a453d;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: #f0491f; color: #f0491f; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: #14110f;
  border-bottom: 1px solid #2a2621;
}

.logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.accent { color: #f0491f; }

.nav-links {
  display: flex;
  gap: clamp(12px, 2.5vw, 32px);
  flex-wrap: wrap;
}

.nav-links a {
  color: #cfc9c0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: #f0491f; }

.menu-toggle-input { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #4a453d;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

.nav-toggle .icon-close { display: none; }
#menu-toggle:checked ~ .nav-toggle .icon-open { display: none; }
#menu-toggle:checked ~ .nav-toggle .icon-close { display: flex; }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #14110f;
  border-bottom: 1px solid #2a2621;
  padding: 8px clamp(20px, 5vw, 64px) 20px;
  gap: 2px;
}

.mobile-menu a {
  padding: 14px 0;
  color: #cfc9c0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #2a2621;
}
.mobile-menu a:last-child { border-bottom: none; }

#menu-toggle:checked ~ .mobile-menu { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background: #14110f;
  color: #fff;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 110px);
}

.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}

.badge {
  border: 1px solid #4a453d;
  color: #cfc9c0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 7.5vw, 108px);
  line-height: 0.95;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  animation: fadeUp 0.7s ease 0.08s both;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #cfc9c0;
  margin: 18px 0 24px;
  animation: fadeUp 0.7s ease 0.16s both;
}

.hero-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: #a8a199;
  max-width: 560px;
  margin: 0 0 44px;
  animation: fadeUp 0.7s ease 0.24s both;
}

.stats-row {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  border-top: 1px solid #2a2621;
  padding-top: 32px;
  animation: fadeUp 0.7s ease 0.32s both;
}

.stat-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: #8b8479;
  margin-top: 4px;
  max-width: 140px;
}

.hero-image-wrap { animation: fadeUp 0.7s ease 0.2s both; }

.hero-image-frame {
  position: relative;
  border: 1px solid #3a352e;
  padding: 10px;
  border-radius: 4px;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 2px;
}

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

/* ---------- Bio ---------- */
.bio {
  background: #f5f2ec;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.bio-inner { max-width: 1000px; }

.bio-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  color: #14110f;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.signature {
  font-family: 'Archivo', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: #14110f;
}

/* ---------- Resume ---------- */
.resume {
  background: #efeae1;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.resume-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0;
  color: #14110f;
}

.resume-date {
  font-size: 15px;
  color: #837c72;
  font-weight: 600;
  margin: 8px 0 0;
}

.resume-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resume-list li {
  display: flex;
  gap: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #33302a;
}

.dash { color: #f0491f; font-weight: 700; flex-shrink: 0; }

.expertise {
  border-top: 1px solid #ddd5c7;
  padding-top: 28px;
}

.expertise-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #837c72;
  margin-bottom: 14px;
}

.tags { display: flex; gap: 10px; flex-wrap: wrap; }

.tag {
  background: #14110f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
}

.resume-cta {
  flex-shrink: 0;
  margin-top: 50px;
}

/* ---------- Demos ---------- */
.demos {
  background: #14110f;
  color: #fff;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.demos-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #a8a199;
  margin: 0 0 28px;
}

.demos-cta { margin-bottom: 52px; }

.pipeline-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8479;
  margin-bottom: 20px;
}

.pipeline-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.pipeline-step {
  flex: 1;
  min-width: 110px;
  background: #1e1a16;
  border: 1px solid #2a2621;
  border-radius: 10px;
  padding: 20px 16px;
}

.pipeline-step.step-backend { flex: 1.3; min-width: 150px; }
.pipeline-step.step-retrieval { flex: 1.2; min-width: 130px; }

.pipeline-tag {
  font-size: 11px;
  font-weight: 700;
  color: #f0491f;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pipeline-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

/* ---------- Case studies ---------- */
.case-studies {
  background: #f5f2ec;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
}

.case-desc {
  font-size: 17px;
  color: #6b6660;
  margin: 0 0 36px;
  max-width: 620px;
}

.case-image-frame {
  border: 1px solid #ddd5c7;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 40px;
}

.case-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.case-card {
  background: #fff;
  border: 1px solid #e6dfd2;
  border-radius: 10px;
  padding: 26px;
}

.case-card-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #14110f;
  margin-bottom: 10px;
}

.case-card-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #6b6660;
  margin: 0;
}
.case-card-text + .case-card-text { margin-top: 10px; }

/* ---------- Contact ---------- */
.contact {
  background: #14110f;
  color: #fff;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 64px) 48px;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  margin: 0 0 18px;
  line-height: 1.05;
}

.contact-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #a8a199;
  margin: 0 0 44px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links .btn-primary,
.contact-links .btn-outline {
  font-size: 15px;
  padding: 16px 30px;
}

.footer {
  max-width: 1100px;
  margin: 90px auto 0;
  padding-top: 24px;
  border-top: 1px solid #2a2621;
  text-align: center;
  font-size: 13px;
  color: #6b6660;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex !important; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-image-wrap { max-width: none; margin: 0; }
  .pipeline-row { flex-direction: column !important; }
  .pipeline-step { width: 100% !important; }
  .resume-header { flex-direction: column !important; align-items: flex-start !important; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 480px) {
  .stats-row { flex-direction: column !important; gap: 20px !important; }
  .resume-cta { width: 100%; justify-content: center !important; }
}

.demo-block + .demo-block {
  border-top: 1px solid #2a2621;
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(48px, 7vw, 88px);
}

.workflow-image-frame {
  border: 1px solid #2a2621;
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 12px;
  background: #1e1a16;
}

.workflow-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.workflow-caption {
  font-size: 13px;
  color: #8b8479;
  margin: 0 0 28px;
}

/* Chat screenshot (RAG Chatbot demo) — narrower than the workflow diagrams since it's portrait, not landscape */
.chat-image-frame {
  border: 1px solid #2a2621;
  border-radius: 4px;
  padding: 8px;
  background: #1e1a16;
  max-width: 300px;
  margin: 0 0 28px;
}

.chat-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
