/* ============================================================
   DIGITEVO — Design System
   Aesthetic: Corporate premium, light mode, agence web moderne
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #f8f8f6;
  --bg-white:    #ffffff;
  --bg-dark:     #0d0d0d;
  --bg-card:     #ffffff;
  --border:      rgba(0,0,0,0.08);
  --border-h:    rgba(0,0,0,0.15);
  --text:        #1a1a1a;
  --text-muted:  #6b6b6b;
  --text-light:  #9a9a9a;
  --accent:      #00c896;
  --accent-dark: #00a37a;
  --accent-glow: rgba(0,200,150,0.2);
  --accent-bg:   rgba(0,200,150,0.06);
  --radius:      12px;
  --radius-lg:   20px;
  --font-display:'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --max-w:       1160px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

/* ── Layout ────────────────────────────────────────────────── */
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(248,248,246,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.topbar.scrolled {
  box-shadow: var(--shadow);
  padding: 1rem 3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark svg { width: 18px; height: 18px; }

.brand-accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav a:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.nav a.active { color: var(--text); background: rgba(0,0,0,0.06); }

.nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--bg-dark);
  color: white !important;
  padding: 0.5rem 1.25rem;
}

.nav .nav-cta:hover { background: #333; }

/* ── Mobile menu ───────────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── Typography ────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--bg-dark);
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.button-primary:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.button-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.button-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-h);
}

.button-secondary:hover {
  border-color: var(--text);
  background: rgba(0,0,0,0.02);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
}

.hero-copy > * + * { margin-top: 1.5rem; }

.hero-headline { position: relative; }

.headline-highlight {
  position: relative;
  display: inline;
  color: var(--text);
}

.headline-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--accent);
  opacity: 0.25;
  z-index: -1;
  border-radius: 2px;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Hero Visual ───────────────────────────────────────────── */
.hero-visual {
  position: relative;
}

.hero-card-main {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-card-main::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0,200,150,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.hero-card-main h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-card-main p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-card-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.step-dot.done { background: var(--accent); }
.step-dot.active { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.5); }
.step-dot.pending { background: rgba(255,255,255,0.2); }

.hero-card-badge {
  position: absolute;
  bottom: -1.25rem;
  right: 1.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-bg);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.badge-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Clients band ──────────────────────────────────────────── */
.clients-band {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 3rem;
}

.clients-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.clients-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.clients-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.clients-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.client-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.client-name:hover { color: var(--text); }

/* ── Sections ──────────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 3rem;
}

.section-heading { margin-bottom: 3rem; }
.section-heading p { margin-top: 0.75rem; color: var(--text-muted); max-width: 560px; }

/* ── Grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.process-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.split-grid { grid-template-columns: 1fr 1fr; }
.three-grid { grid-template-columns: repeat(3, 1fr); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Service Cards ─────────────────────────────────────────── */
.service-card { position: relative; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,200,150,0.15);
}

.service-card h3 { margin-bottom: 0.625rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-dark);
  transition: var(--transition);
}

.service-card .card-link:hover { gap: 0.6rem; }

/* ── Process ───────────────────────────────────────────────── */
.process-section {
  background: var(--bg-dark);
  padding: 5rem 0;
}

.process-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 3rem;
}

.process-inner .eyebrow { color: var(--accent); }
.process-inner h2 { color: white; margin-bottom: 3rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: rgba(255,255,255,0.03);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
}

.process-step:hover { background: rgba(255,255,255,0.07); }

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h3 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ── Why us ────────────────────────────────────────────────── */
.why-section {
  background: var(--bg-white);
  padding: 5rem 0;
}

.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-visual {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.why-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.why-stat {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.why-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
}

.why-stat-number span { color: var(--accent); }
.why-stat-label { font-size: 0.78rem; color: var(--text-muted); }

.why-feature {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.why-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.why-feature p { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.why-feature span { font-size: 0.78rem; color: var(--text-muted); }

.why-copy > * + * { margin-top: 1.5rem; }
.why-copy p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-dark);
  padding: 5rem 0;
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-inner .eyebrow { color: var(--accent); }
.cta-inner h2 { color: white; max-width: 520px; margin-top: 0.5rem; }
.cta-inner p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 0.75rem; }

.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end; flex-shrink: 0; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info > * + * { margin-top: 1.5rem; }
.contact-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-icon {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.contact-detail a { transition: var(--transition); }
.contact-detail a:hover { color: var(--text); }

/* ── Form ──────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-light); }
.contact-form select option { background: white; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .button { width: 100%; justify-content: center; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
}

.page-hero h1 { margin: 1rem 0; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 0.625rem;
}

.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .topbar { padding: 1rem 1.5rem; }
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 1rem; }
  .nav .nav-cta { margin-left: 0; text-align: center; justify-content: center; }

  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    gap: 3rem;
  }

  .hero-trust { flex-wrap: wrap; gap: 1rem; }
  .section { padding: 3.5rem 1.5rem; }

  .process-section { padding: 3.5rem 0; }
  .process-inner { padding: 0 1.5rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }

  .why-section { padding: 3.5rem 0; }
  .why-inner { grid-template-columns: 1fr; padding: 0 1.5rem; gap: 2.5rem; }

  .cta-section { padding: 3.5rem 0; }
  .cta-inner { flex-direction: column; padding: 0 1.5rem; text-align: center; }
  .cta-actions { align-items: center; }

  .contact-section { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .split-grid { grid-template-columns: 1fr; }
  .three-grid { grid-template-columns: 1fr; }

  .footer { padding: 2rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }

  .clients-band { padding: 1.25rem 1.5rem; }
  .page-hero { padding: 4rem 1.5rem 2.5rem; }
}
