/* ================================
   ZINOU — Agentic Workflows Agency
   ================================ */

:root {
  --bg: #07070d;
  --bg-card: #0c0c15;
  --bg-surface: #111119;
  --bg-elevated: #181823;
  --text: #e8e8ed;
  --text-sec: #6e6e82;
  --text-dim: #3e3e52;
  --accent: #4a6cf7;
  --accent-h: #6b8aff;
  --accent-dim: rgba(74,108,247,0.10);
  --accent-glow: rgba(74,108,247,0.25);
  --border: rgba(255,255,255,0.06);
  --border-h: rgba(255,255,255,0.12);
  --font-h: 'Syne', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --container: 1300px;
  --s-pad: clamp(80px,10vw,140px);
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Grain overlay */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-h); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(56px, 8vw, 120px); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
p { color: var(--text-sec); }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: var(--s-pad) 0; position: relative; }

/* Components */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); padding: 8px 20px; border: 1px solid var(--accent-dim);
  border-radius: var(--r-pill); background: var(--accent-dim); margin-bottom: 32px;
}
.section-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-h); font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: var(--r-pill); transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-h); box-shadow: 0 4px 30px var(--accent-glow); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--border-h); color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ——— NAVBAR ——— */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 12px 0; background: rgba(7,7,13,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-h); font-size: 26px; font-weight: 800; letter-spacing: 4px; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-sec);
  transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { font-size: 14px; padding: 10px 24px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; border-radius: 2px; }

/* ——— HERO ——— */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label { margin-bottom: 24px; }
.hero-title { margin-bottom: 48px; max-width: 900px; }
.hero-title span { color: var(--accent); }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.hero-desc { max-width: 480px; font-size: 17px; line-height: 1.7; }
.hero-images {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px;
  max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px,4vw,40px);
}
.hero-img {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-img:hover img { transform: scale(1.05); }
.hero-img-1 { height: 280px; }
.hero-img-2 { height: 340px; margin-top: -30px; }
.hero-img-3 { height: 260px; margin-top: 20px; }
.hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,7,13,0.4));
}

