/* =========================================================
   P&C Solutions — Stylesheet
   Design tokens live in :root — change colors/fonts there.
   ========================================================= */

:root{
  /* -- Palette -- */
  --navy:#0A1628;         /* primary dark surface (header, hero, footer) */
  --navy-soft:#101F35;    /* secondary dark surface (integration section) */
  --paper:#F4F6F9;        /* light background */
  --ink:#0A1628;          /* body text on light surfaces */
  --blue:#2F6FED;         /* primary accent — CTAs, links, edges */
  --cyan:#35E0C7;         /* secondary accent — glow, highlights */
  --line-dark:#1E2C42;    /* hairlines on dark surfaces */
  --line-light:#DEE3EA;   /* hairlines on light surfaces */
  --muted-dark:#93A1B4;   /* secondary text on dark surfaces */
  --muted-light:#5B6472;  /* secondary text on light surfaces */
  --card:#FFFFFF;
  --radius:3px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;}
h1,h2,h3{
  font-family:'Space Grotesk',sans-serif;
  font-weight:600;
  margin:0;
  letter-spacing:-0.01em;
}
.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue);
}
.mono{font-family:'IBM Plex Mono',monospace;}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}
:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  letter-spacing:0.03em;
  text-decoration:none;
  padding:12px 22px;
  border-radius:var(--radius);
  border:1px solid var(--blue);
  color:#fff;
  background:transparent;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-primary{background:var(--blue);border-color:var(--blue);}
.btn-primary:hover{background:#4C82F0;border-color:#4C82F0;transform:translateY(-1px);}
.btn-ghost{border-color:var(--line-dark);color:var(--paper);background:transparent;}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue);}

/* on light sections buttons need dark-friendly ghost variant */
.section-head + .btn-ghost,
section:not(.hero) .btn-ghost{
  border-color:var(--line-light);
  color:var(--ink);
}
section:not(.hero) .btn-ghost:hover{border-color:var(--blue);color:var(--blue);}

/* ---------- Header ---------- */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(10,22,40,0.88);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line-dark);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 32px;
}
.logo{
  font-family:'Space Grotesk',sans-serif;
  font-weight:700;
  font-size:19px;
  letter-spacing:-0.01em;
  text-decoration:none;
  color:#fff;
}
.logo span{color:var(--cyan);}
.nav-links{
  display:none;
  gap:32px;
  font-size:14px;
}
.nav-links a{
  text-decoration:none;
  color:#D7DEE8;
  position:relative;
  padding-bottom:4px;
  transition:color .2s ease;
}
.nav-links a:hover{color:#fff;}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background:var(--cyan);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}
.nav-links a:hover::after{transform:scaleX(1);}
.nav-right{display:flex;align-items:center;gap:14px;}
.nav-cta{display:none;}

.nav-toggle{
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:36px;
  height:36px;
  background:none;
  border:1px solid var(--line-dark);
  border-radius:var(--radius);
  cursor:pointer;
  padding:0;
}
.nav-toggle span{
  display:block;
  height:1px;
  margin:0 8px;
  background:#D7DEE8;
}

@media(min-width:760px){.nav-cta{display:inline-flex;}}
@media(min-width:900px){
  .nav-links{display:flex;}
  .nav-toggle{display:none;}
}

/* mobile dropdown */
@media(max-width:899px){
  .nav-links{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--navy);
    border-bottom:1px solid var(--line-dark);
    flex-direction:column;
    gap:0;
    padding:8px 32px 20px;
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:12px 0;border-top:1px solid var(--line-dark);}
  .nav-links a:first-child{border-top:none;}
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:var(--navy);
  color:#fff;
  padding:96px 0 72px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(47,111,237,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,111,237,0.10) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse 80% 60% at 30% 20%, black, transparent 75%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:48px;
  align-items:center;
}
@media(min-width:920px){
  .hero-grid{grid-template-columns:1.05fr 0.95fr;}
}
.hero h1{
  font-size:42px;
  line-height:1.1;
  color:#fff;
}
@media(min-width:640px){.hero h1{font-size:54px;}}
.hero h1 .accent{color:var(--cyan);}
.hero p.lede{
  margin-top:22px;
  max-width:46ch;
  color:var(--muted-dark);
  font-size:17px;
}
.hero-actions{
  margin-top:32px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.hero-note{
  margin-top:28px;
  font-size:13px;
  color:var(--muted-dark);
  display:flex;
  gap:8px;
  align-items:baseline;
}
.hero-note .mono{color:var(--cyan);}

/* network diagram */
.hero-visual{position:relative;}
#network .edge{
  stroke-dasharray:220;
  stroke-dashoffset:220;
  animation:draw 1s ease forwards;
  opacity:0.65;
}
#network .node{
  opacity:0;
  animation:pop .4s ease forwards;
  animation-delay:0.9s;
}
#core{
  filter:drop-shadow(0 0 8px rgba(53,224,199,0.7));
}
@keyframes draw{to{stroke-dashoffset:0;}}
@keyframes pop{to{opacity:1;}}
#network .edge:nth-child(1){animation-delay:0.05s;}
#network .edge:nth-child(2){animation-delay:0.15s;}
#network .edge:nth-child(3){animation-delay:0.25s;}
#network .edge:nth-child(4){animation-delay:0.35s;}
#network .edge:nth-child(5){animation-delay:0.15s;}
#network .edge:nth-child(6){animation-delay:0.25s;}
#network .edge:nth-child(7){animation-delay:0.35s;}
#network .edge:nth-child(8){animation-delay:0.45s;}
#network .edge:nth-child(9){animation-delay:0.05s;}
#network .edge:nth-child(10){animation-delay:0.3s;}
#network .edge:nth-child(11){animation-delay:0.4s;}
#network .edge:nth-child(12){animation-delay:0.2s;}

