/* ============================================
   Qeruvo — Soft Creative Flow Interface
   ============================================ */

:root {
  --blue: #60A5FA;
  --mint: #34D399;
  --lavender: #A78BFA;
  --peach: #FB7185;
  --yellow: #FBBF24;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 24px rgba(31, 41, 55, 0.06);
  --shadow-card: 0 8px 32px rgba(31, 41, 55, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-600);
  background: linear-gradient(
    165deg,
    var(--white) 0%,
    #fef9f3 25%,
    #f0f9ff 50%,
    #f5f3ff 75%,
    var(--gray-50) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--gray-800);
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section-head p {
  font-size: 1.0625rem;
}

/* Fade-in animation */
.fade-in {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content.fade-in { animation-delay: 0.1s; opacity: 0; }
.section-head.fade-in { animation-delay: 0.15s; opacity: 0; }
.service-card:nth-child(1) { animation-delay: 0.1s; opacity: 0; }
.service-card:nth-child(2) { animation-delay: 0.15s; opacity: 0; }
.service-card:nth-child(3) { animation-delay: 0.2s; opacity: 0; }
.service-card:nth-child(4) { animation-delay: 0.25s; opacity: 0; }
.service-card:nth-child(5) { animation-delay: 0.3s; opacity: 0; }
.service-card:nth-child(6) { animation-delay: 0.35s; opacity: 0; }
.service-card { animation: fadeUp 0.7s ease forwards; }
.work-card { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.work-card:nth-child(1) { animation-delay: 0.05s; }
.work-card:nth-child(2) { animation-delay: 0.1s; }
.work-card:nth-child(3) { animation-delay: 0.15s; }
.work-card:nth-child(4) { animation-delay: 0.2s; }
.work-card:nth-child(5) { animation-delay: 0.25s; }
.work-card:nth-child(6) { animation-delay: 0.3s; }
.testimonial-card { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid.fade-in { animation-delay: 0.1s; opacity: 0; }
.process-timeline.fade-in { animation-delay: 0.15s; opacity: 0; }
.cta-inner.fade-in { animation-delay: 0.1s; opacity: 0; }
.contact-intro.fade-in { animation-delay: 0.1s; opacity: 0; }
.contact-form.fade-in { animation-delay: 0.2s; opacity: 0; }

/* ============================================
   Floating pill header
   ============================================ */

.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  pointer-events: none;
}

.pill-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.65rem 0.65rem 0.65rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--gray-800);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gray-800);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.2);
}

.btn-primary:hover {
  background: #374151;
  box-shadow: 0 6px 24px rgba(31, 41, 55, 0.25);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-800);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-light {
  background: var(--white);
  color: var(--gray-800);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(240, 249, 255, 0.5) 40%,
    rgba(245, 243, 255, 0.4) 100%
  );
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: var(--blue);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--lavender);
  top: 20%;
  right: 10%;
  animation-delay: -3s;
}

.shape-3 {
  width: 160px;
  height: 160px;
  background: var(--mint);
  bottom: 25%;
  left: 15%;
  animation-delay: -6s;
}

.shape-4 {
  width: 220px;
  height: 220px;
  background: var(--peach);
  bottom: 15%;
  right: 8%;
  animation-delay: -9s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -16px) scale(1.03); }
  66% { transform: translate(-8px, 10px) scale(0.98); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lavender);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

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

/* ============================================
   Services
   ============================================ */

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

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.icon-blue {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue);
}

.icon-mint {
  background: rgba(52, 211, 153, 0.15);
  color: var(--mint);
}

.icon-lavender {
  background: rgba(167, 139, 250, 0.15);
  color: var(--lavender);
}

.icon-peach {
  background: rgba(251, 113, 133, 0.15);
  color: var(--peach);
}

.icon-yellow {
  background: rgba(251, 191, 36, 0.2);
  color: #D97706;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
}

/* ============================================
   Process timeline
   ============================================ */

.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 0.75rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--lavender));
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.35);
}

.process-step:nth-child(3) .step-num {
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

.process-step:nth-child(5) .step-num {
  background: linear-gradient(135deg, var(--lavender), var(--peach));
}

.process-step:nth-child(7) .step-num {
  background: linear-gradient(135deg, var(--peach), var(--yellow));
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
}

.process-connector {
  flex: 0 0 40px;
  height: 2px;
  margin-top: 24px;
  background: linear-gradient(90deg, var(--gray-200), var(--blue), var(--gray-200));
  border-radius: 2px;
  opacity: 0.6;
}

/* ============================================
   Work
   ============================================ */

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

.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-card);
}

.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}

.work-thumb-1 {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(167, 139, 250, 0.25));
}

.work-thumb-2 {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.3), rgba(96, 165, 250, 0.25));
}

.work-thumb-3 {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(251, 113, 133, 0.2));
}

.work-thumb-4 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(251, 113, 133, 0.25));
}

.work-thumb-5 {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(52, 211, 153, 0.3));
}

.work-thumb-6 {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.3), rgba(167, 139, 250, 0.3));
}

.work-info {
  padding: 1.25rem 1.5rem;
}

.work-info h3 {
  margin-bottom: 0.25rem;
}

.work-info span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   Stats
   ============================================ */

.stats {
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid transparent;
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-blue { border-top-color: var(--blue); }
.stat-mint { border-top-color: var(--mint); }
.stat-lavender { border-top-color: var(--lavender); }
.stat-peach { border-top-color: var(--peach); }

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* ============================================
   Testimonials
   ============================================ */

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.testimonial-card footer span {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 5rem 0;
}

.cta-inner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    var(--blue) 0%,
    var(--lavender) 35%,
    var(--peach) 70%,
    var(--yellow) 100%
  );
  color: var(--white);
  box-shadow: 0 16px 48px rgba(96, 165, 250, 0.25);
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-inner > p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

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

/* ============================================
   Contact
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 1rem;
}

.contact-intro p {
  margin-bottom: 1rem;
}

.contact-email a {
  font-weight: 600;
  color: var(--blue);
}

.contact-email a:hover {
  color: var(--lavender);
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--gray-100);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--gray-800);
  grid-row: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  grid-column: 1 / -1;
  grid-row: 1;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  grid-row: 1;
  justify-self: end;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  color: var(--gray-600);
  transition: transform var(--transition), color var(--transition), background var(--transition);
}

.footer-social a:hover {
  transform: translateY(-2px);
  color: var(--blue);
  background: rgba(96, 165, 250, 0.1);
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .services-grid,
  .work-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    flex: 0 0 calc(50% - 1rem);
    max-width: 220px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
  }

  .pill-nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-check:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .services-grid,
  .work-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .process-step {
    flex: 0 0 100%;
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    grid-row: 2;
  }

  .footer-social {
    grid-row: 3;
    justify-self: center;
  }

  .footer-copy {
    grid-row: 4;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .service-card,
  .work-card,
  .testimonial-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .shape {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
