/* Asterios AS - Corporate Website Styles */

/* CSS Variables */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222.2 84% 4.9%);
  --primary: hsl(221.2 83.2% 53.3%);
  --primary-foreground: hsl(210 40% 98%);
  --secondary: hsl(210 40% 96%);
  --secondary-foreground: hsl(222.2 84% 4.9%);
  --muted: hsl(210 40% 96%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);
  --accent: hsl(210 40% 96%);
  --accent-foreground: hsl(222.2 84% 4.9%);
  --border: hsl(214.3 31.8% 91.4%);
  --ring: hsl(221.2 83.2% 53.3%);
  --radius: 0.5rem;
  
  /* Gradient colors */
  --gradient-start: hsl(221.2 83.2% 53.3%);
  --gradient-end: hsl(262.1 83.3% 57.8%);
}

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

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.025em;
}

.logo-icon {
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

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

.header-cta {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background: var(--border);
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  right: -25%;
  width: 100%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, white, transparent 80%);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* Section Styles */
section {
  padding: 6rem 0;
}

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

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.025em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Mission Section */
.mission {
  background: var(--secondary);
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

.mission-text {
  font-size: 1.0625rem;
  color: var(--foreground);
}

.mission-lead {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.mission-text p {
  margin-bottom: 1.25rem;
}

.mission-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--border);
}

.value-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

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

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* Products Section */
.product-showcase {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 3);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.product-card.featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(168, 85, 247, 0.02));
  border-color: rgba(99, 102, 241, 0.2);
}

.product-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-logo {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: calc(var(--radius) * 1.5);
  flex-shrink: 0;
}

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

.product-name h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.product-description {
  font-size: 1.0625rem;
  color: var(--foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.product-features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.product-audience {
  padding: 1.5rem;
  background: var(--muted);
  border-radius: calc(var(--radius) * 1.5);
  margin-bottom: 2rem;
}

.product-audience h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audience-tag {
  padding: 0.375rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-cta {
  width: 100%;
}

.product-vision {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  border-radius: calc(var(--radius) * 3);
}

.vision-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
}

.vision-icon svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.product-vision h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-vision p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Why Section */
.why-section {
  background: var(--secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.why-card {
  background: var(--card);
  padding: 2rem;
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--border);
}

.why-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.comparison-block {
  max-width: 800px;
  margin: 0 auto;
}

.comparison-block h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border);
}

.comparison-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--muted);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.comparison-item blockquote {
  font-style: italic;
  color: var(--foreground);
  line-height: 1.7;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .team-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.team-avatar {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .team-avatar {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }
}

.team-avatar.secondary {
  background: linear-gradient(135deg, hsl(262.1 83.3% 57.8%), hsl(291.1 93.1% 52.9%));
}

.team-avatar span {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.team-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-info p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.team-info p:last-child {
  margin-bottom: 0;
}

/* Technology Section */
.technology {
  background: var(--secondary);
}

.tech-content {
  max-width: 900px;
  margin: 0 auto;
}

.tech-lead {
  text-align: center;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.tech-feature {
  background: var(--card);
  padding: 2rem;
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--border);
  text-align: center;
}

.tech-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: calc(var(--radius) * 1.5);
}

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

.tech-feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tech-feature p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: calc(var(--radius) * 3);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.contact-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  color: white;
  font-weight: 500;
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.footer {
  background: var(--foreground);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

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

.footer-tagline {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }
  
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
  }
  
  .header-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 101;
  }
  
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-divider {
    display: none;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .product-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .product-badge {
    position: static;
    margin-bottom: 1rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .value-card,
  .why-card,
  .tech-feature,
  .team-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .value-card:hover,
  .why-card:hover,
  .tech-feature:hover,
  .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  }
}
