/* CompliTru Landing Page - Modern Design
   FanBasis-inspired visual refresh
   Responsive: mobile / tablet / desktop
   Enhanced animations, gradients, and interactions
*/

/* Reset */
* { box-sizing: border-box; margin:0; padding:0 }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  color:#0f1724;
  background:#F8FBFF;
  line-height:1.6;
  overflow-x: hidden;
}

:root{
  --brand: #0A66FF;
  --brand-600: #0047A0;
  --brand-hover: #0052CC;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --glass: rgba(255,255,255,0.95);
  --ease: cubic-bezier(.2,.9,.3,1);
  --ease-bounce: cubic-bezier(.68,-0.55,.265,1.55);
  --shadow-sm: 0 2px 8px rgba(10,102,255,0.06);
  --shadow-md: 0 8px 24px rgba(10,102,255,0.08);
  --shadow-lg: 0 20px 60px rgba(10,102,255,0.12);
  --shadow-xl: 0 30px 90px rgba(10,102,255,0.16);
}

/* Utility container */
.container{ max-width:1200px; margin:0 auto; padding:0 1.25rem }

/* Header */
header{
  position:sticky;
  top:0;
  z-index:120;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10,102,255,0.06);
  transition: all 0.3s var(--ease);
}
header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}
nav.container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:1rem 1.25rem;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  transition: transform 0.3s var(--ease);
}
.logo:hover {
  transform: translateY(-2px);
}
.site-logo{
  width:44px;
  height:44px;
  object-fit:contain;
  display:block;
  transition: transform 0.3s var(--ease-bounce);
}
.logo:hover .site-logo {
  transform: rotate(5deg) scale(1.05);
}
.brand{
  font-weight:800;
  color:var(--brand-600);
  font-size:1.05rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand);
  padding: 0.5rem;
}

.nav-links{
  list-style:none;
  display:flex;
  gap:1.5rem;
  align-items:center;
}
.nav-links a{
  color:#0f1724;
  text-decoration:none;
  font-weight:600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a:hover::after {
  width: 100%;
}
.cta-buttons{
  display:flex;
  gap:0.75rem;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand) 0%, #5B8FFF 100%);
  color:#fff;
  padding:12px 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand-hover) 0%, #4A7FEE 100%);
}
.btn.primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn.secondary{
  padding:10px 20px;
  border-radius:999px;
  border:2px solid var(--brand);
  color:var(--brand);
  background:transparent;
  transition: all 0.3s var(--ease);
}
.btn.secondary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero */
.hero{
  padding:6rem 0 4rem;
  display:grid;
  grid-template-columns:1fr 520px;
  gap:3rem;
  align-items:center;
  position:relative;
  min-height: 85vh;
}
.hero::before{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(10,102,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(108,156,255,0.06), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(91,143,255,0.04), transparent 50%);
  z-index:0;
  pointer-events:none;
  animation: hero-glow 8s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hero > .container{ position:relative; z-index:2 }
.hero-image{
  justify-self:center;
  /* z-index:2; */
  align-items: center;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.hero-image img{
  max-width:80%;
  align-items: center;
  /* max-width:540px; */
  border-radius:20px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 40px 100px rgba(10,102,255,0.2);
}

.hero-content h1{
  font-size:3.8rem;
  line-height:1.1;
  margin-bottom:1rem;
  font-weight:800;
  color:#071426;
  background: linear-gradient(135deg, #071426 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-in-up 0.8s var(--ease) backwards;
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content p{
  color:#475569;
  margin-bottom:2rem;
  font-size:1.15rem;
  line-height: 1.7;
  animation: fade-in-up 0.8s var(--ease) 0.2s backwards;
}
.hero-card{
  margin-left: 5%;
}
.hero-actions{
  display:flex;
  gap:1rem;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s var(--ease) 0.4s backwards;
}

/* Pilot demo card */
.pilot-card{
  margin-top:2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius:20px;
  padding:28px;
  max-width:1100px;
  min-height: 60vh ;
  border:1px solid rgba(10,102,255,0.1);
  box-shadow: var(--shadow-xl);
  animation: fade-in-up 0.8s var(--ease) 0.6s backwards;
  transition: all 0.4s var(--ease);
}
.pilot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px rgba(10,102,255,0.15);
}
.pilot-copy strong{
  display:block;
  font-size:1.25rem;
  margin-bottom:6px;
  color: var(--brand-600);
}
.pilot-sub{
  color:var(--muted);
  margin-bottom:16px;
  font-size: 0.95rem;
}
.pilot-body{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.pilot-suggestions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pilot-suggestion{
  background:#fff;
  border:1px solid rgba(10,102,255,0.12);
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size: 0.9rem;
  color:#062b46;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.pilot-suggestion:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pilot-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 40%;
}
.pilot-actions input{
  padding:12px 16px;
  border-radius:12px;
  border:2px solid #e6e9ef;
  min-width:320px;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}
.pilot-actions input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,102,255,0.1);
}
.pilot-actions .btn{
  padding:12px 20px;
}

/* Dot-grid background */
.dot-grid{ position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0.12; background-image: radial-gradient(circle, rgba(6,56,97,0.06) 1px, rgba(0,0,0,0) 1px); background-size:32px 32px; mix-blend-mode:multiply; animation:dots-pulse 6s ease-in-out infinite }
@keyframes dots-pulse{ 0%{ background-size:26px 26px; opacity:0.10 } 50%{ background-size:36px 36px; opacity:0.16 } 100%{ background-size:26px 26px; opacity:0.10 } }

/* Marquee / testimonials */
.marquee-section{
  padding:4rem 0;
  background: linear-gradient(180deg, transparent, rgba(10,102,255,0.02), transparent);
}
.marquee-section h2{
  text-align:center;
  margin-bottom:2rem;
  font-size:1.3rem;
  color:#0b2c49;
  font-weight: 700;
}
.marquee{
  overflow:hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #F8FBFF, transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, #F8FBFF, transparent);
}
.marquee-track{
  display:flex;
  gap:20px;
  align-items:stretch;
  width:max-content;
  animation:marquee-scroll 40s linear infinite;
}
.marquee:hover .marquee-track,
.marquee.paused .marquee-track{
  animation-play-state:paused;
}
.marquee-card{
  background:var(--card-bg);
  border-radius:16px;
  padding:24px;
  min-width:280px;
  box-shadow: var(--shadow-md);
  border:1px solid rgba(10,102,255,0.08);
  transition: all 0.3s var(--ease);
}
.marquee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10,102,255,0.2);
}
.marquee-card h4{
  font-size:1.05rem;
  margin-bottom:8px;
  color:#072039;
  font-weight: 700;
}
.marquee-card p{
  color:#475569;
  font-size:0.95rem;
  line-height: 1.6;
}
@keyframes marquee-scroll{
  0%{ transform:translateX(0) }
  100%{ transform:translateX(-50%) }
}

