/* ============================================
   DIALTO SOFTWARE SL - Design System
   Color: Verde Marino Oscuro #1A252B
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1A252B;
  --primary-light: #243239;
  --primary-lighter: #2E3F48;
  --accent-teal: #2DA5A0;
  --accent-teal-light: #3BBFBA;
  --accent-green: #7DC462;
  --accent-gradient: linear-gradient(135deg, #2DA5A0, #7DC462);
  --accent-gradient-hover: linear-gradient(135deg, #3BBFBA, #8DD472);
  --text-white: #FFFFFF;
  --text-light: #B8C5CC;
  --text-muted: #7A8D96;
  --bg-dark: #0F181C;
  --bg-card: rgba(26, 37, 43, 0.6);
  --bg-glass: rgba(26, 37, 43, 0.35);
  --border-glass: rgba(45, 165, 160, 0.15);
  --shadow-glow: 0 0 30px rgba(45, 165, 160, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 65ch;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-header p {
  margin: 20px auto 0;
  color: var(--text-muted);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(45, 165, 160, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 165, 160, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--accent-teal);
}

.btn-secondary:hover {
  background: rgba(45, 165, 160, 0.1);
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delay for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 24, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.nav-logo .logo-text span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 4px;
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border-radius: 50px;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--accent-gradient);
  color: var(--text-white);
}

.lang-btn:hover:not(.active) {
  color: var(--text-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45, 165, 160, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 196, 98, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Animated Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-teal);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { left: 45%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { left: 65%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5) { left: 80%; animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6) { left: 90%; animation-duration: 13s; animation-delay: 5s; }
.particle:nth-child(7) { left: 35%; animation-duration: 16s; animation-delay: 6s; }
.particle:nth-child(8) { left: 55%; animation-duration: 9s; animation-delay: 2.5s; }

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-teal-light);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-text .badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-text h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-text .hero-desc {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.15rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

/* Hero Visual - SVG Logo Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-logo-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 165, 160, 0.15), transparent 70%);
  border-radius: 50%;
  animation: logo-glow 4s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.hero-logo-container img {
  position: relative;
  z-index: 2;
  width: 280px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(45, 165, 160, 0.2));
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(45, 165, 160, 0.1);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--bg-dark);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
  opacity: 0.3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(45, 165, 160, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  background: rgba(45, 165, 160, 0.1);
  color: var(--accent-teal-light);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: var(--text-white);
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  margin-bottom: 12px;
  transition: color var(--transition);
}

.service-card:hover h3 {
  color: var(--accent-teal-light);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   ABOUT / WHY US SECTION
   ============================================ */
.about {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature-item:hover {
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(45, 165, 160, 0.1);
  color: var(--accent-teal-light);
  transition: all var(--transition);
}

.feature-item:hover .feature-icon {
  background: var(--accent-gradient);
  color: var(--text-white);
}

.feature-text h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-visual-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.about-visual-card:hover::before {
  opacity: 0.3;
}

.about-visual-card .years-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-visual-card .years-label {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
}

/* ============================================
   CRMBLE SECTION (Featured Product)
   ============================================ */
.crmble {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.crmble-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.crmble-text .crmble-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(125, 196, 98, 0.1);
  border: 1px solid rgba(125, 196, 98, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.crmble-text h2 {
  margin-bottom: 20px;
}

.crmble-text > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.crmble-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.crmble-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.crmble-feature:hover {
  border-color: rgba(125, 196, 98, 0.3);
  transform: translateX(8px);
}

.crmble-feature .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(125, 196, 98, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.crmble-feature span {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* CRMble Mockup */
.crmble-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.crmble-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-slow);
  transform: rotateY(-5deg) rotateX(2deg);
}

.crmble-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  padding: 12px 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27CA3F; }

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.mockup-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--border-glass);
  flex: 1;
}

.mockup-bar.w-75 { max-width: 75%; }
.mockup-bar.w-60 { max-width: 60%; }
.mockup-bar.w-50 { max-width: 50%; }
.mockup-bar.w-40 { max-width: 40%; }

.mockup-card {
  padding: 14px;
  background: rgba(45, 165, 160, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  border-radius: 20px;
  font-weight: 600;
  width: fit-content;
}

.mockup-tag.green {
  background: rgba(125, 196, 98, 0.15);
  color: var(--accent-green);
}

.mockup-tag.teal {
  background: rgba(45, 165, 160, 0.15);
  color: var(--accent-teal-light);
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.contact-wrapper {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  backdrop-filter: blur(10px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.contact-wrapper h2 {
  margin-bottom: 16px;
}

.contact-wrapper > p {
  color: var(--text-muted);
  margin: 0 auto 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 24, 28, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(45, 165, 160, 0.1);
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  padding: 40px 0 24px;
  border-top: 1px solid rgba(45, 165, 160, 0.1);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 28px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-white);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-teal-light);
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* <= 991px: Tablet */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-logo-container {
    max-width: 300px;
  }

  .hero-logo-container img {
    width: 200px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .crmble-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .crmble-visual {
    order: -1;
  }

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

/* <= 768px: Mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 24, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right var(--transition-slow);
    padding: 0 40px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero-logo-container {
    max-width: 250px;
  }

  .hero-logo-container img {
    width: 180px;
  }

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

  .contact-wrapper {
    padding: 40px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .crmble-mockup {
    transform: none;
  }
}

/* <= 480px: Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .service-card {
    padding: 28px 20px;
  }

  .feature-item {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-visual-card .years-number {
    font-size: 3.5rem;
  }

  .crmble-feature {
    padding: 10px 12px;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: rgba(45, 165, 160, 0.3);
  color: var(--text-white);
}

/* --- Utility --- */
.hidden-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute;
  left: -9999px;
}
