/* ============================================
   DuoMind — Corporate Website
   Google Ads / Meta Ads / SheerID inspired
   Clean, minimal, purposeful micro-animations
   ============================================ */

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

:root {
  --bg-dark: #0a0a0f;
  --bg-dark-2: #111118;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --text-primary: #0f0f14;
  --text-secondary: #5f5f6e;
  --text-light: #e8e8ed;
  --text-muted: #8b8b9a;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --border: rgba(0,0,0,0.06);
  --border-dark: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-text { color: var(--text-light); }
.nav.scrolled .logo-text { color: var(--text-primary); }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text-light); }
.nav.scrolled .nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav.scrolled .lang-toggle { border-color: var(--border); }

.lang-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.lang-flag { font-size: 1.1rem; }

.nav-mobile-btn { display: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.4);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--text-light);
  background: rgba(255,255,255,0.05);
}

.btn-lg { padding: 18px 48px; font-size: 1.05rem; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.15), transparent),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(16,185,129,0.08), transparent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--green);
  bottom: -50px;
  left: -50px;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.metric { text-align: center; }

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.metric-suffix { font-size: 1.3rem; color: var(--accent); }

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-dark);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 48px; }
  50% { opacity: 0.3; height: 24px; }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-dark .section-desc { color: var(--text-muted); }

/* --- Product Card --- */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.product-visual { position: relative; }

.product-screen {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.screen-header {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.screen-dot:first-child { background: #ff5f57; }
.screen-dot:nth-child(2) { background: #febc2e; }
.screen-dot:nth-child(3) { background: #28c840; }

.screen-body { padding: 24px; }

.screen-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.kpi-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
}

.kpi-spark {
  display: block;
  width: 100%;
  height: 24px;
  margin-top: 8px;
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 12px;
}

.product-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.product-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  list-style: none;
  margin-bottom: 32px;
}

.product-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Pricing --- */
.pricing-compare {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 48px;
}

.compare-scenario {
  text-align: center;
  margin-bottom: 36px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.compare-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.compare-card {
  flex: 1;
  max-width: 360px;
  text-align: center;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.compare-competitor {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.compare-duomind {
  background: #f0fdf4;
  border: 2px solid var(--green);
}

.compare-vs {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
}

.compare-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.compare-method {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.compare-price {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.compare-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.compare-annual {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compare-save {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--green);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 100px;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tier {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}

.tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.tier-highlight {
  border-color: var(--accent);
  border-width: 2px;
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

.tier h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tier-price span {
  font-size: 2rem;
  font-weight: 800;
}

.tier-price small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tier p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* --- CTA Section --- */
.section-cta {
  background: var(--bg-dark);
  text-align: center;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(99,102,241,0.15), transparent);
}

.cta-content { position: relative; }

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-note {
  display: block;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark-2);
  padding: 64px 0 32px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand .logo-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.footer-brand .logo-text {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 8px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 32px;
  text-align: center;
  font-size: 0.82rem;
}

/* --- Animations --- */
.anim-fade, .anim-slide {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade.visible, .anim-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sparkline draw animation */
.kpi-spark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.visible .kpi-spark path {
  stroke-dashoffset: 0;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
  }
  .nav-mobile-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
  }

  .hero-content { padding: 100px 16px 60px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-metrics { gap: 24px; }
  .metric-value { font-size: 1.5rem; }

  .section { padding: 80px 0; }

  .product-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }

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

  .compare-grid { flex-direction: column; }
  .compare-vs { transform: rotate(90deg); }

  .pricing-tiers {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .pricing-tiers { grid-template-columns: 1fr; }
  .hero-metrics { flex-direction: column; gap: 16px; }
  .metric-divider { width: 40px; height: 1px; }
}
