/* ============================================================
   WRITER — solutions/marketing  (static clone)
   ============================================================ */

:root{
  --pink:      #DABFC0;
  --purple:    #5551FF;
  --dark:      #1C1B1E;
  --black:     #000000;
  --near:      #242424;
  --lilac:     #F3F5FF;
  --grey:      #F5F5F9;
  --txt:       #000000;
  --txt-muted: #333333;
  --line:      #E3E3E8;
  --wrap:      1090px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:16px;
  color:var(--txt);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:0; background:none; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 24px; }

/* ---------- shared typography ---------- */
.eyebrow{
  margin:0 0 14px;
  font-size:14px; font-weight:600; letter-spacing:4.2px;
  text-transform:uppercase; line-height:1.2;
}
.eyebrow--light{ color:#fff; }
.eyebrow--center{ text-align:center; }

.h2{
  margin:0;
  font-size:40px; line-height:48px; font-weight:400; letter-spacing:-.2px;
}
.h2--center{ text-align:center; }
.h2--dark{ color:#fff; font-weight:500; letter-spacing:-.8px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:82px; font-weight:600; white-space:nowrap;
  transition:transform .15s ease, opacity .15s ease, background .2s ease, color .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn--purple{ background:var(--purple); color:#fff; padding:10px 17px; font-size:15px; }
.btn--purple:hover{ background:#413ee0; }
.btn--black{ background:#000; color:#fff; }
.btn--black:hover{ background:#242424; }
.btn--lg{ padding:15px 26px; font-size:18px; }
.btn--xl{ padding:16px 34px; font-size:20px; border-radius:60px; }
.btn--outline{ border:2px solid #000; color:#000; background:transparent; }
.btn--outline:hover{ background:#000; color:#fff; }

/* ============================================================
   HEADER
   ============================================================ */
.hdr{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:transparent;
  transition:background .25s ease, box-shadow .25s ease;
}
.hdr.is-stuck{ background:#fff; box-shadow:0 1px 0 rgba(0,0,0,.07); }

.hdr__inner{
  padding:20px 26px;
  display:flex; align-items:center; gap:28px;
}
.hdr__logo img{ width:110px; }

.hdr__nav{ display:flex; align-items:center; gap:6px; margin-left:auto; }

.nav-link{
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 12px; font-size:17px; font-weight:600; color:#000;
  border-radius:8px;
}
.nav-link:hover{ opacity:.65; }

.caret{
  width:0; height:0; margin-top:2px;
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid currentColor;
}

.nav-item{ position:relative; }

/* mega menu */
.mega{
  position:absolute; top:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(6px);
  width:760px; padding:26px; border-radius:20px; background:#fff;
  box-shadow:0 24px 60px rgba(0,0,0,.14);
  display:grid; grid-template-columns:1fr 1fr 250px; gap:22px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega{
  opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0);
}
.mega__label{
  font-size:11px; font-weight:600; letter-spacing:2.4px; text-transform:uppercase;
  color:#8a8a94; margin-bottom:12px;
}
.mega__col a{
  display:flex; align-items:center; gap:10px;
  padding:9px 10px; border-radius:10px; font-size:15px; font-weight:500;
}
.mega__col a:hover, .mega__col a.is-active{ background:var(--grey); }
.mega__ico{
  width:26px; height:26px; border-radius:7px; flex:none;
  background:linear-gradient(135deg,#E9E8FF,#DDE9FF);
}
.mega__promo{
  background:var(--grey); border-radius:16px; padding:20px;
  display:flex; flex-direction:column; gap:10px;
}
.mega__tag{
  font-size:10px; font-weight:600; letter-spacing:1.8px; text-transform:uppercase; color:var(--purple);
}
.mega__promo p{ margin:0; font-size:17px; font-weight:500; line-height:1.35; }
.mega__cta{ margin-top:auto; font-size:14px; font-weight:600; text-decoration:underline; }

.hdr__actions{ display:flex; align-items:center; gap:18px; }
.hdr__login{ font-size:17px; font-weight:600; }
.hdr__login:hover{ opacity:.65; }

.hdr__burger{ display:none; flex-direction:column; gap:5px; padding:8px; }
.hdr__burger span{ display:block; width:22px; height:2px; background:#000; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ background:var(--pink); padding:0; }

.hero__grid{
  display:grid; grid-template-columns:minmax(0,460px) minmax(0,1fr);
  gap:34px; align-items:start; padding-top:114px;
}
.hero__badge{
  width:34px; height:34px; border-radius:50%; background:#fff;
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
}
.hero__badge img{ width:20px; height:20px; }

.hero h1{
  margin:0 0 26px;
  font-size:49px; line-height:49px; font-weight:400;
}
.hero__sub{
  margin:0 0 34px;
  font-size:20px; line-height:31.6px; font-weight:400; color:var(--txt);
  max-width:460px;
}
.hero__media{ position:relative; margin-top:47px; }
.hero__media img{ width:100%; }

/* trust bar */
.trust{ padding:67px 0 112px; text-align:center; }
.trust__label{ margin:0 0 38px; font-size:14px; font-weight:500; }

.marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee__track{
  display:flex; align-items:center; gap:110px; width:max-content;
  animation:scroll 38s linear infinite;
}
.marquee__track img{ max-height:40px; width:auto; object-fit:contain; opacity:.9; }
@keyframes scroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ============================================================
   SPOTLIGHTS
   ============================================================ */
.spotlights{ background:#fff; padding:78px 0 90px; }
.spotlights .h2{ margin-bottom:44px; }

.carousel{ position:relative; }
.carousel__track{
  display:flex; gap:20px;
  padding:0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  scroll-padding-left:max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  scrollbar-width:none; padding-bottom:6px;
}
.carousel__track::-webkit-scrollbar{ display:none; }

.card{
  flex:0 0 280px; scroll-snap-align:start;
  background:#EFEFF9; border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column; min-height:390px;
}
.card__img{ aspect-ratio:280/155; overflow:hidden; background:#E7E7F5; }
.card__img img{ width:100%; height:100%; object-fit:cover; }
.card h3{
  margin:22px 18px 0;
  font-size:18px; line-height:25.2px; font-weight:400;
}
.card__link{
  margin:auto 18px 20px; padding-top:18px;
  display:flex; align-items:center; justify-content:space-between;
  font-size:14px; font-weight:600;
}
.card__link img{ width:18px; height:18px; }
.card:hover .card__link img{ transform:translate(2px,-2px); transition:transform .15s ease; }

.carousel__nav{ display:flex; gap:12px; margin-top:28px; }
.dot{
  width:34px; height:34px; border-radius:50%;
  background:#C9C9D2; color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease;
}
.dot--active, .dot:hover{ background:#000; }

/* ============================================================
   AI AGENTS (dark)
   ============================================================ */
.agents{ background:var(--dark); padding:86px 0 96px; }
.agents__ico{ width:28px; margin-bottom:20px; }
.agents__sub{
  margin:0 0 44px;
  font-size:40px; line-height:48px; font-weight:500; letter-spacing:-.8px;
  color:#6E6E76; max-width:1000px;
}

/* tabs */
.tabs{
  display:flex; gap:50px; padding:8px;
  background:#000; border-radius:60px; width:max-content; margin:0 auto 34px;
  max-width:100%; overflow-x:auto; scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; }
.tab{
  padding:12px 26px; border-radius:60px;
  font-size:14px; font-weight:500; letter-spacing:1.6px; text-transform:uppercase;
  color:#8A8A92; white-space:nowrap; transition:background .2s ease, color .2s ease;
}
.tab:hover{ color:#fff; }
.tab.is-active{ background:#2F2F35; color:#fff; }

/* panels */
.panels{ position:relative; }
.panel{ display:none; grid-template-columns:1fr 320px; border-radius:18px; overflow:hidden; }
.panel.is-active{ display:grid; animation:fade .25s ease; }
@keyframes fade{ from{opacity:0} to{opacity:1} }

.panel__media{
  background:linear-gradient(135deg,#2B2434,#1F1D26);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.panel__media img{ width:100%; height:100%; object-fit:cover; object-position:top left; }

.panel__body{ background:#000; padding:32px 26px; }
.panel__body h3{ margin:0 0 14px; font-size:24px; line-height:1.2; font-weight:500; color:#fff; letter-spacing:-.3px; }
.panel__desc{ margin:0 0 22px; font-size:15px; line-height:22px; color:#B6B6BE; }

.acc__item{ border-radius:10px; padding:12px 14px; transition:background .2s ease; }
.acc__item + .acc__item{ margin-top:2px; }
.acc__item.is-open{ background:#1B1B20; }
.acc__head{
  display:block; width:100%; text-align:left;
  font-size:15px; font-weight:600; line-height:1.35; color:#C7B8FF;
  padding:0;
}
.acc__item.is-open .acc__head{ color:#fff; }
.acc__body{ display:none; }
.acc__item.is-open .acc__body{ display:block; }
.acc__body p{ margin:8px 0 0; font-size:13.5px; line-height:20px; color:#A5A5AE; }

/* ============================================================
   WHY WRITER
   ============================================================ */
.why{ background:#fff; padding:88px 0 96px; text-align:center; }
.why__ico{ width:28px; margin:0 auto 18px; }
.why .h2{ margin-bottom:46px; }

.why__grid{
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
  max-width:692px; margin:0 auto; text-align:left;
}
.why__card{
  border:1px solid var(--line); border-radius:14px; padding:24px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.why__card:hover{ box-shadow:0 14px 34px rgba(0,0,0,.07); transform:translateY(-2px); }
.why__card img{ width:30px; height:30px; margin-bottom:24px; }
.why__card h3{ margin:0 0 20px; font-size:24px; line-height:30px; font-weight:400; }
.why__card p{ margin:0; font-size:15px; line-height:24px; color:var(--txt-muted); }

/* ============================================================
   RESOURCES
   ============================================================ */
.res{ background:#fff; padding:56px 0 96px; }
.res .h2{ margin-bottom:48px; }

.res__list{ max-width:560px; margin:0 auto; display:flex; flex-direction:column; gap:32px; }
.res__row{ display:grid; grid-template-columns:160px 1fr; gap:20px; align-items:flex-start; }
.res__thumb{ border-radius:6px; overflow:hidden; aspect-ratio:160/90; background:var(--grey); }
.res__thumb img{ width:100%; height:100%; object-fit:cover; }
.res__txt h3{ margin:0 0 6px; font-size:17px; line-height:1.35; font-weight:500; }
.res__row:hover .res__txt h3{ text-decoration:underline; }
.res__txt p{ margin:0 0 8px; font-size:14.5px; line-height:21px; color:var(--txt-muted); }
.res__cta{ font-size:13.5px; font-weight:600; }

/* ============================================================
   CTA
   ============================================================ */
.cta{ background:var(--lilac); padding:106px 0 108px; text-align:center; }
.cta .h2{ font-size:44px; line-height:54px; margin-bottom:38px; }
.cta__btns{ display:flex; gap:22px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr{ background:#000; color:#fff; padding:74px 0 40px; }
.ftr__top{ display:grid; grid-template-columns:200px 1fr; gap:20px; }
.ftr__logo img{ width:82px; }

.ftr__cols{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.ftr__col h4{ margin:0 0 22px; font-size:20px; font-weight:500; }
.ftr__col a{ display:block; margin-bottom:14px; font-size:15px; color:#E6E6E9; }
.ftr__col a:hover{ color:#fff; text-decoration:underline; }
.ftr__col hr{ border:0; border-top:1px solid #3A3A40; width:84px; margin:24px 0; }

.ftr__sub{
  margin-top:70px; padding-top:34px; border-top:1px solid #26262B;
  display:grid; grid-template-columns:1fr 420px; gap:30px; align-items:center;
}
.ftr__sub-title{ margin:0 0 4px; font-size:19px; font-weight:500; }
.ftr__sub-note{ margin:0; font-size:14px; color:#A5A5AE; }

.ftr__form{ display:flex; gap:10px; }
.ftr__form input{
  flex:1; height:46px; padding:0 18px; border-radius:60px; border:0;
  background:#4A4A52; color:#fff; font-family:inherit; font-size:14px;
}
.ftr__form input::placeholder{ color:#C6C6CD; }
.ftr__form button{
  width:78px; height:46px; border-radius:60px; background:var(--purple); color:#fff;
  font-size:18px;
}
.ftr__form button:hover{ background:#413ee0; }

.ftr__legal{ margin:22px 0 0; font-size:11px; line-height:17px; color:#7C7C85; max-width:1000px; }

.ftr__bottom{
  margin-top:40px; padding-top:24px; border-top:1px solid #26262B;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  font-size:12px; letter-spacing:1.4px; text-transform:uppercase; color:#C6C6CD;
}
.ftr__social{ display:flex; gap:10px; }
.ftr__social a{
  width:30px; height:30px; border-radius:50%; background:#fff; color:#000;
  display:flex; align-items:center; justify-content:center; font-size:12px; text-transform:none;
}
.ftr__links{ display:flex; gap:10px; align-items:center; }
.ftr__links a:hover{ text-decoration:underline; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie{
  position:fixed; left:20px; bottom:20px; z-index:200;
  width:396px; max-width:calc(100vw - 40px);
  background:#fff; border-radius:12px; padding:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  display:flex; gap:14px;
}
.cookie.is-hidden{ display:none; }
.cookie__ico{ font-size:26px; line-height:1; }
.cookie__body h4{ margin:0 0 8px; font-size:16px; font-weight:600; }
.cookie__body p{ margin:0 0 14px; font-size:11px; line-height:16px; color:#4A4A52; }
.cookie__body a{ text-decoration:underline; }
.cookie__btns{ display:flex; gap:8px; align-items:center; }
.cookie__btns button{ font-size:12px; font-weight:500; border-radius:60px; padding:8px 14px; }
.cookie__manage{ text-decoration:underline; padding-left:0 !important; }
.cookie__reject{ border:1px solid #000; }
.cookie__accept{ background:#000; color:#fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1100px){
  .hero__grid{ gap:36px; }
  .panel{ grid-template-columns:1fr 300px; }
}

@media (max-width:900px){
  .hdr__nav, .hdr__login{ display:none; }
  .hdr__burger{ display:flex; }
  .hdr__actions{ margin-left:auto; }

  .hero__grid{ grid-template-columns:1fr; padding-top:104px; }
  .hero__media{ margin-top:12px; }
  .trust{ padding:48px 0 64px; }
  .hero h1{ font-size:40px; line-height:42px; }
  .hero__sub{ font-size:18px; line-height:28px; }

  .h2, .agents__sub{ font-size:30px; line-height:38px; }
  .cta .h2{ font-size:32px; line-height:40px; }

  .panel, .panel.is-active{ grid-template-columns:1fr; }
  .panel__media{ max-height:300px; }

  .why__grid{ grid-template-columns:1fr; max-width:460px; }
  .res__row{ grid-template-columns:120px 1fr; }

  .ftr__top{ grid-template-columns:1fr; }
  .ftr__cols{ grid-template-columns:1fr 1fr; }
  .ftr__sub{ grid-template-columns:1fr; }
}

@media (max-width:560px){
  .hero h1{ font-size:34px; line-height:38px; }
  .card{ flex-basis:250px; }
  .ftr__cols{ grid-template-columns:1fr; }
  .cta__btns{ flex-direction:column; align-items:center; }
  .cookie{ left:12px; right:12px; bottom:12px; width:auto; }
}
