/* =========================================================
   1PROAGENCY.AI — shared design system
   Palette: near-black base, mint/lime accent, glass cards.
   ========================================================= */

:root{
  --bg:#03100c;
  --bg-soft:#071b14;
  --surface:rgba(10,38,29,.78);
  --surface-2:rgba(5,20,15,.86);
  --border:rgba(103,255,166,.20);
  --border-strong:rgba(103,255,166,.42);
  --mint:#57f79a;
  --mint-bright:#8bffbe;
  --lime:#d8fb55;
  --cyan:#49d7e6;
  --text:#eafdf4;
  --text-muted:#9fc2b1;
  --text-dim:#6d8b7c;
  --danger:#ff8a80;
  --radius-s:8px;
  --radius-m:14px;
  --radius-l:22px;
  --shadow-glow:0 0 46px rgba(70,255,150,.10);
  --max:1320px;
  --font-display:"Space Grotesk",Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
}

[data-theme="light"]{
  --bg:#f3faf5;
  --bg-soft:#e9f5ec;
  --surface:rgba(255,255,255,.86);
  --surface-2:rgba(233,247,238,.92);
  --border:rgba(15,110,66,.16);
  --border-strong:rgba(15,110,66,.32);
  --mint:#0f8a4f;
  --mint-bright:#0c703f;
  --lime:#7a9a16;
  --cyan:#0c7f92;
  --text:#0a1f15;
  --text-muted:#48645530;
  --text-muted:#3f5d4e;
  --text-dim:#71897c;
  --shadow-glow:0 0 40px rgba(15,140,80,.08);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15.5px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition:background .25s ease,color .25s ease;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at 78% 8%,rgba(70,255,150,.12),transparent 32%),
    radial-gradient(circle at 12% 62%,rgba(60,230,220,.07),transparent 30%);
}

h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;margin:0}
h1{font-size:clamp(38px,5.2vw,68px);line-height:1.03}
h2{font-size:clamp(28px,3.4vw,42px);line-height:1.08}
h3{font-size:19px;line-height:1.3}
p{margin:0}
a{color:inherit}
img{max-width:100%;display:block}
button{font-family:inherit}
ul{margin:0;padding:0;list-style:none}