@media(prefers-reduced-motion:reduce){
  #network .edge{animation:none;stroke-dashoffset:0;}
  #network .node{animation:none;opacity:1;}
}

/* ---------- Section shell ---------- */
section{padding:88px 0;}
.section-head{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:640px;
  margin-bottom:52px;
}
.section-head h2{font-size:32px;}
.section-head p{color:var(--muted-light);margin:0;font-size:16px;}

/* ---------- Approach ---------- */
.approach{background:var(--card);border-top:1px solid var(--line-light);border-bottom:1px solid var(--line-light);}
.steps{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}
@media(min-width:820px){.steps{grid-template-columns:repeat(4,1fr);}}
.step{
  padding:28px 24px 28px 0;
  border-top:1px solid var(--line-light);
}
@media(min-width:820px){
  .step{border-top:none;border-left:1px solid var(--line-light);padding:4px 28px 0;}
  .step:first-child{border-left:none;padding-left:0;}
}
.step .num{
  font-size:13px;
  color:var(--blue);
  display:block;
  margin-bottom:14px;
}
.step h3{font-size:19px;font-family:'Inter';font-weight:600;margin-bottom:10px;}
.step p{color:var(--muted-light);font-size:14.5px;margin:0;}

/* ---------- Services ---------- */
.services-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1px;
  background:var(--line-light);
  border:1px solid var(--line-light);
}
@media(min-width:700px){.services-grid{grid-template-columns:1fr 1fr;}}
.service{
  background:var(--paper);
  padding:36px;
}
.service h3{font-size:21px;font-family:'Inter';font-weight:600;margin-bottom:12px;}
.service p{color:var(--muted-light);font-size:14.5px;margin:0 0 16px;}
.service .tag{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--blue);
}

/* ---------- Integration ---------- */
.integration{background:var(--navy-soft);color:#fff;}
.integration .eyebrow{color:var(--cyan);}
.integration h2{color:#fff;}
.integration .section-head p{color:var(--muted-dark);}
.integration-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
}
@media(min-width:760px){.integration-grid{grid-template-columns:repeat(3,1fr);}}
.integration-item{border-top:1px solid var(--line-dark);padding-top:20px;}
.integration-item .num{
  font-size:13px;
  color:var(--cyan);
  display:block;
  margin-bottom:14px;
}
.integration-item h3{
  font-size:19px;
  font-family:'Inter';
  font-weight:600;
  color:#fff;
  margin-bottom:10px;
}
.integration-item p{
  font-size:14.5px;
  color:var(--muted-dark);
  margin:0;
}

/* ---------- Team ---------- */
.team{background:var(--card);}
.team-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}
@media(min-width:640px){.team-grid{grid-template-columns:1fr 1fr;}}
.person{
  border:1px solid var(--line-light);
  padding:28px;
  border-radius:var(--radius);
}
.avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--navy);
  color:var(--cyan);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  margin-bottom:18px;
}
.person h3{font-size:19px;margin-bottom:4px;}
.person .role{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  color:var(--blue);
  margin:0 0 14px;
}
.credentials{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.credentials li{
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--muted-light);
  padding-left:18px;
  position:relative;
}
.credentials li::before{
  content:"—";
  position:absolute;
  left:0;
  color:var(--blue);
}
/* ---------- Contact / lead form ---------- */
.contact{background:var(--paper);}
.contact-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:56px;
}
@media(min-width:900px){.contact-grid{grid-template-columns:0.9fr 1.1fr;}}
.contact-side p{color:var(--muted-light);max-width:38ch;}
.contact-list{list-style:none;padding:0;margin:28px 0 0;font-size:14.5px;}
.contact-list li{padding:10px 0;border-top:1px solid var(--line-light);display:flex;justify-content:space-between;gap:12px;}
.contact-list li:last-child{border-bottom:1px solid var(--line-light);}
.contact-list .k{color:var(--muted-light);}

/* honeypot — off-screen rather than display:none, since some bots skip
   fields hidden that way but still auto-fill anything present in the DOM */
.hp-field{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

form{display:grid;gap:20px;}
.form-row{display:grid;grid-template-columns:1fr;gap:20px;}
@media(min-width:560px){.form-row{grid-template-columns:1fr 1fr;}}
label{
  display:block;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--muted-light);
  margin-bottom:8px;
}
input,textarea{
  width:100%;
  font-family:'Inter',sans-serif;
  font-size:15px;
  padding:12px 14px;
  border:1px solid var(--line-light);
  background:#fff;
  color:var(--ink);
  border-radius:var(--radius);
}
input:focus,textarea:focus{border-color:var(--blue);}
textarea{resize:vertical;min-height:110px;}
.form-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  margin-top:4px;
}
.form-foot span{font-size:12.5px;color:var(--muted-light);}
.form-status{
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--blue);
  min-height:18px;
}

/* contact section buttons need dark border on light bg */
.contact .btn-ghost{border-color:var(--line-light);color:var(--ink);}

/* ---------- Footer ---------- */
footer{
  background:var(--navy);
  color:var(--muted-dark);
  border-top:1px solid var(--line-dark);
  padding:40px 0;
}
footer .logo{color:#fff;}
.foot-grid{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:center;
  justify-content:space-between;
}
.foot-links{
  display:flex;
  gap:24px;
  font-size:13px;
}
.foot-links a{text-decoration:none;color:var(--muted-dark);}
.foot-links a:hover{color:#fff;}
.copy{font-size:12.5px;color:var(--muted-dark);font-family:'IBM Plex Mono',monospace;}
