/*
  Homepage redesign (Modern SaaS)
  This file intentionally overrides existing minified CSS without modifying it.
*/

:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #0b1220;
  --muted: #4b5565;
  --border: rgba(15,23,42,.12);
  --shadow: 0 14px 40px rgba(2, 6, 23, .08);
  --shadow-sm: 0 8px 22px rgba(2, 6, 23, .08);

  --primary: #5b5cff;
  --primary-2: #22c55e;
  --primary-text: #ffffff;

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;
}

html, body{
  background: var(--bg);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  line-height: 1.5;
}

section{padding: 64px 0;}

.container{
  max-width: var(--container);
}

/* Top bar */
.brand-bar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand-bar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:700;}
.brand-name{display:inline-block;letter-spacing:.2px;font-weight:900;font-size:15px}

.brand-icon .eq{display:inline-block;width:4px;border-radius:999px;background: linear-gradient(180deg, var(--primary) 0%, #a855f7 100%);margin-right:2px;}
.brand-icon .eq-1{height:10px;opacity:.75}
.brand-icon .eq-2{height:14px;opacity:.85}
.brand-icon .eq-3{height:18px}
.brand-icon .eq-4{height:14px;opacity:.85}
.brand-icon .eq-5{height:10px;opacity:.75}

/* Ensure logo/text are visible even if legacy CSS sets light colors */
.brand-logo,
.brand-logo:visited{
  color: var(--text) !important;
}

.brand-logo .brand-name{
  color: var(--text) !important;
}

.nav-links{display:flex;align-items:center;gap:18px;}
.nav-links a{color: rgba(11,18,32,.8);font-weight:600;font-size:14px;}
.nav-links a:hover{color: var(--text);}

.nav-right{display:flex;align-items:center;gap:12px;}

/* Keep existing language dropdown working but make it match */
.language-selector .dropbtn{
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(11,18,32,.85);
}
.language-selector .dropdown-content{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: var(--primary-text);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(91,92,255,.18);
}
.btn-download:hover{filter: brightness(.98); transform: translateY(-1px);}

/* Hero */
.hero{
  padding-top: 54px;
  padding-bottom: 24px;
  background:
    radial-gradient(900px 400px at 10% 10%, rgba(91,92,255,.18) 0%, rgba(91,92,255,0) 60%),
    radial-gradient(800px 420px at 92% 0%, rgba(124,58,237,.16) 0%, rgba(124,58,237,0) 60%),
    radial-gradient(800px 520px at 40% 110%, rgba(34,197,94,.12) 0%, rgba(34,197,94,0) 60%);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: start;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  font-weight: 700;
  color: rgba(11,18,32,.75);
  font-size: 13px;
}

.hero-title{
  margin-top: 14px;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subtitle{
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  text-wrap: balance;
}

/* Buttons */
.download-buttons{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,.btn-secondary,.btn-tertiary{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-primary img,.btn-secondary img{width:18px;height:18px;}

.btn-primary{
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: var(--primary-text);
  box-shadow: 0 12px 24px rgba(91,92,255,.18);
}
.btn-primary:hover{transform: translateY(-1px); box-shadow: 0 18px 34px rgba(91,92,255,.22);}

.btn-secondary{
  background: rgba(255,255,255,.75);
  color: rgba(11,18,32,.92);
  border-color: var(--border);
}
.btn-secondary:hover{transform: translateY(-1px); box-shadow: var(--shadow-sm);}

.btn-tertiary{
  background: transparent;
  color: rgba(11,18,32,.85);
  border-color: var(--border);
}
.btn-tertiary:hover{background: rgba(2,6,23,.03);}

/* Proof */
.hero-proof{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.proof-item{
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
}
.proof-item strong{display:block;font-size:14px;letter-spacing:.2px;}
.proof-item span{display:block;color: var(--muted);font-size:13px;margin-top:4px;}

/* Video */
.hero-video{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1220;
  box-shadow: var(--shadow);
}
.hero-video iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Sections */
.section-head{
  text-align: center;
  margin-bottom: 26px;
}

.section-title{
  font-size: 34px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-subtitle{
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  text-wrap: balance;
}

/* Center hero content a bit more on wide screens */
.hero-copy{
  padding-top: 8px;
}

/* Ensure embedded video doesn't overflow in any legacy styles */
.hero-video iframe{max-width: 100%;}

/* Improve focus visibility (accessibility) */
a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(91,92,255,.35);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Features */
.features-section{background: var(--surface);}
.features-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(2,6,23,.02);
}
.feature-card h3{margin-top: 12px; font-size: 16px;}
.feature-card p{margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5;}
.feature-icon-wrap{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,92,255,.14) 0%, rgba(124,58,237,.14) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(91,92,255,.18);
}
.feature-icon-wrap img{width:22px;height:22px;opacity:.95;}

/* Preview */
.preview-section{background: var(--surface-2);}
.preview-split{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: center;
}
.preview-image{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.checklist{margin-top: 14px; padding-left: 0;}
.checklist li{
  list-style: none;
  margin-top: 10px;
  padding-left: 28px;
  position: relative;
  color: rgba(11,18,32,.85);
  font-weight: 600;
}
.checklist li:before{
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
}

.preview-cta{margin-top: 18px; display:flex; gap: 10px; flex-wrap: wrap;}

/* CTA section (reuse existing markup, just restyle) */
.cta-section{
  background: var(--surface);
}
.cta-section .container{
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 20px;
  background:
    radial-gradient(800px 280px at 20% 0%, rgba(91,92,255,.14) 0%, rgba(91,92,255,0) 60%),
    radial-gradient(800px 280px at 85% 0%, rgba(34,197,94,.10) 0%, rgba(34,197,94,0) 60%),
    #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.cta-icon{width: 54px; height: 54px; border-radius: 14px;}
.cta-section h2{margin-top: 12px; font-size: 32px;}
.cta-trial{margin-top: 8px; color: rgba(11,18,32,.85); font-weight: 800;}
.cta-price{margin-top: 8px;}
.cta-price a{color: var(--primary); font-weight: 800;}

.cta-downloads{margin-top: 16px; display:flex; justify-content:center; flex-wrap: wrap; gap: 10px;}
.cta-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.8);
  color: rgba(11,18,32,.9);
  font-weight: 800;
}
.cta-btn img{width:18px;height:18px;}
.cta-btn:hover{transform: translateY(-1px); box-shadow: var(--shadow-sm);}

/* Footer: keep existing, just soften */
.footer{
  background: #0b1220;
  color: rgba(255,255,255,.82);
}
.footer a{color: rgba(255,255,255,.82);}
.footer a:hover{color:#fff;}
.footer .container{padding-top: 40px; padding-bottom: 24px;}
.footer-content{
  display:grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 18px;
}
.footer h4{color: #fff; font-size: 14px; margin-bottom: 10px;}
.footer-brand .brand-name{color:#fff;font-weight:900;}
.footer-bottom{margin-top: 22px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; text-align:center;}

/* Modal: keep functionality, restyle slightly */
.popup_container{
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form_input{border-bottom-color: rgba(15,23,42,.14) !important;}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr;}
  .hero-title{font-size: 44px;}
  .hero-media{order: 2;}
  .features-grid{grid-template-columns: 1fr;}
  .preview-split{grid-template-columns: 1fr;}
  .footer-content{grid-template-columns: 1fr;}
}

@media (max-width: 560px){
  section{padding: 52px 0;}
  .nav-links{display:none;}
  .hero-title{font-size: 38px;}
  .download-buttons .btn-primary,
  .download-buttons .btn-secondary,
  .cta-downloads .cta-btn{width:100%; justify-content:center;}
  .hero-proof{grid-template-columns: 1fr;}
}