.wrap{max-width:var(--max);margin:0 auto;padding:0 clamp(18px,4vw,40px)}
:focus-visible{outline:2px solid var(--mint-bright);outline-offset:3px;border-radius:4px}
.skip-link{position:absolute;left:-999px;top:auto;background:var(--mint);color:#04140d;padding:10px 16px;border-radius:8px;z-index:200;font-weight:600}
.skip-link:focus{left:16px;top:16px}

/* ---------- eyebrow / badges / chips ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--lime);border:1px solid var(--border-strong);
  padding:6px 13px;border-radius:30px;font-size:12px;font-weight:600;
  background:rgba(60,255,140,.06);
}
.chip-row{display:flex;flex-wrap:wrap;gap:9px}
.chip{
  padding:8px 12px;border:1px solid var(--border);border-radius:9px;
  color:var(--text-muted);font-size:13px;background:rgba(255,255,255,.02);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 22px;border-radius:11px;font-weight:600;font-size:14.5px;
  text-decoration:none;border:1px solid transparent;cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,background .2s ease,border-color .2s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(100deg,var(--mint),var(--lime));color:#052013;box-shadow:0 10px 30px -12px rgba(90,255,140,.55)}
.btn-primary:hover{box-shadow:0 14px 34px -10px rgba(90,255,140,.65)}
.btn-ghost{background:transparent;border-color:var(--border-strong);color:var(--text)}
.btn-ghost:hover{border-color:var(--mint);background:rgba(90,255,150,.06)}
.btn-sm{padding:9px 15px;font-size:13px;border-radius:9px}
.btn-block{width:100%}

/* ---------- header / nav ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.nav-inner{display:flex;align-items:center;gap:22px;padding:13px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.brand-mark{width:34px;height:34px;flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text strong{font-family:var(--font-display);font-size:17px;letter-spacing:.01em}
.brand-text span{font-size:9px;letter-spacing:2.5px;color:var(--text-dim)}
.nav-links{display:flex;align-items:center;gap:20px;margin:0 auto;flex-wrap:nowrap}
.nav-links a{font-size:14px;color:var(--text-muted);text-decoration:none;padding:6px 2px;border-bottom:2px solid transparent}
.nav-links a:hover{color:var(--text)}
.nav-links a[aria-current="page"]{color:var(--text);border-bottom-color:var(--mint)}
.nav-utils{display:flex;align-items:center;gap:10px}
.icon-btn{
  width:37px;height:37px;border-radius:9px;border:1px solid var(--border);
  background:rgba(255,255,255,.02);color:var(--text-muted);cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:.2s ease;
}
.icon-btn:hover{border-color:var(--mint);color:var(--mint-bright)}
.icon-btn svg{width:17px;height:17px}
.theme-icon-dark{display:none}
[data-theme="light"] .theme-icon-light{display:none}
[data-theme="light"] .theme-icon-dark{display:block}
.nav-toggle{display:none;background:none;border:1px solid var(--border);border-radius:9px;width:40px;height:40px;color:var(--text);cursor:pointer}

@media (max-width:940px){
  .nav-links{
    position:fixed;inset:60px 14px auto 14px;flex-direction:column;align-items:stretch;
    background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-m);
    padding:14px;gap:2px;transform:translateY(-12px);opacity:0;pointer-events:none;
    transition:transform .2s ease,opacity .2s ease;box-shadow:0 20px 50px rgba(0,0,0,.4);
  }
  .nav-links.open{transform:translateY(0);opacity:1;pointer-events:auto}
  .nav-links a{padding:11px 10px;border-radius:8px;border-bottom:none}
  .nav-links a[aria-current="page"]{background:rgba(90,255,150,.09);border-bottom:none}
  .nav-toggle{display:flex;align-items:center;justify-content:center}
  .nav-cta-desktop{display:none}
}

/* ---------- hero ---------- */
.hero{
  display:grid;grid-template-columns:1fr;
  padding:clamp(38px,6vw,74px) 0 30px;
}
.hero-copy{max-width:760px}
.hero-copy p.lead{font-size:17.5px;color:var(--text-muted);max-width:520px;margin-top:16px}
.hero h1{margin-top:16px}
.hero h1 .accent{color:var(--mint-bright)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.hero-chips{margin-top:26px}
.hero-badge-float{
  position:absolute;right:-6px;top:-16px;background:var(--surface-2);
  border:1px solid var(--border-strong);border-radius:var(--radius-m);
  padding:14px 16px;max-width:230px;box-shadow:0 20px 40px rgba(0,0,0,.35);
}
.hero-badge-float strong{display:block;color:var(--mint-bright);font-size:13px}
.hero-badge-float span{font-size:12px;color:var(--text-dim)}

.feature-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.feature-row .f-item{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:11px 15px;background:rgba(255,255,255,.02)}
.feature-row .f-item svg{width:18px;height:18px;color:var(--mint-bright);flex:none}
.feature-row .f-item strong{display:block;font-size:12px}
.feature-row .f-item span{display:block;font-size:11px;color:var(--text-dim)}

@keyframes heroIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.hero-copy{animation:heroIn .7s ease both}

.stat-strip{
  display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--border);border-radius:var(--radius-m);
  overflow:hidden;margin:34px 0;
}
.stat-strip .stat{flex:1 1 140px;padding:18px 16px;border-right:1px solid var(--border);text-align:left}
.stat-strip .stat:last-child{border-right:none}
.stat b{display:block;font-family:var(--font-display);font-size:22px;color:var(--mint-bright)}
.stat span{font-size:12px;color:var(--text-dim)}

/* ---------- generic section / page-hero ---------- */
.section{padding:clamp(46px,7vw,84px) 0}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:34px;flex-wrap:wrap}
.section-head h2{margin-top:12px;max-width:640px}
.section-head p{color:var(--text-muted);margin-top:12px;max-width:560px}
.section-head .link{color:var(--lime);text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.page-hero{padding:clamp(50px,8vw,88px) 0 30px}
.page-hero h1{margin-top:14px;max-width:780px}
.page-hero p.lead{color:var(--text-muted);font-size:17px;max-width:620px;margin-top:16px}

/* ---------- cards ---------- */
.card{
  background:linear-gradient(150deg,var(--surface),var(--surface-2));
  border:1px solid var(--border);border-radius:var(--radius-m);padding:24px;
  transition:border-color .2s ease,transform .2s ease;
}
.card:hover{border-color:var(--border-strong)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

.icon-badge{
  width:44px;height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  background:rgba(90,255,150,.1);border:1px solid var(--border-strong);color:var(--mint-bright);margin-bottom:14px;
}
.icon-badge svg{width:22px;height:22px}
.service-card h3{margin-top:2px}
.service-card p{color:var(--text-muted);margin-top:8px;font-size:14px}
.service-card .link{display:inline-flex;align-items:center;gap:6px;margin-top:14px;color:var(--lime);text-decoration:none;font-size:13.5px;font-weight:600}

.checklist li{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:var(--text-muted);padding:5px 0}
.checklist li svg{flex:none;width:16px;height:16px;color:var(--mint-bright);margin-top:2px}

/* ---------- bundles / pricing ---------- */
.bundle-card{position:relative;display:flex;flex-direction:column}
.bundle-card.featured{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime) inset,0 20px 50px -20px rgba(216,251,85,.35)}
.bundle-tag{position:absolute;top:-12px;right:20px;background:var(--lime);color:#101a06;font-size:11px;font-weight:700;padding:5px 11px;border-radius:20px;letter-spacing:.03em}
.bundle-best{color:var(--text-dim);font-size:12.5px}
.bundle-price{font-family:var(--font-display);font-size:38px;color:var(--mint-bright);margin:10px 0 2px}
.bundle-price span{font-size:14px;color:var(--text-dim);font-family:var(--font-body)}
.bundle-card .checklist{margin:16px 0 20px;flex:1}
.compare-note{color:var(--text-dim);font-size:13px;text-align:center;margin-top:22px}

/* ---------- process ---------- */
.process-row{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.process-row.cols-5{grid-template-columns:repeat(5,1fr)}
.highlight-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;text-align:center;color:var(--mint-bright);font-size:13.5px;font-weight:600;border:1px solid var(--border-strong);border-radius:30px;padding:14px 20px;margin-top:22px;background:rgba(90,255,150,.05)}
.process-step{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-m);padding:18px 15px}
.process-step .num{font-family:var(--font-display);color:var(--lime);font-size:13px}
.process-step h3{font-size:15px;margin-top:6px}
.process-step p{font-size:12.5px;color:var(--text-muted);margin-top:6px}
.timeline{display:flex;flex-direction:column;gap:0}
.timeline-item{display:grid;grid-template-columns:52px 1fr;gap:18px;padding:20px 0;border-bottom:1px solid var(--border)}
.timeline-item:last-child{border-bottom:none}
.timeline-num{width:40px;height:40px;border-radius:50%;border:1px solid var(--border-strong);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);color:var(--mint-bright)}
.timeline-item h3{margin-bottom:5px}
.timeline-item p{color:var(--text-muted);font-size:14px}

