:root {
  --text-primary: #0a0f1c;
  --text-secondary: #3a4256;
  --text-tertiary: #6b7280;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --accent-blue: #4f46e5;
  --accent-blue-dark: #4338ca;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-purple: #7c3aed;
  --accent-solar: #10b981;
  --shadow-sm: 0 1px 3px 1px rgba(10, 15, 28, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(10, 15, 28, 0.1),
    0 2px 4px -1px rgba(10, 15, 28, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 15, 28, 0.1),
    0 4px 6px -2px rgba(10, 15, 28, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 15, 28, 0.1),
    0 10px 10px -5px rgba(10, 15, 28, 0.04);
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
  --font-mono: "Roboto Mono", monospace;
  --max-width: 1440px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 1;
}

.logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: none;
}

/* Navigation */
.main-nav {
  order: 2;
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

nav li {
  height: 100%;
  display: flex;
  align-items: center;
}

nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  transition: var(--transition);
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-blue);
}

nav a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition);
  order: 3;
}

.nav-menu {
  display: flex;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .header-content {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    order: 3;
    flex: 0;
    justify-content: flex-end;
  }

  .brand-container {
    order: 1;
  }

  .menu-toggle:hover {
    background: var(--bg-secondary);
  }

  .menu-toggle:active {
    transform: scale(0.95);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    height: auto;
    width: 100%;
    border-bottom: 1px solid var(--bg-secondary);
    opacity: 0;
    transform: translateX(20px);
  }

  .nav-menu.active li {
    animation: slideInMenu 0.3s ease forwards;
  }

  .nav-menu.active li:nth-child(n + 1):nth-child(-n + 12) {
    animation-delay: calc(0.05s * (var(--i, 1)));
  }

  @keyframes slideInMenu {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-menu a {
    padding: 18px 24px;
    font-size: 1rem;
    width: 100%;
    border-bottom: none;
    border-left: 3px solid transparent;
    gap: 12px;
  }

  .nav-menu a::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(79, 70, 229, 0.08);
    border-left-color: var(--accent-blue);
    color: var(--accent-blue);
  }

  .nav-menu a:hover::before,
  .nav-menu a.active::before {
    opacity: 1;
  }
}

/* Hero Section */
.hero {
  padding: 160px 0;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 50%,
    rgba(79, 70, 229, 0.15) 0%,
    transparent 50%
  );
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  color: white;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 680px;
  margin: 0 auto 40px;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-purple);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  min-width: 180px;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--accent-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Services Section */
.services-section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--accent-blue),
    var(--accent-blue-dark)
  );
  margin: 24px auto;
  border-radius: 2px;
}

.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.nav-pill {
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.1);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.nav-pill:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(79, 70, 229, 0.1);
}

.nav-pill.active {
  background: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.ecosystem-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px;
  animation: fadeInUp 0.4s ease forwards;
}

.ecosystem-grid.active {
  display: grid;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border-top: 4px solid var(--accent-purple);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.2);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.service-card h3 i {
  color: var(--accent-blue);
}

.service-list {
  list-style: none;
  margin-top: 24px;
  padding: 0;
}

.service-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Why Cards Grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  margin-top: 60px;
}

.why-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent-blue);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.why-card h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.25rem;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 25% 50%,
    rgba(124, 58, 237, 0.15) 0%,
    transparent 50%
  );
  z-index: 0;
}

.contact-section .section-header {
  position: relative;
  z-index: 1;
}

.contact-section .section-header h2 {
  color: white;
}

.contact-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-section .hero-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.benefit-list li {
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}

.benefit-list i {
  color: var(--accent-green);
  flex-shrink: 0;
}

.direct-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon i {
  color: #c4b5fd;
}

.info-item div {
  display: flex;
  flex-direction: column;
}

.info-item span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  margin-bottom: 4px;
}

.info-item strong {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Form */
.contact-form-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-xl);
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

.form-group label::after {
  content: "*";
  color: var(--accent-red);
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font-main);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: white;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233a4256' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
}

.primary-btn {
  background: var(--accent-purple);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}

.primary-btn:hover {
  background: var(--accent-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.form-message {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.form-message.success,
.form-message.error {
  display: flex;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

/* Footer */
footer {
  background: var(--text-primary);
  padding: 60px 0;
  margin-top: auto;
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 3000;
  transition: 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Responsive */
@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0;
  }

  .services-section {
    padding: 80px 0;
  }

  .contact-section {
    padding: 80px 0;
  }

  .contact-info-card,
  .contact-form-container {
    padding: 32px;
  }

  .logo-text-sub {
    display: block;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
  }

  .nav-menu {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
