/* ============================================================
   SinAIpse.tech — Design tokens
   Palette: charcoal→blue (from logo), ice neutral, amber data accent
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data)
   ============================================================ */

:root{
  --charcoal: #3a3a3a;
  --charcoal-soft: #495969;
  --slate: #666667;
  --blue-mid: #587a9b;
  --blue: #4a90d9;
  --blue-deep: #2f6bb0;
  --blue-pale: #dce9f7;
  --ice: #eef3f7;
  --paper: #ffffff;
  --amber: #c98a4b;
  --amber-pale: #f4e3cf;
  --line: #dbe2e8;

  --gradient-mesh: linear-gradient(100deg, var(--charcoal) 0%, var(--charcoal-soft) 45%, var(--blue-mid) 70%, var(--blue) 100%);

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --maxw: 1180px;
  --radius: 3px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--charcoal);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.08; letter-spacing:-0.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
section{ position:relative; }

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

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue-deep);
  display:flex;
  align-items:center;
  gap:9px;
}
.eyebrow-mark{
  width:18px;
  height:auto;
  flex-shrink:0;
}

:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  padding:13px 24px;
  border-radius:var(--radius);
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary{
  background:var(--charcoal);
  color:var(--paper);
}
.btn-primary:hover{ background:var(--blue-deep); transform:translateY(-1px); }
.btn-ghost{
  background:transparent;
  color:var(--charcoal);
  border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--charcoal); }

/* ---------- Nav ---------- */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:18px 0;
  transition:background .25s ease, box-shadow .25s ease, padding .25s ease, border-color .25s ease;
  border-bottom:1px solid transparent;
}
.nav.is-scrolled{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  padding:12px 0;
  border-color:var(--line);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; }
.nav-brand{ display:flex; align-items:center; gap:10px; }
.nav-brand img{ height:30px; width:auto; }
.nav-brand span{ font-family:var(--font-display); font-weight:700; font-size:18px; }
.nav-brand span b{ color:var(--blue); font-weight:700; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ font-size:14.5px; font-weight:500; color:var(--slate); transition:color .15s ease; }
.nav-links a:hover{ color:var(--charcoal); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
}
.lang-flag{
  display:flex;
  border-radius:2px;
  overflow:hidden;
  opacity:.4;
  transition:opacity .15s ease, box-shadow .15s ease;
  line-height:0;
}
.lang-flag svg{ display:block; }
.lang-flag:hover{ opacity:.75; }
.lang-flag.is-active{
  opacity:1;
  box-shadow:0 0 0 2px var(--blue-pale);
}
.nav-toggle{ display:none; }

@media (max-width:860px){
  .nav-links{ display:none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding:168px 0 96px;
  background:
    radial-gradient(760px 480px at 82% 8%, var(--blue-pale) 0%, rgba(220,233,247,0) 65%),
    var(--paper);
  overflow:hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.02fr 0.98fr;
  gap:56px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(34px, 4.4vw, 54px);
  font-weight:600;
  color:var(--charcoal);
  max-width:640px;
}
.hero-copy h1 em{
  font-style:normal;
  color:var(--blue-deep);
}
.hero-copy .eyebrow{ margin-bottom:20px; }
.hero-copy p.lede{
  margin-top:22px;
  font-size:17.5px;
  color:var(--slate);
  max-width:520px;
}
.hero-actions{
  display:flex;
  gap:14px;
  margin-top:34px;
  flex-wrap:wrap;
}
.hero-proof{
  margin-top:44px;
  display:flex;
  gap:32px;
  flex-wrap:wrap;
}
.hero-proof div{ }
.hero-proof .num{
  font-family:var(--font-mono);
  font-size:22px;
  color:var(--charcoal);
  font-weight:600;
}
.hero-proof .cap{
  font-size:12.5px;
  color:var(--slate);
  margin-top:2px;
  max-width:140px;
}

@media (max-width:900px){
  .hero{ padding:120px 0 64px; }
  .hero .wrap{ grid-template-columns:1fr; gap:48px; }
  .hero-graphic{ order:2; max-width:420px; margin:0 auto; }
  .hero-copy{ order:1; }
  .hero-copy h1, .hero-copy p.lede{ max-width:none; }
}
@media (max-width:480px){
  .wrap{ padding:0 20px; }
  .hero-proof{ gap:22px; }
}

/* --- Signature graphic: fragmented ops nodes -> connected mesh --- */
.hero-graphic{ position:relative; }
.hero-graphic svg{ width:100%; height:auto; overflow:visible; }
.net-edge{
  stroke:var(--line);
  stroke-width:1.4;
  fill:none;
}
.net-edge.live{
  stroke:url(#meshGradient);
  stroke-width:1.6;
  stroke-dasharray:6 6;
  animation:dash 14s linear infinite;
  opacity:.9;
}
@keyframes dash{ to{ stroke-dashoffset:-240; } }
.net-node{ fill:var(--charcoal); transition:fill .4s ease; }
.net-node.hub{ fill:var(--charcoal); }
.net-node.lit{
  fill:var(--blue);
  animation:pulse 2.6s ease-in-out infinite;
}
.net-node.lit:nth-of-type(2n){ animation-delay:.6s; }
.net-node.lit:nth-of-type(3n){ animation-delay:1.2s; }
@keyframes pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:.55; }
}
.net-label{
  font-family:var(--font-mono);
  font-size:10.5px;
  fill:var(--slate);
  letter-spacing:.03em;
}

