:root {
  --cyan: #00d4ff;
  --cyan-dim: #38bdf8;
  --navy: #0a1628;
  --navy-mid: #132337;
  --navy-light: #1e3a5f;
  --white: #f8fafc;
  --gray: #94a3b8;
  --card: rgba(19, 35, 55, 0.85);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav img.logo { height: 44px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--white); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--cyan); }
.btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  color: var(--navy); font-weight: 600; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.3); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-outline:hover { background: rgba(0,212,255,0.1); color: var(--cyan); }

/* Hero — banner séparé + intro Wow */
.hero {
  position: relative;
  padding-top: 72px;
  background: var(--navy);
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  background: var(--navy);
}
.hero-banner-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  animation: bannerFade 1.2s ease-out;
}
.hero-banner-glow {
  display: none;
}

.hero-intro {
  position: relative;
  margin-top: 0;
  padding: 2.5rem 0 2rem;
  z-index: 2;
}
.hero-intro-card {
  background: linear-gradient(145deg, rgba(19,35,55,0.95), rgba(10,22,40,0.98));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.05),
    0 24px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(0,212,255,0.08);
  animation: cardUp 0.9s ease-out 0.2s both;
  position: relative;
  overflow: hidden;
}
.hero-intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), #0284c7, transparent);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.hero-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-intro h1 span {
  background: linear-gradient(90deg, var(--cyan), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.hero-pills span {
  padding: 0.4rem 1rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--cyan-dim);
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn-glow {
  box-shadow: 0 4px 20px rgba(0,212,255,0.35);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stats .stat {
  text-align: center;
}
.hero-stats .stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.2;
}
.hero-stats .stat span {
  font-size: 0.8rem;
  color: var(--gray);
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0 2rem;
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes bannerFade {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes cardUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@media (max-width: 768px) {
  .hero-intro { padding: 1.5rem 0 1.5rem; }
  .hero-intro-card { padding: 1.75rem 1.5rem; border-radius: 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-stats .stat { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .hero-stats .stat strong { font-size: 1.25rem; }
}

/* Sections */
section { padding: 5rem 0; }
section h2 {
  font-size: 2rem; margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--white), var(--cyan-dim));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { color: var(--gray); margin-bottom: 3rem; max-width: 600px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 16px; padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(30,58,138,0.3));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* Tech stack */
.tech-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px; font-size: 0.85rem; color: var(--cyan-dim);
}

/* CTA */
.cta {
  text-align: center; padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: 24px; border: 1px solid rgba(0,212,255,0.15);
}
.cta h2 { -webkit-text-fill-color: var(--white); margin-bottom: 1rem; }
.cta p { color: var(--gray); margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer {
  padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; color: var(--gray); font-size: 0.9rem;
}
footer .brand { color: var(--cyan); font-weight: 700; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
}
