/* public/assets/css/style.css */

:root{
  --bg:#0b0f14;
  --card:#0f1620;
  --text:#eaf1ff;
  --muted:rgba(234,241,255,.72);
  --line:rgba(255,255,255,.10);
  --shadow: 0 14px 50px rgba(0,0,0,.35);
  --r:18px;
  --g1:#22c55e;
  --g2:#16a34a;
  --g3:#0ea5e9;

  --page:#ffffff;
  --pageText:#0f172a;
  --pageMuted:rgba(15,23,42,.72);
  --pageLine:rgba(2,6,23,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--page);
  color: var(--pageText);
}

.bg-grid{
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 1px 1px, rgba(2,6,23,.10) 1px, transparent 0) 0 0/18px 18px;
  opacity:.55;
  z-index:-1;
}

.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.70);
  border-bottom:1px solid var(--pageLine);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand__icon{
  width:34px;height:34px;display:grid;place-items:center;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.25);
  border-radius:12px;
}
.brand__name{font-weight:800}

.nav{
  display:flex;
  gap:10px;
  padding:6px;
  border-radius:999px;
  background:rgba(2,6,23,.05);
  border:1px solid var(--pageLine);
}
.nav__link{
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  color:var(--pageMuted);
  font-weight:600;
  font-size:14px;
}
.nav__link.is-active{
  color:#0b3b1f;
  background:rgba(34,197,94,.18);
  border:1px solid rgba(34,197,94,.25);
}
.theme-toggle{
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.75);
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
}

.hero{padding:42px 0 10px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:center;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.22);
  color:#0b3b1f;
  font-weight:700;
  font-size:14px;
  margin-bottom:14px;
  width:min(620px, 100%);
}
.hero__title{
  font-size: clamp(34px, 4.1vw, 56px);
  line-height:1.02;
  margin:10px 0 12px;
  letter-spacing:-.02em;
}
.grad{
  background: linear-gradient(90deg, var(--g1), var(--g2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero__subtitle{
  margin:0 0 18px;
  color:var(--pageMuted);
  font-size:16px;
  line-height:1.6;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 18px;
}
.chip{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.72);
  font-weight:700;
  font-size:13px;
}
.chip--soft{
  background:rgba(2,6,23,.04);
}

.hero__actions{display:flex;gap:12px;flex-wrap:wrap}

.btn{
  border-radius:999px;
  padding:12px 16px;
  font-weight:800;
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.75);
  cursor:pointer;
  text-decoration:none;
  color:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn--primary{
  background: linear-gradient(90deg, var(--g1), var(--g2));
  border-color: rgba(34,197,94,.35);
  color:#ffffff;
  box-shadow: 0 12px 40px rgba(34,197,94,.28);
}
.btn--ghost{background:rgba(255,255,255,.65)}
.btn--block{width:100%}

.hero__media{
  border-radius:22px;
  background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(2,6,23,.04));
  border:1px solid var(--pageLine);
  padding:14px;
  box-shadow: var(--shadow);
}
.hero__img{
  width:100%;
  height:auto;
  border-radius:18px;
  display:block;
}

.section{padding:54px 0}
.section__head{max-width:760px;margin:0 auto 22px;text-align:center}
.section__kicker{
  font-weight:900;
  color:#0b3b1f;
  margin-bottom:8px;
}
.section__title{
  margin:0 0 10px;
  font-size: clamp(26px, 2.7vw, 38px);
  letter-spacing:-.01em;
}
.section__desc{margin:0;color:var(--pageMuted);line-height:1.7}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:22px;
}
.card{
  border:1px solid var(--pageLine);
  border-radius:18px;
  background:rgba(255,255,255,.75);
  padding:18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}
.card__icon{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.25);
  margin-bottom:10px;
}
.card__title{margin:0 0 6px;font-size:16px}
.card__text{margin:0;color:var(--pageMuted);line-height:1.6;font-size:14px}

.benefit-strip{
  margin-top:18px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.cases{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  margin-top:18px;
}
.case{
  display:flex; gap:12px;
  padding:16px;
  border:1px solid var(--pageLine);
  border-radius:18px;
  background:rgba(255,255,255,.75);
}
.case__badge{
  width:36px;height:36px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
  flex:0 0 auto;
}
.case__title{margin:0 0 6px;font-size:15px}
.case__text{margin:0;color:var(--pageMuted);line-height:1.6;font-size:14px}

.steps{
  margin-top:26px;
  border:1px solid var(--pageLine);
  border-radius:22px;
  background:rgba(255,255,255,.70);
  padding:22px;
}
.steps__title{margin:0 0 6px;font-size:20px}
.steps__desc{margin:0 0 16px;color:var(--pageMuted);line-height:1.6}
.steps__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.step{
  border:1px solid var(--pageLine);
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.75);
}
.step__n{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.25);
  font-weight:900;
  margin-bottom:10px;
}
.step__t{margin:0 0 6px;font-size:15px}
.step__p{margin:0;color:var(--pageMuted);line-height:1.6;font-size:14px}
.steps__cta{margin-top:14px;text-align:center}

.faq{max-width:860px;margin: 0 auto}
.faq__item{
  border:1px solid var(--pageLine);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  margin:10px 0;
  overflow:hidden;
}
.faq__q{
  width:100%;
  text-align:left;
  padding:14px 14px;
  background:transparent;
  border:0;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-weight:900;
}
.faq__a{
  padding:0 14px 14px;
  color:var(--pageMuted);
  line-height:1.6;
  display:none;
}
.faq__item.is-open .faq__a{display:block}

