/* =========================================================
   CommSwift — "The Agentic Lab" (Option A)
   Shared stylesheet for all pages
   ========================================================= */

:root{
  --bg: #0b0e13;
  --bg-alt: #10141b;
  --card: #151a23;
  --card-hover: #1b212c;
  --line: #262d3a;
  --line-soft: #1c222c;
  --ink: #f2f4f8;
  --sub: #9aa3b5;
  --sub-dim: #6b7386;

  --orange: #f7bb16;
  --orange-deep: #d99a00;
  --amber: #ffd666;
  --orange-glow: rgba(247,187,22,.35);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter","Segoe UI",Helvetica,Arial,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
section{padding:72px 0;}
@media (max-width:720px){ section{padding:48px 0;} }

h1,h2,h3,h4{margin:0 0 14px; letter-spacing:-.01em; font-weight:700;}
h1{font-size:clamp(32px,5.4vw,58px); line-height:1.06;}
h2{font-size:clamp(24px,3.4vw,36px); line-height:1.15;}
h3{font-size:19px;}
p{margin:0 0 14px; color:var(--sub);}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--orange); margin-bottom:14px;
}
.eyebrow::before{content:""; width:18px; height:2px; background:var(--orange); border-radius:2px;}
.lede{color:var(--sub); font-size:17px; max-width:640px;}
.center{text-align:center; margin-left:auto; margin-right:auto;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:700; font-size:14.5px;
  border:1px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--orange),var(--orange-deep));
  color:#0b0e13; box-shadow:0 8px 24px var(--orange-glow);
}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 12px 30px var(--orange-glow);}
.btn-outline{
  background:transparent; color:var(--ink); border-color:var(--line);
}
.btn-outline:hover{border-color:var(--orange); color:var(--orange);}
.btn-sm{padding:10px 18px; font-size:13px;}
.btn-block{width:100%;}

/* ---------- Nav ---------- */
header.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,14,19,.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:var(--maxw); margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; letter-spacing:-.01em;}
.brand img{width:30px; height:30px;}
.brand .accent{color:var(--orange);}
.nav-links{display:flex; align-items:center; gap:30px;}
.nav-links a{
  font-size:14px; font-weight:600; color:var(--sub); transition:color .15s ease;
}
.nav-links a:hover, .nav-links a.active{color:var(--ink);}
.nav-cta{display:flex; align-items:center; gap:14px;}
.hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
}
.hamburger span{width:24px; height:2px; background:var(--ink); border-radius:2px; transition:all .2s ease;}
.mobile-panel{display:none;}

@media (max-width:900px){
  .nav-links{display:none;}
  .nav-cta .btn{display:none;}
  .hamburger{display:flex;}
  .mobile-panel{
    display:none; flex-direction:column; gap:2px; padding:10px 24px 22px; border-top:1px solid var(--line-soft);
  }
  .mobile-panel.open{display:flex;}
  .mobile-panel a{padding:12px 4px; font-size:15px; font-weight:600; color:var(--sub); border-bottom:1px solid var(--line-soft);}
  .mobile-panel a:last-of-type{border-bottom:none;}
  .mobile-panel .btn{margin-top:14px;}
}

/* ---------- Hero ---------- */
.hero{
  padding:88px 0 60px; position:relative; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:-20% -10% auto -10%; height:520px;
  background:radial-gradient(closest-side, var(--orange-glow), transparent 70%);
  filter:blur(10px); pointer-events:none; z-index:0;
}
.hero-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; position:relative; z-index:1;
}
.hero-actions{display:flex; gap:14px; margin-top:28px; flex-wrap:wrap;}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero{padding:48px 0 36px;}
}

/* agent flow graphic */
.flow-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:26px; position:relative;
}
.flow-steps{display:flex; flex-direction:column; gap:0;}
.flow-step{
  display:flex; align-items:center; gap:14px; padding:14px 4px; border-bottom:1px dashed var(--line-soft);
}
.flow-step:last-child{border-bottom:none;}
.flow-num{
  width:34px; height:34px; border-radius:50%; flex:0 0 auto;
  background:linear-gradient(135deg,var(--orange),var(--orange-deep)); color:#0b0e13;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px;
}
.flow-step div.txt strong{display:block; font-size:14.5px; color:var(--ink);}
.flow-step div.txt span{font-size:12.5px; color:var(--sub);}

/* ---------- Trust bar ---------- */
.trust-bar{
  padding:30px 0; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; text-align:center;
}
.trust-bar span{font-size:13px; color:var(--sub-dim); letter-spacing:.03em;}
.trust-tags{display:flex; gap:10px; flex-wrap:wrap; justify-content:center;}
.trust-tags span{
  border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:12.5px; color:var(--sub);
}

/* ---------- From/To ---------- */
.pivot{
  display:grid; grid-template-columns:1fr auto 1fr; gap:22px; align-items:stretch; margin-top:30px;
}
.pivot-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px;}
.pivot-card.from{border-left:3px solid var(--sub-dim);}
.pivot-card.to{border-left:3px solid var(--orange);}
.pivot-card h4{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--sub-dim); margin-bottom:10px;}
.pivot-arrow{display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--orange);}
@media (max-width:800px){
  .pivot{grid-template-columns:1fr;}
  .pivot-arrow{transform:rotate(90deg); padding:6px 0;}
}