/* Features Section */
.features-section{
  padding:6rem 0;
  position: relative;
}
.features-section h2{
  text-align:center;
  margin-bottom:4rem;
  font-size:2.5rem;
  color:#071426;
  font-weight: 800;
}
.feature{
  display:flex;
  gap:3rem;
  align-items:center;
  margin-bottom:4rem;
  flex-wrap:wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease);
}
.feature.show {
  opacity: 1;
  transform: translateY(0);
}
.feature.reverse {
  flex-direction: row-reverse;
}
.feature-image{
  flex: 1;
  min-width: 300px;
}
.feature-image img{
  width:100%;
  max-width:550px;
  border-radius:16px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease);
}
.feature-image img:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.feature-text{
  flex: 1;
  min-width: 300px;
}
.feature-text h3{
  color:var(--brand);
  font-size:1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.feature-text p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Benefits Section */
.benefits{
  padding:6rem 0;
  background: linear-gradient(180deg, rgba(10,102,255,0.02), #fff);
  position: relative;
}
.benefits h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #071426;
  font-weight: 800;
}
.benefit-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:2rem;
}
.benefit-card{
  background:var(--card-bg);
  padding:2rem;
  border-radius:16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10,102,255,0.08);
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}
.benefit-card.show {
  opacity: 1;
  transform: translateY(0);
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand);
}
.benefit-card h4 {
  color: var(--brand-600);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.benefit-card p {
  color: #475569;
  line-height: 1.6;
}

/* Demo & Contact Sections */
.demo-call,
.contact{
  padding:5rem 0;
  text-align:center;
}
.demo-call h2,
.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #071426;
  font-weight: 800;
}
.demo-call p,
.contact p {
  font-size: 1.1rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.contact form{
  max-width:600px;
  margin:2rem auto;
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.contact form input,
.contact form textarea {
  padding: 14px 18px;
  border: 2px solid #e6e9ef;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s var(--ease);
}
.contact form input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,102,255,0.1);
}
.contact form button {
  margin-top: 0.5rem;
}
.contact-message {
  padding: 12px 18px;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: left;
}
.contact-message.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.contact-message.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* Footer */
footer{
  background: linear-gradient(135deg, #061426 0%, #0A2540 100%);
  color:#fff;
  padding:3rem 0;
}
.footer-content{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer-links{
  list-style:none;
  display:flex;
  gap:2rem;
  flex-wrap: wrap;
}
.footer-links a{
  color:rgba(255,255,255,0.8);
  text-decoration:none;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width:1100px){
  .hero{
    grid-template-columns:1fr;
    padding:4rem 0 3rem;
    min-height: auto;
  }
  .hero-image{
    order:3;
    text-align:center;
    justify-self: center;
  }
  .hero-content{
    text-align:center;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .feature,
  .feature.reverse {
    flex-direction: column;
  }
  .feature-image,
  .feature-text {
    text-align: center;
  }
}

@media (max-width:900px){
  .nav-toggle {
    display: block;
  }
  .nav-links,
  .cta-buttons {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    gap: 1rem;
  }
  .nav-links.open,
  .cta-buttons.open {
    display: flex;
  }
  .nav-links a::after {
    display: none;
  }
  .pilot-actions{
    flex-direction: column;
    width: 100%;
  }
  .pilot-actions input{
    min-width:unset;
    width:100%;
  }
  .pilot-actions .btn {
    width: 100%;
  }
  .marquee-track{
    gap:12px;
  }
  .marquee-card{
    min-width:220px;
  }
  .benefit-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px){
  .hero-content h1{
    font-size:2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .pilot-card{
    padding:18px;
  }
  .pilot-body {
    flex-direction: column;
    align-items: stretch;
  }
  .site-logo{
    width:38px;
    height:38px;
  }
  .features-section h2,
  .benefits h2,
  .demo-call h2,
  .contact h2 {
    font-size: 1.8rem;
  }
  .feature-text h3 {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}