/* assets/css/styles.css */

/* -----------------------------
   Design-Token
------------------------------ */
:root{
  --bg: #0b1220;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --text: #0c1322;
  --muted: #5a6476;
  --line: rgba(12, 19, 34, 0.10);
  --shadow: 0 10px 30px rgba(12, 19, 34, 0.10);
  --shadow-soft: 0 8px 22px rgba(12, 19, 34, 0.08);

  --primary: #4f46e5;
  --primary-2: #6d28d9;
  --ok: #0f766e;
  --danger: #b42318;

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1100px;
  --gap: 20px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --header-h: 72px;
}

/* -----------------------------
   Reset / Base
------------------------------ */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
button, input, textarea{
  font: inherit;
}
:focus-visible{
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link{
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  transform: translateY(-130%);
  transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

.container{
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* -----------------------------
   Header / Navigation
------------------------------ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 2000;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-soft);
}
.brand-text{
  font-size: 0.98rem;
}
.nav{
  display: flex;
  align-items: center;
}
.nav-menu{
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link{
  font-weight: 600;
  color: rgba(12, 19, 34, 0.85);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.nav-link:hover{
  background: rgba(12, 19, 34, 0.06);
  transform: translateY(-1px);
}
.nav-cta{
  background: rgba(79, 70, 229, 0.10);
}
.nav-cta:hover{
  background: rgba(79, 70, 229, 0.16);
}

.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}
.nav-toggle-lines{
  width: 20px;
  height: 14px;
  display: block;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(12, 19, 34, 0.9);
  border-radius: 999px;
}
.nav-toggle-lines::before{ top: 1px; }
.nav-toggle-lines::after{ bottom: 1px; }
.nav-toggle-lines{ background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before{ transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after{ transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after{ transition: transform .2s ease; }

.legal-menu .nav-link{
  padding: 10px 10px;
}

/* Mobile nav */
@media (max-width: 900px){
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu{
    position: absolute;
    right: 16px;
    top: calc(var(--header-h) - 8px);
    flex-direction: column;
    align-items: stretch;
    width: min(92vw, 320px);
    padding: 10px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-menu.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link{ width: 100%; }
}

/* -----------------------------
   Sections
------------------------------ */
.section{
  padding: 76px 0;
}
.section.alt{
  background: var(--surface-2);
}
.section-head{
  max-width: 720px;
  margin-bottom: 26px;
}
.section-head h1,
.section-head h2{
  margin: 0 0 10px 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head h2{ font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.section-head h1{ font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head p{
  margin: 0;
  color: var(--muted);
}

/* -----------------------------
   Hero
------------------------------ */
.hero{
  position: relative;
  padding-top: 88px;
  background: radial-gradient(1200px 600px at 15% 10%, rgba(79,70,229,0.18), transparent 60%),
              radial-gradient(900px 500px at 80% 0%, rgba(109,40,217,0.16), transparent 55%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}
.eyebrow{
  margin: 0 0 10px 0;
  color: rgba(12, 19, 34, 0.72);
  font-weight: 600;
}
.hero-title{
  margin: 0 0 12px 0;
  font-size: clamp(2.0rem, 4.2vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.hero-subtitle{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 14px;
}
.hero-badges{
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: .9rem;
}

.hero-card .glass{
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.hero-card .glass::before{
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(circle at 30% 30%, rgba(79,70,229,0.25), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(109,40,217,0.20), transparent 55%);
  filter: blur(18px);
  opacity: 0.7;
}
.metric{
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.metric-label{ color: var(--muted); font-weight: 600; }
.metric-value{ font-weight: 700; }
.hero-card-footer{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: rgba(12, 19, 34, 0.72);
  font-weight: 600;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-soft);
}

.hero-wave{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface));
}

/* -----------------------------
   Cards / Grids
------------------------------ */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.cards-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 980px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .cards-grid{ grid-template-columns: 1fr; }
}
.card h3{
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.card p{ margin: 0; color: var(--muted); }

.mini{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(12, 19, 34, 0.75);
}
.mini li{ margin: 6px 0; }

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}

.checklist{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.checklist li{
  padding-left: 30px;
  position: relative;
  color: rgba(12, 19, 34, 0.80);
  font-weight: 600;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.10);
  color: var(--ok);
  border: 1px solid rgba(15, 118, 110, 0.20);
}

.steps{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.steps li{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
}
.step-num{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-soft);
}
.steps p{ margin: 6px 0 0; color: var(--muted); }

.feature-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
@media (max-width: 820px){
  .feature-grid{ grid-template-columns: 1fr; }
}
.feature{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.70);
  box-shadow: var(--shadow-soft);
}
.icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.20);
  font-weight: 800;
}
.feature h3{
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}
.feature p{ margin: 0; color: var(--muted); }

.testimonials{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 980px){
  .testimonials{ grid-template-columns: 1fr; }
}
.quote blockquote{
  margin: 0 0 16px 0;
  color: rgba(12, 19, 34, 0.85);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.quote figcaption{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.avatar{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(12, 19, 34, 0.06);
  border: 1px solid var(--line);
  font-weight: 800;
  color: rgba(12, 19, 34, 0.75);
}
.quote strong{ color: rgba(12, 19, 34, 0.92); }
.quote span{ display: block; font-size: .92rem; }

/* -----------------------------
   Accordion
------------------------------ */
.accordion{
  padding: 10px;
}
.acc-item{
  width: 100%;
  text-align: left;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.acc-item:hover{
  background: rgba(12, 19, 34, 0.04);
  transform: translateY(-1px);
}
.acc-title{
  font-weight: 700;
  letter-spacing: -0.01em;
}
.acc-icon{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}
.acc-panel{
  padding: 0 14px 14px 14px;
  color: var(--muted);
  display: none;
}
.acc-panel.is-open{ display: block; }

/* -----------------------------
   Contact / Form
------------------------------ */
.contact-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--gap);
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.form{
  display: grid;
  gap: 14px;
}
.form-row label{
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
}
.req{ color: var(--danger); }
.form-row input,
.form-row textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(12, 19, 34, 0.16);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 0 rgba(12, 19, 34, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row textarea{ resize: vertical; }
.form-row input:focus,
.form-row textarea:focus{
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}
.field-hint{
  margin: 8px 0 0;
  color: rgba(12, 19, 34, 0.55);
  font-size: .92rem;
}
.field-error{
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 600;
  font-size: .92rem;
  min-height: 1.2em;
}
.checkbox-row{
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.checkbox-row input{
  width: 22px;
  height: 22px;
  margin-top: 3px;
}
.form-actions{
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.form-note{
  margin: 0;
  color: rgba(12, 19, 34, 0.55);
  font-size: .92rem;
}
.form-status{
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 118, 110, 0.08);
  color: rgba(15, 118, 110, 0.95);
  font-weight: 700;
  display: none;
}
.form-status.is-visible{ display: block; }

.contact-details{
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.contact-label{
  display: block;
  font-weight: 700;
  color: rgba(12, 19, 34, 0.80);
  margin-bottom: 4px;
}
.mini-card{
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
}

/* -----------------------------
   Buttons / Links
------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(79,70,229,0.22);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(79,70,229,0.28);
}

.btn-ghost{
  background: rgba(255,255,255,0.82);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  color: rgba(12, 19, 34, 0.90);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
}

.linklike{
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
  color: rgba(12, 19, 34, 0.85);
  cursor: pointer;
}
.linklike:hover{
  text-decoration: underline;
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--surface);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-sep{ color: rgba(12, 19, 34, 0.35); }
.footer-links{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a{
  font-weight: 700;
  color: rgba(12, 19, 34, 0.80);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .2s ease, transform .2s ease;
}
.footer-links a:hover{
  background: rgba(12, 19, 34, 0.06);
  transform: translateY(-1px);
}

.muted{ color: var(--muted); }

/* -----------------------------
   Legal pages
------------------------------ */
.legal{
  padding-top: 40px;
}
.legal-doc code{
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(12, 19, 34, 0.06);
  border: 1px solid var(--line);
}
.divider{
  border: none;
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.legal-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* -----------------------------
   Reveal on scroll
------------------------------ */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   Cookie Consent Modal
------------------------------ */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5000;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.cookie-banner h2{
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.cookie-banner p{
  margin: 0 0 12px 0;
  color: var(--muted);
}
.cookie-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}
.cookie-actions .btn{
  padding: 10px 14px;
  font-weight: 800;
}
.cookie-actions .btn-ghost{ box-shadow: none; }
.cookie-actions .btn-primary{ box-shadow: 0 10px 22px rgba(79,70,229,0.20); }

.cookie-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(12, 19, 34, 0.55);
  z-index: 6000;
  display: none;
}
.cookie-backdrop.is-open{ display: block; }

.cookie-modal{
  position: fixed;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7000;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: none;
}
.cookie-modal.is-open{ display: block; }
.cookie-modal header{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal h2{
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.cookie-close{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.cookie-close:hover{ transform: translateY(-1px); }

.cookie-cats{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.cookie-cat{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,0.92);
}
.cookie-cat-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cookie-cat p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
}
.toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.toggle input{
  width: 42px;
  height: 26px;
  appearance: none;
  border-radius: 999px;
  background: rgba(12, 19, 34, 0.16);
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(12, 19, 34, 0.12);
  transition: background .2s ease, border-color .2s ease;
}
.toggle input::after{
  content: "";
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  box-shadow: 0 6px 14px rgba(12, 19, 34, 0.18);
  transition: left .2s ease;
}
.toggle input:checked{
  background: rgba(79, 70, 229, 0.55);
  border-color: rgba(79, 70, 229, 0.45);
}
.toggle input:checked::after{
  left: 19px;
}
.toggle input:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal footer{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.cookie-modal footer .btn{
  padding: 10px 14px;
}

/* Small screens spacing */
@media (max-width: 520px){
  .section{ padding: 64px 0; }
  .card{ padding: 18px; }
}
