/* ═══════════════════════════════════════════════════════════════
   EvolvedSense.com — Company Design System
   Same design tokens as BlogVerdict for brand cohesion,
   with additional corporate components.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  --primary:        #6366F1;
  --primary-hover:  #4F46E5;
  --primary-light:  #EEF2FF;
  --primary-50:     #EEF2FF;
  --primary-100:    #E0E7FF;
  --primary-600:    #4F46E5;
  --primary-700:    #4338CA;

  --accent:         #F59E0B;
  --accent-hover:   #D97706;
  --accent-light:   #FFFBEB;

  --success:        #10B981;
  --success-light:  #ECFDF5;
  --danger:         #EF4444;
  --danger-light:   #FEF2F2;

  --text:           #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-light:   #F1F5F9;

  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

/* ── 2. Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

::selection {
  background: var(--primary-light);
  color: var(--primary-700);
}

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.025em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

.text-gradient {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 4. Header ────────────────────────────────────────────────── */
.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  height: var(--header-h);
}

.site-header .navbar { height: var(--header-h); }

.brand-text {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand-accent {
  color: var(--primary);
}

.site-header .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ── 5. Buttons ───────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  border: 2px solid #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── 6. Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 30%, #DDD6FE 60%, #FBCFE8 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Hero visual — floating cards */
.hero-visual {
  position: relative;
  height: 380px;
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-card i {
  font-size: 1.5rem;
  color: var(--primary);
}
.hero-card-1 { top: 10%; left: 10%; animation-delay: 0s; }
.hero-card-2 { top: 35%; right: 5%; animation-delay: 1.5s; }
.hero-card-3 { bottom: 25%; left: 5%; animation-delay: 3s; }
.hero-card-4 { bottom: 5%; right: 15%; animation-delay: 4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── 7. Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-slow);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
  transform: translateY(-2px);
}

/* ── 8. Badges ────────────────────────────────────────────────── */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25em 0.625em;
  border-radius: var(--radius-full);
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary-hover);
}
.badge-accent {
  background: var(--accent-light);
  color: var(--accent-hover);
}
.badge-success {
  background: var(--success-light);
  color: #059669;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── 9. Section Styles ────────────────────────────────────────── */
.section { padding: 5rem 0; }
.bg-surface { background: var(--surface); }

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── 10. Page Header ──────────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}
.page-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.0625rem;
}

/* ── 11. Product Preview (Browser Mockup) ─────────────────────── */
.browser-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }
.browser-url {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.browser-content {
  padding: 1.25rem;
  min-height: 220px;
}
.mock-header {
  height: 16px;
  width: 40%;
  background: var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.mock-hero {
  height: 60px;
  background: linear-gradient(135deg, var(--primary-light), #DDD6FE);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.mock-cards {
  display: flex;
  gap: 0.5rem;
}
.mock-card {
  flex: 1;
  height: 80px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* ── 12. Tech Badge ───────────────────────────────────────────── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.tech-badge i { color: var(--primary); }

/* ── 13. Stack Badge ──────────────────────────────────────────── */
.stack-badge {
  padding: 0.625rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.stack-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── 14. Pillar Cards ─────────────────────────────────────────── */
.pillar-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: 100%;
  transition: all var(--transition-slow);
}
.pillar-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-icon-primary { background: var(--primary-light); color: var(--primary); }
.feature-icon-accent { background: var(--accent-light); color: var(--accent); }
.feature-icon-success { background: var(--success-light); color: var(--success); }

/* ── 15. CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #4F46E5, #7C3AED, #A855F7);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.text-white-muted {
  color: rgba(255,255,255,0.7);
}

/* ── 16. Coming Soon Cards ────────────────────────────────────── */
.coming-soon-card {
  border-style: dashed;
  border-color: var(--border);
}
.coming-soon-card:hover {
  border-style: solid;
}
.coming-soon-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto;
}

/* ── 17. Values Card ──────────────────────────────────────────── */
.values-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.value-item:last-child { border-bottom: none; }
.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── 18. Architecture Card ────────────────────────────────────── */
.arch-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  transition: all var(--transition-slow);
}
.arch-card:hover {
  border-color: var(--primary-100);
  transform: translateY(-2px);
}
.arch-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ── 19. Contact Page ─────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: all var(--transition);
  background: var(--surface);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.faq-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.faq-item {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* ── 20. Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
.site-footer a {
  color: #CBD5E1;
  transition: color var(--transition);
}
.site-footer a:hover { color: #fff; }
.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: #64748B;
}
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* ── 21. Empty State ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon {
  font-size: 3rem;
  color: var(--primary);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.empty-state-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.empty-state-text { color: var(--text-secondary); max-width: 400px; margin: 0 auto 1.5rem; }

/* ── 22. Article Body ─────────────────────────────────────────── */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h3 {
  color: var(--text);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; }

/* ── 23. Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── 24. Utilities ────────────────────────────────────────────── */
.fw-800 { font-weight: 800 !important; }
.ls-tight { letter-spacing: -0.025em !important; }
.max-w-lg { max-width: 720px; }

/* ── 25. Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero { padding: 4rem 0; }
  .hero-title { font-size: 2.5rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  .section { padding: 2.5rem 0; }
  .cta-section { padding: 3rem 0; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
