/* VocarAI Design System CSS */

/* CSS Custom Properties */
:root {
  /* Colors */
  --c-bg: #F7FBFC;
  --c-ink: #0E1B25;
  --c-slate: #2B3A45;
  --c-cyan: #00D6E6;
  --c-indigo: #4F46E5;
  --c-success: #22C55E;
  --c-alert: #F59E0B;
  --c-error: #EF4444;
  
  /* Typography Scale (fluid with clamp) */
  --step--1: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.7rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.5rem, 2.2rem + 1.5vw, 3rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  
  /* Border Radius */
  --r-2: 8px;
  --r-3: 16px;
  
  /* Shadows */
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  
  /* Breakpoints */
  --sm: 480px;
  --md: 768px;
  --lg: 1024px;
  --xl: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--c-ink);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--c-cyan);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--r-2);
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-4) 0;
}

h1 {
  font-size: var(--step-4);
  font-weight: 800;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

p {
  margin: 0 0 var(--space-4) 0;
}

a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-indigo);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(247, 251, 252, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 214, 230, 0.1);
  z-index: 100;
  padding: var(--space-3) 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-mark {
  transition: transform 0.3s ease;
  filter: brightness(1);
}

.logo-mark:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.logo-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--c-ink);
}

/* Main Content */
.main {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-6) 0;
  overflow: hidden;
}

.circuit-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M10 50h80M50 10v80M20 20l60 60M80 20L20 80" stroke="%2300D6E6" stroke-width="0.5" fill="none" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
  opacity: 0.08;
  animation: circuit-move 15s linear infinite alternate;
}

@keyframes circuit-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50px); }
}

.hero-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 55% 45%;
  }
}

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

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.hero-logo {
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-logo {
    justify-content: flex-start;
  }
}

.hero-logo-mark {
  transition: transform 0.3s ease;
  filter: brightness(1);
}

.hero-title {
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--c-cyan), var(--c-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--step-1);
  color: var(--c-slate);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    margin: 0;
  }
}

/* Hero Form */
.hero-form {
  background: white;
  padding: var(--space-5);
  border-radius: var(--r-3);
  border: 1px solid #E6F7FA;
  box-shadow: var(--shadow-2);
}

.email-form {
  margin-bottom: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group input {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid #E6F7FA;
  border-radius: var(--r-2);
  font-size: var(--step-0);
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 1px var(--c-cyan);
}

.form-help {
  font-size: var(--step--1);
  color: var(--c-slate);
  margin-top: var(--space-2);
}

.form-message {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--r-2);
  font-weight: 500;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--c-success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--c-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--r-3);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-indigo));
  color: white;
  width: 100%;
}

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

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--c-cyan);
  border: 2px solid var(--c-cyan);
  width: 100%;
}

.btn-ghost:hover {
  background: var(--c-cyan);
  color: white;
}

.btn-icon {
  transition: transform 0.2s ease;
}

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

/* Services Section */
.services {
  padding: var(--space-6) 0;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--c-ink);
}

.services-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

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

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

.service-card {
  background: white;
  padding: var(--space-4);
  border: 1px solid #E6F7FA;
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  transition: all 0.2s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--c-cyan);
}

.service-icon {
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: center;
}

.service-icon svg {
  color: var(--c-cyan);
  width: 48px;
  height: 48px;
}

.service-title {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
  color: var(--c-ink);
}

.service-description {
  color: var(--c-slate);
  font-size: var(--step--1);
}

/* Tech Partners Section */
.tech-partners {
  padding: var(--space-6) 0;
  background: var(--c-bg);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.tech-badge {
  background: white;
  color: var(--c-slate);
  padding: var(--space-2) var(--space-3);
  border-radius: 20px;
  font-size: var(--step--1);
  font-weight: 500;
  border: 1px solid #E6F7FA;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

/* Contact Section */
.contact {
  padding: var(--space-6) 0;
  background: white;
}

.contact-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-item svg {
  color: var(--c-cyan);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--c-ink);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--c-cyan);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid #E6F7FA;
  border-radius: 50%;
  color: var(--c-slate);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--c-ink);
  color: white;
  padding: var(--space-6) 0 var(--space-4) 0;
}

.footer-content {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
}

.footer-logo img {
  transition: transform 0.2s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-tagline {
  color: var(--c-cyan);
  font-size: var(--step--1);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-links {
    align-items: flex-end;
  }
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--c-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--step--1);
}

/* Logo Animation */
.logo-mark,
.hero-logo-mark {
  animation: logo-fade-in 1s ease forwards;
}

@keyframes logo-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Glow Animation */
.hero-logo-mark {
  animation: logo-glow 6s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(0, 214, 230, 0));
  }
  50% {
    filter: brightness(1.1) drop-shadow(0 0 20px rgba(0, 214, 230, 0.3));
  }
}

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .circuit-bg {
    animation: none;
  }
  
  .logo-mark,
  .hero-logo-mark {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
  
  .hero-logo-mark {
    animation: none;
    filter: none;
  }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .hero {
    padding: var(--space-5) 0;
  }
  
  .hero-form {
    padding: var(--space-4);
  }
  
  .services,
  .tech-partners,
  .contact {
    padding: var(--space-5) 0;
  }
  
  .footer {
    padding: var(--space-5) 0 var(--space-3) 0;
  }
}

/* Print Styles */
@media print {
  .header,
  .hero-form,
  .social-links,
  .footer {
    display: none;
  }
  
  .hero {
    padding: 0;
  }
  
  .hero-title {
    color: black;
    -webkit-text-fill-color: black;
  }
  
  .circuit-bg {
    display: none;
  }
}