/* ---------- Grids ---------- */
.grid{display:grid; gap:20px;}
.grid-2{grid-template-columns:1fr 1fr;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-5{grid-template-columns:repeat(5,1fr);}
.grid-6{grid-template-columns:repeat(6,1fr);}
@media (max-width:980px){
  .grid-3, .grid-4, .grid-5, .grid-6{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6{grid-template-columns:1fr;}
}

/* ---------- Capability tiles ---------- */
.cap-tile{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:22px 20px;
  transition:border-color .15s ease, transform .15s ease;
}
.cap-tile:hover{border-color:var(--orange); transform:translateY(-2px);}
.cap-tile .ico{
  width:40px; height:40px; border-radius:10px; margin-bottom:14px;
  background:linear-gradient(135deg,rgba(255,122,41,.18),rgba(255,90,31,.06));
  display:flex; align-items:center; justify-content:center; color:var(--orange); font-weight:800;
}
.cap-tile h4{font-size:15px; margin:0 0 6px; color:var(--ink);}
.cap-tile p{font-size:13.5px; margin:0;}

/* ---------- channel strip ---------- */
.channel-strip{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px;}
.chip{
  border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-size:12.5px; font-weight:600;
  display:flex; align-items:center; gap:8px; color:var(--sub);
}
.chip .dot{width:7px; height:7px; border-radius:50%;}
.chip.root .dot{background:#39d98a;}
.chip.new .dot{background:var(--orange);}

/* ---------- Agent / flagship cards ---------- */
.agent-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:26px; display:flex; flex-direction:column; height:100%;
}
.agent-card .badge{
  display:inline-block; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; background:rgba(255,122,41,.14); color:var(--orange); margin-bottom:14px; width:fit-content;
}
.agent-card h3{margin-bottom:6px;}
.agent-card .domain{font-size:12.5px; color:var(--sub-dim); margin-bottom:14px;}
.agent-card .outcome{
  margin-top:auto; padding-top:16px; border-top:1px solid var(--line-soft);
  font-size:13.5px; color:var(--amber); font-weight:600;
}
.agent-card .cta-row{margin-top:16px;}

.agent-detail{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px; margin-bottom:26px;
}
.agent-detail .top{display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; margin-bottom:18px;}
.agent-detail .stat-row{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0;}
.stat-pill{
  background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 16px; font-size:13px; min-width:140px;
}
.stat-pill strong{display:block; color:var(--orange); font-size:18px;}

/* ---------- Service cards ---------- */
.service-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px;
}
.service-card .num{font-size:12px; font-weight:800; color:var(--orange); letter-spacing:.06em; margin-bottom:10px;}
.process-row{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:18px 0;}
@media (max-width:900px){.process-row{grid-template-columns:repeat(2,1fr);}}
@media (max-width:520px){.process-row{grid-template-columns:1fr;}}
.process-step{
  background:var(--bg-alt); border:1px solid var(--line-soft); border-radius:var(--radius-sm); padding:14px 16px; font-size:13px;
}
.process-step b{display:block; color:var(--ink); font-size:13.5px; margin-bottom:3px;}

/* ---------- Industry tiles ---------- */
.industry-tile{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:22px; min-height:150px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.industry-tile h4{font-size:16px; margin-bottom:8px; color:var(--ink);}
.industry-tile p{font-size:13px; margin:0;}
.industry-tile .stat{font-size:12.5px; color:var(--orange); font-weight:700; margin-top:10px;}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg, rgba(255,122,41,.12), rgba(255,90,31,.03));
  border:1px solid var(--line); border-radius:var(--radius-lg); padding:44px; text-align:center;
}
.cta-band h2{margin-bottom:10px;}
.cta-band .lede{margin-left:auto; margin-right:auto;}
.cta-band .hero-actions{justify-content:center;}

/* ---------- Forms ---------- */
.form-card{background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:12.5px; font-weight:700; color:var(--sub); margin-bottom:7px; letter-spacing:.03em;}
.field input, .field select, .field textarea{
  width:100%; background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 14px; color:var(--ink); font-size:14px; font-family:inherit;
}
.field textarea{min-height:110px; resize:vertical;}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--orange);}
.form-note{font-size:12px; color:var(--sub-dim); margin-top:10px;}

.contact-channels{display:grid; gap:14px;}
.channel-item{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:18px 20px;
  display:flex; align-items:center; gap:14px;
}
.channel-item .ico{
  width:38px; height:38px; border-radius:10px; background:rgba(255,122,41,.14); color:var(--orange);
  display:flex; align-items:center; justify-content:center; font-weight:800; flex:0 0 auto;
}
.channel-item strong{display:block; font-size:14px; color:var(--ink);}
.channel-item span{font-size:12.5px; color:var(--sub);}
a.channel-item{transition:border-color .15s ease, transform .15s ease;}
a.channel-item:hover{border-color:var(--orange); transform:translateY(-1px);}

/* ---------- Footer ---------- */
footer.site-footer{border-top:1px solid var(--line-soft); padding:50px 0 30px; margin-top:40px;}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px;}
.footer-grid h5{font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--sub-dim); margin-bottom:14px;}
.footer-grid a{display:block; font-size:13.5px; color:var(--sub); margin-bottom:10px;}
.footer-grid a:hover{color:var(--orange);}
.footer-bottom{
  margin-top:36px; padding-top:22px; border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:12.5px; color:var(--sub-dim);
}
@media (max-width:800px){
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:520px){
  .footer-grid{grid-template-columns:1fr;}
}

/* ---------- Page header (interior pages) ---------- */
.page-header{padding:64px 0 20px;}
.page-header .lede{margin-top:8px;}

/* ---------- utility ---------- */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.section-divider{border:none; border-top:1px solid var(--line-soft); margin:0;}
.tag-row{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.small-tag{font-size:11.5px; border:1px solid var(--line); border-radius:999px; padding:4px 11px; color:var(--sub);}