/* ——— ABOUT ——— */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { font-size: 16px; margin-bottom: 32px; }
.about-img { border-radius: var(--r-lg); overflow: hidden; height: 460px; position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 50%);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.stat { text-align: center; padding: 32px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card); }
.stat-number {
  font-family: var(--font-h); font-size: clamp(40px, 5vw, 56px); font-weight: 800;
  color: var(--text); margin-bottom: 4px; display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat-number .suffix { color: var(--accent); font-size: 0.6em; }
.stat-label { font-size: 14px; color: var(--text-sec); }

/* ——— MARQUEE ——— */
.marquee-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; gap: 60px; animation: marquee 25s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.logo-item {
  font-family: var(--font-h); font-size: 20px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-dim); white-space: nowrap; text-transform: uppercase;
  transition: color 0.3s;
}
.logo-item:hover { color: var(--text-sec); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ——— FEATURED WORKS ——— */
.works-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  height: 380px; cursor: pointer; group: true;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s; }
.work-card:hover img { transform: scale(1.08); filter: brightness(0.6); }
.work-card-overlay {
  position: absolute; inset: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(7,7,13,0.85));
  transition: opacity 0.4s;
}
.work-card-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.work-tag {
  font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.15); color: var(--text); text-transform: uppercase; letter-spacing: 1px;
  backdrop-filter: blur(8px); background: rgba(255,255,255,0.05);
}
.work-card h3 { font-size: 24px; margin-bottom: 8px; color: #fff; }
.work-card p { font-size: 14px; color: rgba(255,255,255,0.6); transform: translateY(10px); opacity: 0; transition: all 0.4s 0.1s; }
.work-card:hover p { transform: translateY(0); opacity: 1; }
.work-card-arrow {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transform: translate(10px,-10px); opacity: 0; transition: all 0.4s;
  font-size: 18px; color: #fff;
}
.work-card:hover .work-card-arrow { transform: translate(0); opacity: 1; }

/* ——— SERVICES ——— */
.services-list { display: flex; flex-direction: column; gap: 2px; }
.service-item {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-card); transition: border-color 0.3s;
}
.service-item:hover, .service-item.active { border-color: var(--border-h); }
.service-header {
  display: flex; align-items: center; gap: 24px; padding: 28px 32px;
  cursor: pointer; transition: background 0.3s;
}
.service-header:hover { background: var(--bg-surface); }
.service-num {
  font-family: var(--font-h); font-size: 14px; font-weight: 700;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-item.active .service-num { background: var(--accent); color: #fff; }
.service-title { font-family: var(--font-h); font-size: 20px; font-weight: 600; flex: 1; }
.service-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
  font-size: 20px; color: var(--text-sec); flex-shrink: 0;
}
.service-item.active .service-toggle { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.service-body {
  max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.service-body-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 0 32px 32px; align-items: start;
}
.service-body p { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  font-size: 13px; padding: 6px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border); color: var(--text-sec);
}
.service-img { border-radius: var(--r); overflow: hidden; height: 220px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* ——— PROCESS ——— */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  padding: 28px 0; border-bottom: 1px solid var(--border); display: grid;
  grid-template-columns: 50px 1fr; gap: 20px; align-items: start;
}
.process-step:first-child { padding-top: 0; }
.process-num {
  font-family: var(--font-h); font-size: 36px; font-weight: 800; color: var(--accent-dim);
  line-height: 1;
}
.process-step.active .process-num { color: var(--accent); }
.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { font-size: 14px; }
.process-img { border-radius: var(--r-lg); overflow: hidden; height: 500px; position: sticky; top: 120px; }
.process-img img { width: 100%; height: 100%; object-fit: cover; }

/* ——— TESTIMONIALS ——— */
.testimonials-slider { overflow: hidden; position: relative; }
.slider-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testimonial-card {
  min-width: 100%; display: grid; grid-template-columns: auto 1fr;
  gap: 48px; align-items: center; padding: 0 20px;
}
.testimonial-avatar {
  width: 280px; height: 340px; border-radius: var(--r-lg); overflow: hidden; flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-content { max-width: 560px; }
.testimonial-quote {
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.7; color: var(--text);
  margin-bottom: 24px; font-style: italic;
}
.testimonial-quote::before { content: '\201C'; font-size: 48px; color: var(--accent); line-height: 0; vertical-align: -12px; margin-right: 4px; }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars svg { width: 18px; height: 18px; fill: #f5a623; }
.testimonial-author { font-family: var(--font-h); font-weight: 700; font-size: 16px; }
.testimonial-role { font-size: 14px; color: var(--text-sec); }
.slider-nav { display: flex; gap: 12px; margin-top: 40px; }
.slider-dot {
  width: 40px; height: 4px; border-radius: 2px; background: var(--border-h);
  cursor: pointer; transition: all 0.3s;
}
.slider-dot.active { background: var(--accent); width: 60px; }

/* ——— FAQ ——— */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.faq-heading h2 { margin-bottom: 16px; }
.faq-heading p { max-width: 400px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; font-family: var(--font-h); font-size: 16px;
  font-weight: 600; transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.3s; font-size: 16px; color: var(--text-sec);
}
.faq-item.active .faq-icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 20px; font-size: 15px; line-height: 1.7; }

/* ——— CTA ——— */
.cta-section {
  text-align: center; padding: var(--s-pad) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 50%, var(--bg) 100%);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section > .container > p { max-width: 480px; margin: 0 auto 40px; font-size: 17px; }
.cta-images {
  overflow: hidden; margin-top: 64px;
}
.cta-row { display: flex; gap: 16px; margin-bottom: 16px; animation: marquee-cta 30s linear infinite; width: max-content; }
.cta-row.reverse { animation-direction: reverse; }
.cta-row-img { width: 260px; height: 160px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.cta-row-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee-cta { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ——— FOOTER ——— */
.footer { padding: 80px 0 0; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 48px; margin-bottom: 64px; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-sec); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 15px; color: var(--text-sec); padding: 6px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; font-size: 16px;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.footer-newsletter { display: flex; gap: 8px; margin-top: 20px; }
.footer-newsletter input {
  flex: 1; padding: 12px 20px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); font-family: var(--font-b); font-size: 14px;
  outline: none; transition: border-color 0.3s;
}
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button { padding: 12px 24px; }

.footer-bottom {
  padding: 24px 0; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim);
}

.footer-marquee { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--border); }
.footer-marquee-track {
  display: flex; gap: 48px; animation: marquee 20s linear infinite; width: max-content;
  font-family: var(--font-h); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px; color: var(--text-dim);
}
.footer-marquee-track span { white-space: nowrap; }
.footer-marquee-track .dot { color: var(--accent); }

/* ——— SCROLL REVEAL ——— */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ——— MOBILE MENU ——— */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(7,7,13,0.97);
  backdrop-filter: blur(20px); z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-h); font-size: 32px; font-weight: 700; color: var(--text); transition: color 0.3s; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute; top: 24px; right: 24px; font-size: 32px; color: var(--text);
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
  .hero-images { grid-template-columns: 1fr 1fr; }
  .hero-img-3 { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 320px; }
  .works-grid { gap: 16px; }
  .work-card { height: 300px; }
  .service-body-inner { grid-template-columns: 1fr; }
  .service-img { height: 180px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-img { position: static; height: 300px; order: -1; }
  .testimonial-card { grid-template-columns: 1fr; }
  .testimonial-avatar { width: 100%; height: 240px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-images { grid-template-columns: 1fr; }
  .hero-img-2, .hero-img-3 { display: none; }
  .hero-img-1 { height: 240px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stat { padding: 24px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card { height: 280px; }
  .service-header { padding: 20px; gap: 16px; }
  .service-body-inner { padding: 0 20px 20px; }
  .process-step { grid-template-columns: 40px 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-row-img { width: 200px; height: 120px; }
}

/* ——— PORTFOLIO SECTION ——— */
.portfolio-track {
  display: flex; gap: 24px; overflow-x: auto; padding-bottom: 16px;
  scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none;
}
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-card {
  min-width: 340px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  scroll-snap-align: start; transition: border-color 0.3s;
  flex-shrink: 0;
}
.portfolio-card:hover { border-color: var(--border-h); }
.portfolio-card-img { height: 220px; overflow: hidden; }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.05); }
.portfolio-card-body { padding: 24px; }
.portfolio-card-logo {
  font-family: var(--font-h); font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.portfolio-card h3 { font-size: 18px; margin-bottom: 8px; }
.portfolio-card p { font-size: 14px; line-height: 1.6; }
