/* ============================================
   SimplexArc — Design System & Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --purple: #6C3CE1;
  --blue: #4A90E2;
  --emerald: #10B981;
  --cyan: #06B6D4;

  /* Backgrounds */
  --bg-primary: #0A0A0F;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #F0F0F5;
  --text-secondary: #8888A0;
  --text-muted: #55556A;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(74, 144, 226, 0.3);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--emerald), var(--blue), var(--purple));
  --gradient-brand-horizontal: linear-gradient(90deg, var(--emerald), var(--blue), var(--purple));
  --gradient-text: linear-gradient(135deg, var(--emerald), var(--cyan), var(--blue), var(--purple));
  --gradient-glow: radial-gradient(ellipse at center, rgba(74, 144, 226, 0.15) 0%, transparent 70%);

  /* Spacing */
  --section-padding: 80px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-normal);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

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

.nav-logo {
  height: 44px;
  width: auto;
  transition: var(--transition-normal);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  transition: var(--transition-normal);
  cursor: pointer;
}

.nav-cta:hover {
  border-color: var(--border-glow);
  background: var(--bg-surface-hover);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  background: url('simplex-bg.png') center center / cover no-repeat;
}

/* Background glow effects — now serves as dark overlay for the 3D bg image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 10, 15, 0.45) 0%,
    rgba(10, 10, 15, 0.70) 50%,
    rgba(10, 10, 15, 0.90) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.3) 0%,
    transparent 30%,
    transparent 60%,
    rgba(10, 10, 15, 0.85) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 240px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
  filter: drop-shadow(0 0 40px rgba(74, 144, 226, 0.2));
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

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

.hero-subheadline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradient-brand);
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition-normal);
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-normal);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 144, 226, 0.3), 0 0 60px rgba(108, 60, 225, 0.15);
}

.hero-cta:hover::before {
  opacity: 1;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* Animated gradient line */
.hero-divider {
  width: 120px;
  height: 2px;
  margin: 0 auto 32px;
  background: var(--gradient-brand-horizontal);
  border-radius: 2px;
  animation: fadeInUp 0.8s ease 0.15s forwards, shimmer 3s ease-in-out infinite;
  opacity: 0;
}

/* --- Section Shared --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.section-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Services Section --- */
.services {
  background: var(--bg-primary);
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  position: relative;
  padding: 48px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-slow);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand-horizontal);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(74, 144, 226, 0.06);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
  font-size: 24px;
}

.service-card:first-child .service-icon {
  background: linear-gradient(135deg, rgba(108, 60, 225, 0.15), rgba(74, 144, 226, 0.1));
  border-color: rgba(108, 60, 225, 0.2);
}

.service-card:last-child .service-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border-color: rgba(16, 185, 129, 0.2);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --- Vision Section --- */
.vision {
  position: relative;
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(108, 60, 225, 0.06) 0%,
    rgba(74, 144, 226, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.vision-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.vision-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 60, 225, 0.1);
  border: 1px solid rgba(108, 60, 225, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
}

.vision-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.vision-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.vision-cta-text {
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--blue);
  margin-top: 32px;
}

.vision-cta-text a {
  border-bottom: 1px solid rgba(74, 144, 226, 0.3);
  transition: var(--transition-fast);
}

.vision-cta-text a:hover {
  color: var(--emerald);
  border-color: var(--emerald);
}

/* Vision decorative orbs */
.vision-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.vision-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(108, 60, 225, 0.08);
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.vision-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(16, 185, 129, 0.06);
  bottom: 20%;
  right: 10%;
  animation: float 8s ease-in-out 2s infinite;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

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

.footer-cta {
  margin-bottom: 48px;
}

.footer-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.footer-email:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);
}

.footer-email svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 32px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.footer-social a:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: var(--bg-surface);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-legal {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(74, 144, 226, 0.1); }
  50% { box-shadow: 0 0 40px rgba(74, 144, 226, 0.2); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    padding: 100px 20px 48px;
    min-height: auto;
  }

  .hero-logo {
    width: 180px;
    margin-bottom: 24px;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 36px;
  }

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

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

  .nav-logo {
    display: none;
  }

  .nav-cta span {
    display: none;
  }

  .footer {
    padding: 60px 0 32px;
  }
}

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

  .hero-logo {
    width: 150px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-title {
    font-size: 1.2rem;
  }
}