.footer{
  margin-top:40px;
  border-top:1px solid var(--pageLine);
  background: rgba(255,255,255,.60);
  backdrop-filter: blur(10px);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap:18px;
  padding:26px 0;
}
.footer__logo{font-weight:900}
.footer__desc{margin:8px 0 0;color:var(--pageMuted);line-height:1.6}
.footer__title{font-weight:900;margin-bottom:10px}
.footer__link, .footer__text{
  display:block;
  color:var(--pageMuted);
  text-decoration:none;
  margin:6px 0;
}
.footer__link:hover{color:#0b3b1f}
.footer__bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  padding:14px 0 22px;
  color:var(--pageMuted);
  font-size:14px;
}
.footer__legal{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.dot{opacity:.5}

.modal{
  position:fixed; inset:0;
  display:none;
  z-index:100;
}
.modal.is-open{display:block}
.modal__overlay{
  position:absolute; inset:0;
  background:rgba(2,6,23,.55);
}
.modal__card{
  position:relative;
  width:min(520px, calc(100% - 28px));
  margin: 6vh auto;
  background:#fff;
  border-radius:22px;
  border:1px solid var(--pageLine);
  box-shadow: var(--shadow);
  padding:18px;
}
.modal__card--wide{width:min(860px, calc(100% - 28px))}
.modal__close{
  position:absolute; right:12px; top:12px;
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.8);
  border-radius:12px;
  width:36px;height:36px;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.modal__title{margin:6px 0 14px;font-weight:900}

.form{display:grid;gap:12px}
.field span{display:block;font-weight:800;margin-bottom:6px}
.field input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--pageLine);
  outline:none;
}
.form__fineprint{margin:8px 0 0;color:var(--pageMuted);font-size:13px;line-height:1.5}

.cookie{
  position:fixed; left:0; right:0; bottom:0;
  z-index:120;
  display:none;
  padding:12px;
}
.cookie.is-open{display:block}
.cookie__box{
  width:min(1120px, calc(100% - 0px));
  margin:0 auto;
  border-radius:18px;
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.90);
  box-shadow: 0 18px 60px rgba(2,6,23,.18);
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.cookie__text{color:var(--pageMuted);line-height:1.5}
.cookie__text a{color:#0b3b1f;font-weight:900;text-decoration:none}
.cookie__actions{display:flex;gap:10px;flex-wrap:wrap}

.tabs{display:flex;gap:10px;margin: 0 0 12px}
.tab{
  border-radius:999px;
  padding:10px 14px;
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.75);
  font-weight:900;
  cursor:pointer;
}
.tab.is-active{
  background:rgba(34,197,94,.18);
  border-color:rgba(34,197,94,.25);
  color:#0b3b1f;
}

.legal__intro{margin:0 0 14px;color:var(--pageMuted);line-height:1.6}
.prefs{display:grid;gap:10px;margin-bottom:14px}
.pref{
  border:1px solid var(--pageLine);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.75);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pref__name{font-weight:900}
.pref__desc{color:var(--pageMuted);font-size:13px;line-height:1.5;margin-top:4px}
.pref__lock{font-weight:900;color:#0b3b1f}

.switch{position:relative;display:inline-flex;align-items:center}
.switch input{display:none}
.switch__ui{
  width:52px;height:30px;border-radius:999px;
  border:1px solid var(--pageLine);
  background:rgba(2,6,23,.12);
  position:relative;
  transition: .2s ease;
}
.switch__ui::after{
  content:"";
  position:absolute; top:3px; left:3px;
  width:24px;height:24px;border-radius:50%;
  background:#fff;
  border:1px solid var(--pageLine);
  transition: .2s ease;
}
.switch input:checked + .switch__ui{
  background: rgba(34,197,94,.35);
  border-color: rgba(34,197,94,.35);
}
.switch input:checked + .switch__ui::after{left:25px}

.legal__panel{display:none}
.legal__panel.is-active{display:block}
.legal__muted{color:var(--pageMuted);font-size:13px}

.legal__actions{
  display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;
  margin-top:14px;
}

.chat-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:54px;height:54px;
  border-radius:18px;
  border:1px solid var(--pageLine);
  background:#ffffff;
  box-shadow: var(--shadow);
  cursor:pointer;
  font-size:18px;
}
.chat-fab__dot{
  position:absolute;
  top:10px; right:10px;
  width:10px; height:10px;
  border-radius:50%;
  background: var(--g1);
}

.chat-panel{
  position:fixed;
  right:18px;
  bottom:84px;
  width:min(360px, calc(100% - 36px));
  height:520px;
  border-radius:22px;
  border:1px solid var(--pageLine);
  background:#fff;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index:130;
}
.chat-panel.is-open{display:block}
.chat-panel__top{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  border-bottom:1px solid var(--pageLine);
  background:rgba(255,255,255,.85);
}
.chat-panel__title{font-weight:900}
.chat-panel__close{
  width:34px;height:34px;border-radius:12px;
  border:1px solid var(--pageLine);
  background:rgba(255,255,255,.9);
  cursor:pointer;
  font-size:18px;
}
.chat-panel__body{height:calc(100% - 48px)}

@media (max-width: 920px){
  .hero__grid{grid-template-columns: 1fr; }
  .nav{display:none}
  .cards{grid-template-columns: 1fr}
  .cases{grid-template-columns: 1fr}
  .steps__grid{grid-template-columns: 1fr}
  .footer__grid{grid-template-columns: 1fr 1fr}
}