/* ---------- portfolio ---------- */
.portfolio-card .tag{display:inline-block;font-size:11.5px;color:var(--cyan);border:1px solid rgba(73,215,230,.4);padding:4px 10px;border-radius:20px;margin-bottom:12px}
.portfolio-card p{color:var(--text-muted);font-size:14px;margin-top:8px}
.tool-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.tool-row span{font-size:11.5px;color:var(--text-dim);border:1px solid var(--border);padding:4px 8px;border-radius:6px}

/* ---------- resources ---------- */
.resource-card .rtag{font-size:11.5px;color:var(--lime);letter-spacing:.03em}
.resource-card p{color:var(--text-muted);font-size:14px;margin-top:10px}

/* ---------- cta band ---------- */
.cta-band{
  background:linear-gradient(120deg,rgba(90,255,150,.10),rgba(216,251,85,.06));
  border:1px solid var(--border-strong);border-radius:var(--radius-l);
  padding:clamp(30px,5vw,52px);display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
}
.cta-band h2{max-width:480px}
.cta-band p{color:var(--text-muted);margin-top:10px;max-width:460px}

/* ---------- logos ---------- */
.logo-row{display:flex;flex-wrap:wrap;justify-content:center;gap:26px;padding:26px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:10px 0}
.logo-row span{color:var(--text-dim);font-size:13.5px;font-weight:600;letter-spacing:.02em}