/* ============================================================
   BENCHMARK BANNER
   ============================================================ */
.banner{
  background:var(--charcoal);
  color:var(--paper);
  padding:40px 0;
}
.banner .wrap{
  display:grid;
  grid-template-columns:1.1fr repeat(3, 1fr);
  gap:28px;
  align-items:start;
}
.banner-head .eyebrow{ color:var(--blue); }
.banner-head h3{
  font-size:19px;
  font-weight:600;
  margin-top:12px;
  color:var(--paper);
}
.banner-stat{ border-left:1px solid rgba(255,255,255,.16); padding-left:22px; }
.banner-stat .range{
  font-family:var(--font-mono);
  font-size:26px;
  color:var(--amber);
  font-weight:600;
}
.banner-stat .label{
  font-size:13.5px;
  color:#c7cbd0;
  margin-top:6px;
}
.banner-note{
  grid-column:1 / -1;
  font-size:12px;
  color:#9aa0a6;
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:16px;
  margin-top:6px;
  max-width:920px;
}

@media (max-width:900px){
  .banner .wrap{ grid-template-columns:1fr 1fr; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services{ padding:120px 0 40px; }
.section-head{
  max-width:620px;
  margin-bottom:56px;
}
.section-head h2{
  font-size:clamp(28px,3.2vw,38px);
  font-weight:600;
  margin-top:14px;
}
.section-head p{
  margin-top:16px;
  color:var(--slate);
  font-size:16px;
}

.svc-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.svc-card{
  background:var(--paper);
  padding:32px 28px;
  position:relative;
  transition:background .2s ease;
  flex:1 1 300px;
}
.svc-card:hover{ background:var(--ice); }
.svc-icon{
  width:30px;
  height:30px;
  color:var(--blue);
  margin-bottom:16px;
}
.svc-icon svg{ width:100%; height:100%; display:block; }
.svc-index{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--blue-deep);
  letter-spacing:.08em;
}
.svc-card h4{
  font-size:18px;
  font-weight:600;
  margin-top:14px;
  color:var(--charcoal);
}
.svc-card p{
  margin-top:10px;
  font-size:14.5px;
  color:var(--slate);
}
.svc-node{
  position:absolute;
  top:31px; right:28px;
  width:8px; height:8px;
  border-radius:50%;
  background:var(--gradient-mesh);
}

.svc-converge{
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 auto;
  max-width:620px;
  padding:34px 0 30px;
}
.svc-converge .ln{ flex:1; height:1px; background:var(--line); position:relative; }
.svc-converge .ln::after{
  content:"";
  position:absolute; top:-2px; left:50%;
  width:5px; height:5px; border-radius:50%;
  background:var(--blue);
}
.svc-converge span{
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--slate);
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}

.svc-hub{
  background:var(--charcoal);
  color:var(--paper);
  padding:44px 48px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:36px;
  align-items:center;
}
.svc-hub .eyebrow{ color:var(--blue); }
.svc-hub-icon{
  width:36px;
  height:36px;
  color:var(--blue);
  margin-bottom:18px;
}
.svc-hub-icon svg{ width:100%; height:100%; display:block; }
.svc-hub h3{
  font-size:24px;
  font-weight:600;
  margin-top:12px;
  color:var(--paper);
}
.svc-hub p{
  margin-top:12px;
  font-size:15px;
  color:#c7cbd0;
}
.svc-hub-list{ display:flex; flex-direction:column; gap:12px; }
.svc-hub-list li{
  display:flex;
  gap:10px;
  font-size:14px;
  color:#e6e8ea;
  align-items:baseline;
}
.svc-hub-list li::before{
  content:"";
  width:5px; height:5px;
  border-radius:50%;
  background:var(--amber);
  flex-shrink:0;
  margin-top:6px;
}

@media (max-width:900px){
  .svc-hub{ grid-template-columns:1fr; padding:36px 28px; }
}

