/* ===================================
   Ruivo - DESIGN SYSTEM
   =================================== */

/* Import Modern Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* ===================================
   CSS VARIABLES & DESIGN TOKENS
   =================================== */
:root {
  /* Color Palette - Modern & Professional */
  --primary-hue: 210;
  --primary-sat: 85%;
  --primary-light: 45%;

  --primary-900: hsl(var(--primary-hue), var(--primary-sat), 25%);
  --primary-800: hsl(var(--primary-hue), var(--primary-sat), 35%);
  --primary-700: hsl(
    var(--primary-hue),
    var(--primary-sat),
    var(--primary-light)
  );
  --primary-600: hsl(var(--primary-hue), var(--primary-sat), 55%);
  --primary-500: hsl(var(--primary-hue), var(--primary-sat), 65%);
  --primary-400: hsl(var(--primary-hue), 75%, 75%);
  --primary-300: hsl(var(--primary-hue), 70%, 85%);
  --primary-200: hsl(var(--primary-hue), 65%, 92%);
  --primary-100: hsl(var(--primary-hue), 60%, 97%);

  /* Accent Colors */
  --accent-cyan: hsl(185, 85%, 55%);
  --accent-purple: hsl(270, 75%, 65%);
  --accent-orange: hsl(25, 95%, 60%);
  --accent-green: hsl(145, 70%, 55%);

  /* Neutral Colors */
  --neutral-900: hsl(220, 20%, 12%);
  --neutral-800: hsl(220, 18%, 18%);
  --neutral-700: hsl(220, 15%, 25%);
  --neutral-600: hsl(220, 12%, 40%);
  --neutral-500: hsl(220, 10%, 55%);
  --neutral-400: hsl(220, 8%, 70%);
  --neutral-300: hsl(220, 10%, 85%);
  --neutral-200: hsl(220, 12%, 93%);
  --neutral-100: hsl(220, 15%, 98%);

  /* Semantic Colors */
  --success: hsl(145, 70%, 50%);
  --warning: hsl(40, 95%, 55%);
  --error: hsl(0, 85%, 60%);
  --info: hsl(210, 85%, 60%);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Space Grotesk", var(--font-primary);

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===================================
   TYPOGRAPHY UTILITIES
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-600),
    var(--accent-cyan),
    var(--accent-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary {
  color: var(--primary-700);
}

.text-muted {
  color: var(--neutral-600);
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: var(--space-20) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================================
   BUTTON COMPONENTS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border: 2px solid var(--primary-700);
}

.btn-outline:hover {
  background: var(--primary-700);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ===================================
   CARD COMPONENTS
   =================================== */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--neutral-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-gradient {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05),
    rgba(147, 51, 234, 0.05)
  );
  border: 1px solid rgba(59, 130, 246, 0.1);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-700);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-menu {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.navbar-link {
  color: var(--neutral-700);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-700);
  transition: width var(--transition-base);
}

.navbar-link:hover {
  color: var(--primary-700);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  transition: all var(--transition-base);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--neutral-100) 0%,
    var(--primary-100) 100%
  );
  padding-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.2;
  animation: float 15s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--neutral-600);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===================================
   FEATURE CARDS
   =================================== */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-cyan));
  color: white;
  box-shadow: var(--shadow-lg);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--neutral-900);
}

.feature-description {
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-700), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  color: var(--neutral-600);
  font-size: var(--text-lg);
}

/* ===================================
   TEAM CARDS
   =================================== */
.team-card {
  text-align: center;
}

.team-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  object-fit: cover;
  border: 4px solid var(--primary-200);
  box-shadow: var(--shadow-lg);
}

.team-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.team-role {
  color: var(--primary-700);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.team-bio {
  color: var(--neutral-600);
  font-size: var(--text-sm);
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonial-card {
  position: relative;
  padding: var(--space-8);
}

.testimonial-quote {
  font-size: var(--text-6xl);
  color: var(--primary-300);
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-lg);
  color: var(--neutral-700);
  margin-bottom: var(--space-6);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--neutral-900);
}

.testimonial-company {
  color: var(--neutral-600);
  font-size: var(--text-sm);
}

/* ===================================
   CONTACT FORM
   =================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--neutral-800);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: all var(--transition-base);
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--neutral-500);
}

.social-links {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--primary-700);
  color: white;
  transform: translateY(-2px);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .navbar-toggle {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  .section {
    padding: var(--space-12) 0;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-8 {
  margin-top: var(--space-8);
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}
