/* UniqFlow Homepage v2 — Dark Premium SaaS (Mascot Harmonized) */

:root {
  --bg-main: #0F0D0C;
  --bg-subtle: #1A1715;
  --text-primary: #F0EFEA;
  --text-secondary: #B8B4B0;
  --border-light: #3A3532;
  --border-hover: #4A4542;
  --accent-primary: #8B5CF6;
  --accent-text: #A78BFA;
  --accent-hover: #7C3AED;
  --brand-lime: #84CC16;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.8);
  --glow-primary: 0 0 30px -5px rgba(139, 92, 246, 0.4);
  --glow-lime: 0 0 30px -5px rgba(132, 204, 22, 0.2);
}

html {
  overflow-x: clip;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 13, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-modern--primary {
  background: var(--accent-primary);
  color: #ffffff !important;
  box-shadow: var(--glow-primary);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-modern--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 40px -5px rgba(139, 92, 246, 0.6);
}

.btn-modern--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modern--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px;
  position: relative;
}

.section-header {
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.section-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-header__lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 54ch;
}

/* Cards Base */
.tech-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.tech-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md), var(--glow-primary);
  transform: translateY(-2px);
}

.tech-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--brand-lime);
  margin-bottom: 24px;
  box-shadow: inset 0 0 10px rgba(132, 204, 22, 0.1);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 64px 0;
  background: var(--bg-subtle);
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-brand {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .site-header {
    padding: 11px 0;
  }
  .site-header .wrap {
    gap: 10px;
    padding: 0 16px;
  }
  .logo {
    flex: 0 0 auto;
    font-size: 1rem;
  }
  .nav-links {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
  }
  .nav-links a {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .nav-links .btn-modern {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

/* Dynamics & Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover Enhancements */
.tech-card {
  overflow: visible; /* Changed from hidden so badge isn't cut off */
}
.tech-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit; /* Ensure gradient respects border radius */
}
.tech-card:hover::after {
  opacity: 1;
}