/* ============================================================
   PORTFOLIO (proven toolkit — grouped by segment)
   Each group is framed as its own card. Accent colors trace the
   logo's own charcoal-to-blue gradient stops across the 4 frames.
   ============================================================ */
.portfolio{ padding:120px 0; }

.pf-group{
  margin-top:32px;
  border:1px solid var(--line);
  border-top-width:3px;
  padding:26px 28px 22px;
}
.pf-group:first-of-type{ margin-top:0; }

.pf-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:16px;
  margin-bottom:1px;
  border-bottom:1px solid var(--line);
}
.pf-group-head-left{
  display:flex;
  align-items:baseline;
  gap:16px;
}
.pf-group-logo{
  width:26px;
  height:auto;
  flex-shrink:0;
  opacity:.92;
}
.pf-index{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.06em;
}
.pf-group-head h3{
  font-size:20px;
  font-weight:600;
  color:var(--charcoal);
}

/* Accent per frame — the four stops of the logo's own gradient */
.pf-group.accent-01{ border-top-color:#3a3a3a; }
.pf-group.accent-01 .pf-index{ color:#3a3a3a; }
.pf-group.accent-01 .pf-icon{ color:#3a3a3a; }

.pf-group.accent-02{ border-top-color:#495969; }
.pf-group.accent-02 .pf-index{ color:#495969; }
.pf-group.accent-02 .pf-icon{ color:#495969; }

.pf-group.accent-03{ border-top-color:#587a9b; }
.pf-group.accent-03 .pf-index{ color:#587a9b; }
.pf-group.accent-03 .pf-icon{ color:#587a9b; }

.pf-group.accent-04{ border-top-color:#4a90d9; }
.pf-group.accent-04 .pf-index{ color:#4a90d9; }
.pf-group.accent-04 .pf-icon{ color:#4a90d9; }

.pf-grid{
  display:flex;
  flex-wrap:wrap;
  gap:1px;
  background:var(--line);
  margin-top:19px;
}
.pf-item{
  background:var(--paper);
  padding:22px 20px 20px;
  transition:background .2s ease;
  flex:1 1 250px;
}
.pf-item:hover{ background:var(--ice); }
.pf-icon{
  width:22px;
  height:22px;
  color:var(--blue-deep);
  margin-bottom:12px;
}
.pf-icon svg{ width:100%; height:100%; display:block; }
.pf-item h4{
  font-size:14.5px;
  font-weight:600;
  color:var(--charcoal);
}
.pf-item p{
  font-size:13.5px;
  color:var(--slate);
  margin-top:9px;
  line-height:1.5;
}

/* ============================================================
   GALLERY BLOCK (Portfolio segment — links to external visual
   references, minimalist, C-level appropriate: text + icon only,
   no imagery, no color noise beyond the existing brand palette)
   ============================================================ */
.gallery-block{ margin-top:72px; }

.gallery-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-top:8px;
}
.gallery-btn{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--paper);
  padding:18px 22px;
  transition:background .18s ease;
}
.gallery-btn:hover{ background:var(--ice); }
.gallery-btn:hover .gallery-arrow{ color:var(--blue-deep); transform:translate(1px,-1px); }
.gallery-icon{
  width:22px;
  height:22px;
  color:var(--blue-deep);
  flex-shrink:0;
}
.gallery-icon svg{ width:100%; height:100%; display:block; }
.gallery-label{
  flex:1;
  font-size:14px;
  font-weight:600;
  color:var(--charcoal);
  line-height:1.4;
}
.gallery-arrow{
  width:15px;
  height:15px;
  color:#a7adb3;
  flex-shrink:0;
  transition:color .18s ease, transform .18s ease;
}
.gallery-arrow svg{ width:100%; height:100%; display:block; }

@media (max-width:760px){
  .gallery-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   PROCESS (genuinely sequential — numbering earned here)
   ============================================================ */
.process{ padding:120px 0; background:var(--ice); }
.process-list{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0;
  margin-top:8px;
  position:relative;
}
.process-list::before{
  content:"";
  position:absolute;
  top:19px; left:6%; right:6%;
  height:1px;
  background:var(--line);
}
.p-step{ padding:0 22px 0 0; position:relative; }
.p-step .idx{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--paper);
  background:var(--gradient-mesh);
  width:38px; height:38px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:2;
}
.p-step h4{
  font-size:16.5px;
  font-weight:600;
  margin-top:20px;
}
.p-step p{
  font-size:14px;
  color:var(--slate);
  margin-top:8px;
}

@media (max-width:860px){
  .process-list{ grid-template-columns:1fr 1fr; gap:36px 24px; }
  .process-list::before{ display:none; }
}
@media (max-width:560px){
  .process-list{ grid-template-columns:1fr; gap:32px; }
}

/* ============================================================
   DIFFERENTIATORS (staff augmentation value prop)
   ============================================================ */
.diff{ padding:120px 0; }
.diff-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-top:8px;
}
.diff-card{
  background:var(--paper);
  padding:34px 36px;
  display:flex;
  gap:20px;
}
.diff-mark{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--amber);
  border:1px solid var(--amber-pale);
  background:var(--amber-pale);
  width:34px; height:34px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.diff-body h4{ font-size:16.5px; font-weight:600; }
.diff-body p{ font-size:14.5px; color:var(--slate); margin-top:8px; }

@media (max-width:760px){
  .diff-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta{
  background:var(--charcoal);
  color:var(--paper);
  padding:96px 0;
  text-align:center;
}
.cta h2{
  font-size:clamp(26px,3.4vw,36px);
  font-weight:600;
  max-width:640px;
  margin:0 auto;
}
.cta p{
  margin-top:16px;
  color:#c7cbd0;
  font-size:16px;
}
.cta .btn-ghost{ color:var(--paper); border-color:rgba(255,255,255,.3); }
.cta .btn-ghost:hover{ border-color:var(--paper); }
.cta .btn-primary{ background:var(--blue); }
.cta .btn-primary:hover{ background:var(--blue-deep); }

.contact-form{
  text-align:left;
  max-width:560px;
  margin:40px auto 0;
}
.form-row{
  display:flex;
  gap:16px;
}
.form-field{
  flex:1;
  margin-bottom:18px;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.form-field label{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#c7cbd0;
}
.form-field input,
.form-field select,
.form-field textarea{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius);
  padding:11px 13px;
  color:var(--paper);
  font-family:var(--font-body);
  font-size:14.5px;
  width:100%;
}
.form-field select{ color:var(--paper); }
.form-field select option{ color:var(--charcoal); }
.form-field input::placeholder,
.form-field textarea::placeholder{ color:#9aa0a6; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--blue);
  background:rgba(255,255,255,.11);
}
.form-field textarea{
  resize:vertical;
  min-height:96px;
  font-family:var(--font-body);
}
.contact-form .btn-primary{ width:100%; justify-content:center; }
.contact-form .btn-primary:disabled{ opacity:.7; cursor:default; }
.cf-honey{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.form-note{
  margin-top:14px;
  font-size:12px;
  color:#9aa0a6;
  text-align:left;
}
.form-status{
  margin-top:12px;
  font-size:13.5px;
  text-align:left;
  min-height:1em;
}
.form-status.is-success{ color:#8fd19e; }
.form-status.is-error{ color:#e0a0a0; }
.form-status.is-error a{ color:var(--paper); text-decoration:underline; }
.cta-alt-link{
  display:inline-block;
  margin-top:28px;
  font-size:13.5px;
  color:#c7cbd0;
  text-decoration:underline;
  text-underline-offset:3px;
}
.cta-alt-link:hover{ color:var(--paper); }

@media (max-width:560px){
  .form-row{ flex-direction:column; gap:0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer{ padding:48px 0 36px; }
footer .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:18px;
  border-top:1px solid var(--line);
  padding-top:28px;
}
.foot-brand{ display:flex; align-items:center; gap:10px; }
.foot-brand img{ height:22px; }
.foot-brand span{ font-family:var(--font-display); font-weight:700; font-size:15px; }
.foot-brand span b{ color:var(--blue); }
.foot-links{ display:flex; gap:26px; }
.foot-links a{ font-size:13.5px; color:var(--slate); }
.foot-links a:hover{ color:var(--charcoal); }
.foot-copy{ font-size:12.5px; color:#9aa0a6; }

/* ============================================================
   CONFIRMATION PAGE (post-submit redirect target)
   ============================================================ */
html, body{ height:100%; }
.confirm-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--charcoal);
  padding:40px 24px;
}
.confirm-card{
  max-width:440px;
  text-align:center;
  color:var(--paper);
}
.confirm-logo{
  width:104px;
  height:auto;
  margin:0 auto 32px;
}
.confirm-check{
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--gradient-mesh);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 26px;
}
.confirm-card h1{
  font-family:var(--font-display);
  font-size:28px;
  font-weight:600;
}
.confirm-card p{
  margin-top:14px;
  color:#c7cbd0;
  font-size:15.5px;
  line-height:1.6;
}
.confirm-card .btn{
  margin-top:32px;
}
.confirm-card .btn-primary{
  background:var(--blue);
}
.confirm-card .btn-primary:hover{
  background:var(--blue-deep);
}
