/* ============================================
   VIGELYS — Global Stylesheet
   Clean, professional, light/minimal design
   ============================================ */

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

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-secondary: #059669;
  --color-secondary-dark: #047857;
  --color-secondary-light: #d1fae5;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --transition: 0.3s ease;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.visible:nth-child(2) { transition-delay: 0.1s; }
.fade-in.visible:nth-child(3) { transition-delay: 0.2s; }
.fade-in.visible:nth-child(4) { transition-delay: 0.25s; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary-dark);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.hero .highlight {
  color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================
   PRODUCT CARDS (Homepage)
   ============================================ */
.products {
  padding: 4rem 0 5rem;
}

.products-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.products-heading h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.products-heading p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

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

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card .icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.product-card .icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.product-card .icon-wrapper.blue {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.product-card .icon-wrapper.green {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
}

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-card .description {
  color: var(--color-text-light);
  font-size: 0.938rem;
  line-height: 1.6;
  flex: 1;
}

.product-card .badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: 50px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  align-self: flex-start;
}

.product-card .card-footer {
  margin-top: 1.5rem;
}

/* ============================================
   FEATURES SECTION (Prospect page)
   ============================================ */
.features {
  padding: 4rem 0 5rem;
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card .feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card .feature-icon.green {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
}

.feature-card .feature-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.feature-card .feature-icon.orange {
  background: #fef3c7;
  color: #d97706;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

/* ============================================
   CUSTOMIZATION SECTION
   ============================================ */
.customization {
  padding: 4rem 0 5rem;
}

.customization-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-light), #ede9fe);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
}

.customization-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.customization-box p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 4rem 0 5rem;
  background: var(--color-bg-alt);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: 4rem 0 5rem;
  text-align: center;
}

.contact h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact a.email-link {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-content {
  padding: 3rem 0 5rem;
}

.privacy-content .container {
  max-width: 780px;
}

.privacy-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.privacy-content .last-updated {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.privacy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.privacy-content p,
.privacy-content li {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.privacy-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.privacy-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

.privacy-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.privacy-content a {
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.site-footer a {
  color: var(--color-text-light);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-links .separator {
  color: var(--color-border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .products {
    padding: 2.5rem 0 3rem;
  }

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

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

  .customization-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .product-card {
    padding: 2rem 1.5rem;
  }
}
