/* ===========================================
   DEVOLVO - Plain CSS Design System
   =========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables - Design Tokens */
:root {
  /* Colors (HSL) */
  --background: hsl(222, 47%, 11%);
  --background-light: hsl(222, 47%, 8%);
  --foreground: hsl(210, 40%, 98%);
  
  --card: hsl(217, 33%, 17%);
  --card-hover: hsl(217, 33%, 20%);
  
  --primary: hsl(160, 84%, 39%);
  --primary-hover: hsl(160, 84%, 45%);
  --primary-foreground: hsl(222, 47%, 11%);
  --primary-10: hsla(160, 84%, 39%, 0.1);
  --primary-20: hsla(160, 84%, 39%, 0.2);
  --primary-50: hsla(160, 84%, 39%, 0.5);
  
  --muted-foreground: hsl(215, 20%, 65%);
  --border: hsl(217, 33%, 23%);
  --border-50: hsla(217, 33%, 23%, 0.5);
  
  /* Shadows & Effects */
  --shadow-glow: 0 0 60px hsla(160, 84%, 39%, 0.3);
  --shadow-card: 0 8px 30px hsla(222, 47%, 4%, 0.4);
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-light) 100%);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px hsla(160, 84%, 39%, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--primary-50);
}

/* ===========================================
   HEADER
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsla(222, 47%, 11%, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-50);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-foreground);
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: hsla(222, 47%, 11%, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-50);
  padding: 1rem;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nav-mobile-links .nav-link {
  padding: 0.75rem 0;
}

.nav-mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile-buttons .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-mobile {
    display: none !important;
  }
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
  padding: 8rem 1rem 5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-title-accent {
  display: block;
  color: var(--primary);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
}

.hero-image {
  display: flex;
  justify-content: center;
  opacity: 0;
}

.hero-image img {
  max-width: 28rem;
  width: 100%;
  border-radius: var(--radius-xl);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 48rem;
  margin: 5rem auto 0;
  text-align: center;
}

.stat {
  opacity: 0;
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 10rem 1rem 5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-description {
    margin: 0 0 2.5rem;
  }
  
  .hero-cta {
    justify-content: flex-start;
  }
  
  .hero-image {
    justify-content: flex-end;
  }
}

/* ===========================================
   BENEFITS SECTION
   =========================================== */

.benefits {
  padding: var(--section-padding) 1rem;
  background: hsla(217, 33%, 17%, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  border-color: var(--primary-50);
  box-shadow: var(--shadow-card);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
  background: var(--primary-20);
}

.benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.benefit-description {
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================================
   TESTIMONIALS SECTION
   =========================================== */

.testimonials {
  padding: var(--section-padding) 1rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  color: var(--primary-20);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================================
   HOW IT WORKS SECTION
   =========================================== */

.how-it-works {
  padding: var(--section-padding) 1rem;
  background: hsla(217, 33%, 17%, 0.3);
}

.steps-grid {
  display: grid;
  gap: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: var(--primary-10);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.step-icon-wrapper svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.step-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--muted-foreground);
}

/* Connection line */
.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .step {
    position: relative;
  }
  
  .step-connector {
    display: block;
    position: absolute;
    top: 2rem;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-50), var(--primary-10));
    z-index: 1;
  }
  
  .step:last-child .step-connector {
    display: none;
  }
}

/* ===========================================
   FOR WHOM SECTION
   =========================================== */

.for-whom {
  padding: var(--section-padding) 1rem;
}

.verticals-grid {
  display: grid;
  gap: 1.5rem;
}

.vertical-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.vertical-card:hover {
  border-color: var(--primary-50);
}

.vertical-inner {
  display: flex;
  gap: 1rem;
}

.vertical-icon {
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  background: var(--primary-10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.vertical-card:hover .vertical-icon {
  background: var(--primary-20);
}

.vertical-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.vertical-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.vertical-subtitle {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.vertical-description {
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .verticals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.cta {
  padding: var(--section-padding) 1rem;
  background: linear-gradient(90deg, var(--primary-10), hsla(160, 84%, 39%, 0.05), var(--primary-10));
  text-align: center;
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
  border-top: 1px solid var(--border-50);
  padding: 3rem 1rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border-50);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===========================================
   SVG ICONS (inline)
   =========================================== */

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

