/* === Clarity For Growth — Marketing Site === */

:root {
  --teal: #2a7d7d;
  --teal-light: #e6f2f2;
  --teal-dark: #1e5f5f;
  --navy: #1e293b;
  --navy-light: #334155;
  --text: #2d2a26;
  --muted: #64748b;
  --bg: #faf7f2;
  --surface: #ffffff;
  --border: #e2ddd5;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.65; background: var(--surface); -webkit-font-smoothing: antialiased; }

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

/* === Nav === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,221,213,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--teal); color: white; border-radius: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; }
.logo-img { height: 36px; width: auto; }
.logo-img-sm { height: 24px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { background: var(--teal); color: white !important; padding: 8px 20px; border-radius: 999px; font-weight: 600 !important; transition: background 0.15s !important; }
.nav-cta:hover { background: var(--teal-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* === Hero === */
.hero { position: relative; padding: 140px 0 100px; background: linear-gradient(165deg, #f8fafa 0%, var(--bg) 50%, #f0f9f9 100%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape { position: absolute; opacity: 0.7; }
.hero-shape-1 { top: -60px; right: -40px; width: 300px; }
.hero-shape-2 { bottom: -100px; left: -80px; width: 400px; }
.hero-shape-3 { top: 40%; right: 15%; width: 180px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 6px 16px; background: var(--teal-light); color: var(--teal); border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-heading); font-size: 3rem; line-height: 1.15; color: var(--navy); margin-bottom: 18px; }
.hero-highlight { color: var(--teal); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 28px; line-height: 1.7; }
.hero-sub strong { color: var(--teal); font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: auto; }

/* Hero visual / image placeholder */
.hero-visual { display: flex; justify-content: center; }
.hero-image-placeholder { width: 100%; max-width: 520px; background: white; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(30,41,59,0.1), 0 4px 12px rgba(30,41,59,0.06); padding: 28px; }
.placeholder-card { }
.placeholder-bar { height: 12px; border-radius: 6px; background: #e2ddd5; margin-bottom: 10px; }
.placeholder-bar.w60 { width: 60%; }
.placeholder-bar.w80 { width: 80%; }
.placeholder-bar.w40 { width: 40%; }
.placeholder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.placeholder-cell { height: 60px; border-radius: 8px; background: #f5f1eb; }
.placeholder-cell.accent { background: var(--teal-light); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 999px; font-family: var(--font); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.btn-primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(42,125,125,0.25); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--border); }
.btn-outline:hover { border-color: var(--teal); background: var(--teal-light); }
.btn-white { background: white; color: var(--teal); border-color: white; }
.btn-white:hover { background: var(--teal-light); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* === Trust strip === */
.trust-strip { padding: 40px 0; background: white; }
.trust-label { text-align: center; font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.trust-badges { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* === Section headers === */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--navy); margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; color: var(--muted); line-height: 1.65; }

/* === Features === */
.features { padding: 100px 0; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(30,41,59,0.1); }
.feature-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  border-radius: 24px;
  overflow: hidden;
}
.feature-icon .lottie-slot {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon .lottie-slot svg,
.feature-icon .lottie-slot > div {
  width: 100% !important;
  height: 100% !important;
  max-width: 100px;
  max-height: 100px;
}
/* Fallback SVG icons inside lottie slots */
.feature-icon .lottie-slot > svg:only-child {
  width: 52px !important;
  height: 52px !important;
}
/* Force Lottie renderer SVG to fill the container — some JSONs have
   tight viewboxes that render tiny. Scale them up uniformly. */
.feature-icon .lottie-slot svg[width],
.feature-icon .lottie-slot svg[viewBox] {
  width: 100% !important;
  height: 100% !important;
  transform: scale(1.3);
}
/* Specific overrides for animations that render too small */
#lottieAutofill svg[viewBox],
#lottieAccess svg[viewBox] {
  transform: scale(1.6);
}
#lottieReport svg[viewBox] {
  transform: scale(2.2);
}
.feature-card h3 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--navy); margin-bottom: 12px; }
.feature-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

/* === Showcase (screenshot) === */
.showcase { padding: 80px 0 100px; background: white; }
.showcase-image { perspective: 1200px; }
.browser-frame {
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(30,41,59,0.18), 0 8px 20px rgba(30,41,59,0.08);
  animation: browser-tilt 6s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1200px;
}
@keyframes browser-tilt {
  0%, 100% { transform: rotateY(-2deg) rotateX(1deg); }
  50% { transform: rotateY(2deg) rotateX(-1deg); }
}
.browser-dots { display: flex; gap: 7px; padding: 12px 16px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:last-child { background: #28c840; }
.browser-content { background: white; }

/* === How it works === */
.how-it-works { padding: 100px 0; background: white; }
.steps { max-width: 680px; margin: 0 auto; }
.step { display: flex; gap: 24px; margin-bottom: 36px; align-items: flex-start; }
.step-number { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.step-content h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.step-content p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* === Security === */
.security { padding: 100px 0; background: var(--bg); }
.security-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.security-text h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--navy); margin-bottom: 16px; }
.security-text > p { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }
.security-list { list-style: none; }
.security-list li { margin-bottom: 20px; padding-left: 0; }
.security-list li strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.security-list li span { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.security-visual { display: flex; align-items: center; justify-content: center; }
.lottie-large { width: 100%; max-width: 280px; }
.lottie-large svg { width: 100%; height: auto; }
.hero-image-placeholder .lottie-slot { width: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.hero-image-placeholder .lottie-slot svg { max-width: 100%; max-height: 350px; }

/* === About === */
.about { padding: 100px 0; background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 760px; margin: 0 auto; }
.about-card { text-align: center; padding: 32px 24px; background: var(--bg); border-radius: var(--radius); }
.about-photo { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.about-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.about-role { font-size: 0.85rem; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.about-card p:last-child { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* === CTA === */
.cta { padding: 100px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); color: white; }
.cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 16px; }
.cta-inner > p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 28px; line-height: 1.6; }
.cta-actions { margin-bottom: 16px; }
.cta-small { font-size: 0.82rem; opacity: 0.6; }

/* === Footer === */
.footer { padding: 40px 0; background: var(--navy); color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 600; }
.footer-brand .logo-mark { width: 28px; height: 28px; font-size: 0.7rem; }
.footer-brand .logo-img { height: 28px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-legal { text-align: right; }
.footer-legal p { margin-bottom: 4px; }

/* === Animations === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* === Responsive === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .security-grid { grid-template-columns: 1fr; }
  .security-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.7rem; }
  .trust-badges { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
  .showcase { padding: 40px 0 60px; }
  .browser-frame { animation: none; transform: none; border-radius: 8px; }
  .browser-dots { padding: 8px 12px; gap: 5px; }
  .browser-dots span { width: 8px; height: 8px; }
}