/* ---------- forms ---------- */
.form-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-l);padding:clamp(22px,4vw,36px)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column;gap:7px}
.field.wide{grid-column:1/-1}
.field label{font-size:13px;color:var(--text-muted)}
.field input,.field select,.field textarea{
  background:var(--bg-soft);border:1px solid var(--border);border-radius:9px;
  padding:12px 13px;color:var(--text);font-family:inherit;font-size:14.5px;width:100%;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--mint)}
.field textarea{resize:vertical;min-height:110px}
.form-status{margin-top:14px;font-size:13.5px;min-height:18px}
.form-status.ok{color:var(--mint-bright)}
.form-status.err{color:var(--danger)}
.form-status.pending{color:var(--text-dim)}
.newsletter-row{display:flex;gap:10px;flex-wrap:wrap}
.newsletter-row input{flex:1;min-width:220px}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--border);margin-top:60px;padding-top:50px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px}
.footer-grid h4{font-size:13px;color:var(--text);margin-bottom:14px}
.footer-grid ul li{padding:6px 0}
.footer-grid a{color:var(--text-muted);text-decoration:none;font-size:13.5px}
.footer-grid a:hover{color:var(--mint-bright)}
.footer-brand p{color:var(--text-muted);font-size:13.5px;margin-top:12px;max-width:280px}
.footer-bottom{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:22px 0 34px;color:var(--text-dim);font-size:12.5px;margin-top:30px;border-top:1px solid var(--border)}

/* ---------- chat widget ---------- */
.chat-launcher{
  position:fixed;bottom:22px;right:22px;z-index:80;width:58px;height:58px;border-radius:50%;
  background:linear-gradient(135deg,var(--mint),var(--lime));border:none;cursor:pointer;
  box-shadow:0 14px 34px -8px rgba(90,255,150,.55);display:flex;align-items:center;justify-content:center;color:#052013;
}
.chat-launcher svg{width:26px;height:26px}
.chat-panel{
  position:fixed;bottom:92px;right:22px;z-index:80;width:340px;max-width:calc(100vw - 32px);
  max-height:min(520px,70vh);background:var(--surface-2);border:1px solid var(--border-strong);
  border-radius:var(--radius-l);box-shadow:0 30px 70px rgba(0,0,0,.5);display:none;flex-direction:column;overflow:hidden;
}
.chat-panel.open{display:flex}
.chat-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.02)}
.chat-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--mint),var(--cyan));flex:none}
.chat-head strong{display:block;font-size:13.5px}
.chat-head span{font-size:11px;color:var(--mint-bright)}
.chat-close{margin-left:auto;background:none;border:none;color:var(--text-dim);cursor:pointer;padding:4px}
.chat-messages{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px;font-size:13.5px}
.msg{max-width:85%;padding:9px 12px;border-radius:12px;line-height:1.5}
.msg.bot{background:rgba(255,255,255,.05);align-self:flex-start;border-bottom-left-radius:3px}
.msg.user{background:linear-gradient(120deg,var(--mint),var(--lime));color:#062012;align-self:flex-end;border-bottom-right-radius:3px}
.chat-quick{display:flex;flex-direction:column;gap:6px;padding:0 16px 12px}
.chat-quick button{
  text-align:left;background:rgba(255,255,255,.03);border:1px solid var(--border);color:var(--text-muted);
  padding:9px 11px;border-radius:9px;font-size:12.5px;cursor:pointer;transition:.15s ease;
}
.chat-quick button:hover{border-color:var(--mint);color:var(--text)}
.chat-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border)}
.chat-input-row input{flex:1;background:var(--bg-soft);border:1px solid var(--border);border-radius:9px;padding:10px 12px;color:var(--text);font-size:13.5px}
.chat-input-row button{background:linear-gradient(135deg,var(--mint),var(--lime));border:none;border-radius:9px;width:38px;color:#052013;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .grid-3,.grid-4{grid-template-columns:1fr 1fr}
  .process-row,.process-row.cols-5{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  .process-row,.process-row.cols-5{grid-template-columns:1fr 1fr}
  .form-grid{grid-template-columns:1fr}
  .stat-strip{flex-direction:column}
  .stat-strip .stat{border-right:none;border-bottom:1px solid var(--border)}
  .stat-strip .stat:last-child{border-bottom:none}
  .cta-band{flex-direction:column;align-items:flex-start}
  .footer-grid{grid-template-columns:1fr}
  .chat-panel{right:16px;left:16px;width:auto}
  .chat-launcher{right:16px}
}
