/* =============================================
   VEILLE SERVICE — Main Stylesheet
   Color palette:
     --accent:     #0ea5e9  (sky blue)
     --dark:       #0f172a  (slate 900)
     --mid:        #1e293b  (slate 800)
     --text:       #334155  (slate 700)
     --muted:      #64748b  (slate 500)
     --light:      #f8fafc  (slate 50)
     --border:     #e2e8f0  (slate 200)
   ============================================= */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ==================== LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
}

/* ==================== TYPOGRAPHY ==================== */
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section__desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}
.section__header .section__desc {
  margin-inline: auto;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 1px 3px 0 rgba(14,165,233,.25), 0 0 0 0 rgba(14,165,233,0);
}
.btn--primary:hover {
  background: #0284c7;
  box-shadow: 0 4px 14px 0 rgba(14,165,233,.35);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--full { width: 100%; }

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav--scrolled {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding-block: 0.85rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav__logo span { color: #0ea5e9; }

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }

/* CTA button in nav */
.nav__cta {
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  background: #0ea5e9 !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav__cta:hover {
  background: #0284c7 !important;
  transform: translateY(-1px);
}

/* Hamburger burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 8rem 4rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  z-index: 1;
  transition: color 0.2s;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.hero__scroll:hover { color: rgba(255,255,255,0.7); }

.scroll-dot {
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}
@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background: #fff;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.card {
  padding: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 8px 30px -8px rgba(14,165,233,0.2);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: #0ea5e9;
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.how {
  background: #f8fafc;
}

.how__steps {
  max-width: 750px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f172a;
  color: #0ea5e9;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1e293b;
}

.step__content {
  padding-bottom: 0.5rem;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.step__text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

.step__connector {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, #0ea5e9, #6366f1);
  margin-left: 27px; /* half of step__number width (56/2) - 1px for line width */
  opacity: 0.35;
  border-radius: 2px;
}

/* ==================== ADVANTAGES SECTION ==================== */
.advantages {
  background: #0f172a;
}
.advantages .section__title { color: #f8fafc; }
.advantages .section__desc { color: #94a3b8; }

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  overflow: hidden;
}

.advantage {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: #0f172a;
  transition: background 0.2s;
}
.advantage:hover { background: #1e293b; }

.advantage__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: #0ea5e9;
  margin-top: 2px;
}
.advantage__icon svg { width: 100%; height: 100%; }

.advantage__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.advantage__text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  background: #fff;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

/* Centered single-column variant (no side panel) */
.contact__wrapper--centered {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-inline: auto;
}

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

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
}
.form__label span { color: #ef4444; }

.form__input {
  padding: 0.7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form__input:focus {
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form__input::placeholder { color: #94a3b8; }

.form__textarea {
  resize: vertical;
  min-height: 130px;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0f172a;
  padding-block: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: #475569;
}

.footer__nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.82rem;
  color: #475569;
  transition: color 0.2s;
}
.footer__nav a:hover { color: #0ea5e9; }

/* ==================== FADE-IN ANIMATION ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for sibling fade-ins */
.about__cards .card:nth-child(1) { transition-delay: 0.05s; }
.about__cards .card:nth-child(2) { transition-delay: 0.15s; }
.about__cards .card:nth-child(3) { transition-delay: 0.25s; }

.how__steps .step:nth-child(1) { transition-delay: 0.05s; }
.how__steps .step:nth-child(3) { transition-delay: 0.15s; }
.how__steps .step:nth-child(5) { transition-delay: 0.25s; }
.how__steps .step:nth-child(7) { transition-delay: 0.35s; }

.advantages__grid .advantage:nth-child(even) { transition-delay: 0.1s; }

/* ==================== FAQ SECTION ==================== */
.faq {
  background: #fff;
}

.faq__list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq__item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] {
  border-color: #0ea5e9;
  box-shadow: 0 4px 20px -6px rgba(14, 165, 233, 0.15);
}

.faq__question {
  list-style: none;
  padding: 1.1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: color 0.2s, background 0.2s;
}

/* Remove default marker in all browsers */
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; }

/* Chevron icon via SVG data URI */
.faq__question::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(180deg);
}

.faq__item[open] .faq__question {
  color: #0ea5e9;
  background: #f0f9ff;
}

.faq__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.75;
}

.faq__answer p + p { margin-top: 0.75rem; }

.faq__answer strong {
  color: #334155;
  font-weight: 600;
}

.faq__answer em {
  font-style: italic;
}

/* Inner list inside FAQ answers */
.faq__list-inner {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__list-inner li {
  padding-left: 1.25rem;
  position: relative;
}

.faq__list-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 900px) {
  .about__cards {
    grid-template-columns: 1fr 1fr;
  }
  .about__cards .card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding-block: 4rem; }

  /* Nav: show hamburger, hide links */
  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.98);
    justify-content: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .nav__links--open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__links a {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
  }
  .nav__burger {
    display: flex;
    z-index: 100;
    position: relative;
  }

  .hero__headline { letter-spacing: -0.02em; }

  .about__cards {
    grid-template-columns: 1fr;
  }
  .about__cards .card:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hide-mobile { display: none; }
}
