/* ============================================
   DAB-WEB Vitrine — style.css
   Colors: Dark navy base, accent #0074d4
   ============================================ */

:root {
  --bg: #0a0f1c;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --surface: #1e293b;
  --border: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #0074d4;
  --accent-light: #38bdf8;
  --accent-glow: rgba(0, 116, 212, 0.15);
  --gradient: linear-gradient(135deg, #0074d4, #38bdf8);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 116, 212, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(56, 189, 248, 0.06), transparent);
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 116, 212, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 116, 212, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(0, 116, 212, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---- TRUST BAR ---- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.trust__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust__item {
  text-align: center;
}

.trust__item strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust__item span {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust__sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- SOLUTIONS / CARDS ---- */
.solutions {
  padding: 120px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: rgba(0, 116, 212, 0.3);
  background: var(--bg-card-hover);
}

.card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-light);
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card__features {
  list-style: none;
  margin-bottom: 32px;
}

.card__features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.card__price {
  margin-bottom: 20px;
}

.card__price-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card__price-value {
  font-size: 32px;
  font-weight: 700;
}

.card__price-value small {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---- APPROACH ---- */
.approach {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 24, 39, 0.5) 50%, var(--bg) 100%);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.approach__item {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.approach__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.approach__item:hover {
  border-color: rgba(0, 116, 212, 0.3);
  background: rgba(17, 24, 39, 0.5);
}

.approach__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.approach__item h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.approach__item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- CONTACT ---- */
.contact {
  padding: 120px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.contact__inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact__text h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact__text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__info a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
}

.contact__info a:hover { text-decoration: underline; }

.contact__info span {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- FORM ---- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .approach__grid {
    grid-template-columns: 1fr;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav__links.open { right: 0; }
  .nav__toggle { display: flex; }

  .hero { min-height: auto; padding: 140px 0 80px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .trust__inner { gap: 24px; }
  .trust__sep { display: none; }
  .trust__inner { justify-content: space-around; }

  .approach__item { padding: 28px; }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---- ANIMATION STAGGER ---- */
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }
.approach__item:nth-child(2) { transition-delay: 0.1s; }
.approach__item:nth-child(3) { transition-delay: 0.2s; }
.approach__item:nth-child(4) { transition-delay: 0.3s; }
