/* DevLab-inspired style — Hamza Adad */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-elevated: #1a1a1e;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #ffffff;
  --accent-soft: #e4e4e7;
  --hover: #1f1f23;
  --transition: 0.2s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --header-bg: rgba(10, 10, 11, 0.85);
  --header-border: rgba(42, 42, 46, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ——— Site background ——— */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image: url("topography.svg");
  opacity: 0.4;
}

main {
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ——— Header (DevLab-style nav) ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.logo:hover {
  color: var(--text-muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-open .nav {
  display: flex;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1rem;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.nav-open .nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.nav-open .nav-link:hover {
  background: var(--hover);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--hover);
  border-color: var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ——— Hero ——— */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
}

.hero-headline {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-line {
  display: block;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-word.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.hero-outcome {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 42rem;
  margin: 0 0 2.5rem;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Solutions grid (DevLab-style cards) ——— */
.section-solutions {
  padding-top: 5rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color var(--transition), box-shadow var(--transition);
}

.solution-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.solution-card.visible:nth-child(1) { transition-delay: 0ms; }
.solution-card.visible:nth-child(2) { transition-delay: 50ms; }
.solution-card.visible:nth-child(3) { transition-delay: 100ms; }
.solution-card.visible:nth-child(4) { transition-delay: 150ms; }

.solution-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow);
}

.solution-icon {
  display: inline-block;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.solution-icon svg {
  display: block;
}

.solution-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.solution-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tech-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tech-list.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.tech-items {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ——— Trusted by ——— */
.section-trusted {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.trusted-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trusted-pills.visible {
  opacity: 1;
  transform: translateY(0);
}

.pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}

.pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ——— How it works ——— */
.section-how {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.step-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.step-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ——— FAQ ——— */
.section-faq {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.faq-list {
  max-width: 42rem;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-list.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item {
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-q {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.faq-a {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— Contact ——— */
.section-contact {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-subtitle {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-info.visible .contact-reply,
.contact-info.visible .contact-email,
.contact-info.visible .contact-from-email {
  opacity: 1;
  transform: translateY(0);
}

.contact-reply {
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.contact-from-email {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-from-email a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}

.contact-from-email a:hover {
  border-color: var(--text-muted);
}

.contact-email {
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}

.contact-email:hover {
  border-color: var(--text-muted);
}

.contact-form-wrap {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-form-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-social-proof {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.label-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.form-reassurance {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-message {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.form-success {
  color: var(--text-muted);
}

.form-error {
  color: #dc2626;
}

/* ——— AI section (DevLab-style) ——— */
.section-ai {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title--center {
  text-align: center;
}

.ai-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ai-header-icon {
  display: inline-block;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ai-header-icon svg {
  display: block;
}

/* ——— Chat mockup ——— */
.ai-visuals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .ai-visuals {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.ai-chat-wrap {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
}

.ai-chat-bg {
  position: absolute;
  inset: 0;
  background: var(--surface);
  opacity: 0.95;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.02) 8px,
    rgba(255, 255, 255, 0.02) 16px
  );
}

.ai-chat {
  position: relative;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-chat-bubble {
  max-width: 92%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  animation: aiBubbleIn 0.5s ease backwards;
}

.ai-chat-bubble--user {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.ai-chat-bubble--user { animation-delay: 0.2s; }

.ai-chat-bubble--agent {
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.ai-chat-bubble--agent { animation-delay: 0.6s; }

.ai-chat-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
}

.ai-chat-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

@keyframes aiBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ——— Integration diagram ——— */
.ai-diagram-wrap {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ai-diagram {
  position: relative;
  width: 180px;
  height: 180px;
}

.ai-diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  z-index: 2;
  animation: aiDiagramPulse 2s ease-in-out infinite;
}

.ai-diagram-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: aiRingExpand 1.5s ease-out forwards;
}

.ai-diagram-ring--1 { width: 80px; height: 80px; animation-delay: 0.2s; }
.ai-diagram-ring--2 { width: 120px; height: 120px; animation-delay: 0.4s; }
.ai-diagram-ring--3 { width: 160px; height: 160px; animation-delay: 0.6s; }

.ai-diagram-node {
  position: absolute;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  opacity: 0;
  animation: aiNodeIn 0.4s ease forwards;
}

.ai-diagram-node--1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.8s; }
.ai-diagram-node--2 { top: 25%; right: 0; animation-delay: 0.9s; }
.ai-diagram-node--3 { bottom: 25%; right: 0; animation-delay: 1s; }
.ai-diagram-node--4 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.1s; }
.ai-diagram-node--5 { top: 25%; left: 0; animation-delay: 1.2s; }

@keyframes aiDiagramPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

@keyframes aiRingExpand {
  from {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.3);
  }
  to {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes aiNodeIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.ai-diagram-node--1 { transform: translateX(-50%); }
.ai-diagram-node--4 { transform: translateX(-50%); }

/* ——— Copy blocks under visuals ——— */
.ai-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .ai-copy {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-copy-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-copy-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.ai-copy-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— Timeline strip ——— */
.ai-timeline-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ai-timeline-day {
  flex: 1;
  text-align: center;
}

.ai-timeline-time {
  margin-left: auto;
}

/* ——— ROI + Task automation row ——— */
.ai-roi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ai-roi-row {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-roi-block,
.ai-automation-block {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ai-roi-block-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.ai-roi-block-desc {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— ROI chart ——— */
.ai-roi-chart {
  position: relative;
  height: 100px;
  margin: 0 0 0.5rem;
}

.ai-roi-chart-svg {
  width: 100%;
  height: 100%;
  color: #2563eb;
}

.ai-roi-chart-area {
  opacity: 0;
}

.ai-roi-block.visible .ai-roi-chart-area {
  animation: aiChartReveal 1.2s ease-out 0.3s forwards;
}

.ai-roi-chart-line {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}

.ai-roi-block.visible .ai-roi-chart-line {
  animation: aiChartLine 1s ease-out 0.5s forwards;
}

.ai-roi-chart-dot {
  opacity: 0;
}

.ai-roi-block.visible .ai-roi-chart-dot {
  animation: aiChartDot 0.3s ease 1.2s forwards;
}

.ai-roi-chart-value {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  opacity: 0;
}

.ai-roi-block.visible .ai-roi-chart-value {
  animation: aiValueIn 0.4s ease 1.3s forwards;
}

@keyframes aiChartReveal {
  to { opacity: 1; }
}

@keyframes aiChartLine {
  to { stroke-dashoffset: 0; }
}

@keyframes aiChartDot {
  to { opacity: 1; }
}

@keyframes aiValueIn {
  to { opacity: 1; }
}

/* ——— Gantt / task bars ——— */
.ai-gantt {
  margin-bottom: 0.5rem;
}

.ai-gantt-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ai-gantt-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-gantt-bar {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  max-width: 0;
  overflow: hidden;
}

.ai-automation-block.visible .ai-gantt-bar {
  animation: aiGanttBar 0.8s ease forwards;
}

.ai-gantt-bar--1 {
  width: 75%;
  background: #2563eb;
  animation-delay: 0.2s;
}

.ai-gantt-bar--2 {
  width: 65%;
  background: #3b82f6;
  animation-delay: 0.5s;
}

.ai-gantt-bar--3 {
  width: 55%;
  background: #60a5fa;
  animation-delay: 0.8s;
}

@keyframes aiGanttBar {
  from { max-width: 0; opacity: 0.9; }
  to { max-width: 100%; opacity: 1; }
}

/* ——— Realisations ——— */
.section-realisations {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.realisations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .realisations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.realisation-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color var(--transition), box-shadow var(--transition);
}

.realisation-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.realisation-card.visible:nth-child(1) { transition-delay: 0ms; }
.realisation-card.visible:nth-child(2) { transition-delay: 50ms; }
.realisation-card.visible:nth-child(3) { transition-delay: 100ms; }
.realisation-card.visible:nth-child(4) { transition-delay: 150ms; }
.realisation-card.visible:nth-child(5) { transition-delay: 200ms; }
.realisation-card.visible:nth-child(6) { transition-delay: 250ms; }

.realisation-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.realisation-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.realisation-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.realisation-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ——— Security & maintenance ——— */
.section-security {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.security-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color var(--transition), box-shadow var(--transition);
}

.security-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.security-card.visible:nth-child(1) { transition-delay: 0ms; }
.security-card.visible:nth-child(2) { transition-delay: 80ms; }

.security-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.security-card-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.security-card-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— Stats ——— */
.section-stats {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item.visible:nth-child(1) { transition-delay: 0ms; }
.stat-item.visible:nth-child(2) { transition-delay: 80ms; }
.stat-item.visible:nth-child(3) { transition-delay: 160ms; }
.stat-item.visible:nth-child(4) { transition-delay: 240ms; }

.stat-value {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.stat-suffix {
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--text);
}

.stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ——— Testimonials ——— */
.section-testimonials {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.testimonials-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

@media (min-width: 640px) {
  .testimonial {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 900px) {
  .testimonial {
    flex: 0 0 calc(33.333% - 1.35rem);
  }
}

.testimonial:hover {
  border-color: var(--text-muted);
}

.testimonial-text {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.testimonials-dot:hover,
.testimonials-dot.active {
  background: var(--text-muted);
}

.testimonials-dot.active {
  transform: scale(1.2);
}

/* ——— Final CTA ——— */
.section-cta-final {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.cta-final-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  color: var(--text);
  text-align: center;
}

.cta-final-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ——— Footer (DevLab-style) ——— */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 320px;
}

.logo-footer {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-link {
  border-bottom: 1px solid var(--border);
}

.footer-lang a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-lang a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  width: 100%;
}

@media (min-width: 640px) {
  .footer-copy {
    width: auto;
  }
}

/* ——— Sticky CTA ——— */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta[data-visible] {
  transform: translateY(0);
}

.sticky-cta-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ——— Scroll animation (data-animate) ——— */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Landing page overrides (keep for hello.html etc.) ——— */
.landing-page .landing-hero {
  min-height: 85vh;
}

.landing-page .landing-headline {
  max-width: 22ch;
}

.landing-lead {
  max-width: 28rem;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.landing-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
  text-align: center;
}

.landing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .landing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.landing-page .solution-card,
.landing-page .service-card {
  opacity: 1;
  transform: none;
}

.landing-reply {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
}

.landing-cta-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.landing-cta-or {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 8px 0;
  flex-basis: 100%;
  text-align: center;
}

.landing-form-section {
  max-width: 28rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.landing-form-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.landing-url-form input[type="url"],
.landing-url-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
  box-sizing: border-box;
}

.landing-url-form button[type="submit"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 4px;
}

.landing-form-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 8px;
  text-align: center;
}
