/* styles.css */
:root{
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #4a4a4a;
  --line: rgba(0,0,0,.12);

  --surface: rgba(0,0,0,.02);
  --surface-2: rgba(0,0,0,.035);
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow-soft: 0 8px 20px rgba(0,0,0,.05);

  --radius: 18px;
  --radius-sm: 14px;

  --max: 1100px;

  --focus: 0 0 0 3px rgba(0,0,0,.22);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img, svg{ max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateY(-140%);
  transition: transform .15s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); box-shadow: var(--focus); outline: none; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand-mark{
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text);
}
.brand:focus{ outline: none; box-shadow: var(--focus); border-radius: 10px; }

.site-nav{ position: relative; }
.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.nav-toggle:hover{ background: var(--surface); }
.nav-toggle:focus{ outline: none; box-shadow: var(--focus); }
.nav-toggle-lines{
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle-lines::before{ top: 0; }
.nav-toggle-lines::after{ bottom: 0; }

.nav-panel{
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  width: min(84vw, 360px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .6rem;
  display: none;
}
.nav-panel.is-open{ display: block; }

.nav-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .15rem;
}
.nav-link{
  display: block;
  padding: .75rem .8rem;
  border-radius: 14px;
}
.nav-link:hover{ background: var(--surface); text-decoration: none; }
.nav-link:focus{ outline: none; box-shadow: var(--focus); }

@media (min-width: 920px){
  .nav-toggle{ display: none; }
  .nav-panel{
    position: static;
    width: auto;
    border: none;
    box-shadow: none;
    padding: 0;
    display: block;
    background: transparent;
  }
  .nav-list{
    display: flex;
    align-items: center;
    gap: .3rem;
  }
  .nav-link{
    padding: .55rem .7rem;
    border-radius: 999px;
  }
}

.hero{
  padding: 3.3rem 0 2.4rem;
}
.hero-grid{
  display: grid;
  gap: 1.2rem;
}
.eyebrow{
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .95rem;
}
.hero h1{
  margin: 0 0 .8rem;
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.4px;
}
.hero-lead{
  margin: 0 0 1.2rem;
  color: rgba(0,0,0,.78);
  font-size: 1.05rem;
  max-width: 62ch;
}
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1.1rem;
}
.trust-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
  color: rgba(0,0,0,.75);
}
.trust-bullets li{
  padding-left: 1.1rem;
  position: relative;
}
.trust-bullets li::before{
  content:"—";
  position: absolute;
  left: 0;
  color: rgba(0,0,0,.6);
}

.hero-card{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.card-title{
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}
.checklist{
  margin: 0 0 .8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.checklist li{
  position: relative;
  padding-left: 1.45rem;
}
.checklist li::before{
  content:"✓";
  position: absolute;
  left: 0;
  top: 0;
}
.note{
  margin: .75rem 0 0;
  color: rgba(0,0,0,.72);
  font-size: .95rem;
}

@media (min-width: 920px){
  .hero-grid{
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
    gap: 1.6rem;
  }
  .hero{
    padding: 4.2rem 0 3.0rem;
  }
}

.section{
  padding: 3.2rem 0;
}
.section-soft{
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.01));
  border-top: 1px solid rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.03);
}
.section-head{
  margin-bottom: 1.4rem;
}
.section-head h2{
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -.2px;
}
.section-sub{
  margin: 0;
  color: rgba(0,0,0,.72);
  max-width: 72ch;
}

.grid{
  display: grid;
  gap: 1rem;
}
.cards-4{ grid-template-columns: 1fr; }
.cards-3{ grid-template-columns: 1fr; }
.cards-2{ grid-template-columns: 1fr; }

@media (min-width: 720px){
  .cards-4{ grid-template-columns: repeat(2, 1fr); }
  .cards-3{ grid-template-columns: repeat(2, 1fr); }
  .cards-2{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px){
  .cards-4{ grid-template-columns: repeat(4, 1fr); }
  .cards-3{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  background: rgba(0,0,0,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}
.card:hover{
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 .55rem;
  font-size: 1.05rem;
}
.card-result{
  margin: 0 0 .75rem;
  color: rgba(0,0,0,.78);
}
.bullets{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
  color: rgba(0,0,0,.78);
}
.bullets li{ margin: .35rem 0; }

.meta p{ margin: .5rem 0; }
.meta strong{ font-weight: 700; }

.fit-grid{ grid-template-columns: 1fr; }
@media (min-width: 920px){
  .fit-grid{ grid-template-columns: 1fr 1fr; }
}

.arch-grid{ grid-template-columns: 1fr; }
@media (min-width: 980px){
  .arch-grid{ grid-template-columns: .95fr 1.05fr; align-items: start; }
}

.figure-caption{
  margin: .75rem 0 0;
  color: rgba(0,0,0,.68);
  font-size: .95rem;
}

.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.chip{
  display: inline-flex;
  align-items: center;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.02);
  font-size: .95rem;
}
.chip-muted{
  background: rgba(0,0,0,.01);
  color: rgba(0,0,0,.72);
}

.steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .85rem;
}
.step{
  background: rgba(0,0,0,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-soft);
}
.step h3{
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.step p{
  margin: 0;
  color: rgba(0,0,0,.78);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease;
}
.btn:hover{
  text-decoration: none;
  background: rgba(0,0,0,.03);
}
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: none; box-shadow: var(--focus); }

.btn-primary{
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover{ background: rgba(0,0,0,.9); }
.btn-secondary{
  border-color: rgba(0,0,0,.55);
}

.faq{
  display: grid;
  gap: .6rem;
}
.faq-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.02);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-q{ margin: 0; }
.faq-btn{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.faq-btn:hover{ background: rgba(0,0,0,.02); }
.faq-btn:focus{ outline: none; box-shadow: var(--focus); }
.faq-btn::after{
  content: "+";
  float: right;
  font-weight: 700;
}
.faq-btn[aria-expanded="true"]::after{ content: "–"; }
.faq-a{
  padding: 0 1.1rem 1.05rem;
  color: rgba(0,0,0,.78);
}
.faq-a p{ margin: .4rem 0 0; }

.contact-grid{
  display: grid;
  gap: 1rem;
}
.contact-card{
  margin-top: 1rem;
}
.contact-line{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: baseline;
  margin: 0 0 .9rem;
}
.contact-label{
  color: rgba(0,0,0,.72);
  font-weight: 650;
}
.contact-link:focus{ outline: none; box-shadow: var(--focus); border-radius: 8px; }
.contact-aside h3{ margin-top: 0; }

@media (min-width: 980px){
  .contact-grid{
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}
.footer-inner{
  display: grid;
  gap: .8rem;
}
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-link{
  color: rgba(0,0,0,.78);
}
.footer-link:focus{ outline: none; box-shadow: var(--focus); border-radius: 10px; }
.footer-credo{
  margin: 0;
  color: rgba(0,0,0,.72);
}

/* SVG Network Plan */
.net-svg{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.net-box{
  fill: rgba(255,255,255,.75);
  stroke: rgba(0,0,0,.16);
  stroke-width: 1.2;
}
.net-edge{ fill: rgba(0,0,0,.02); }
.net-dmz{ fill: rgba(0,0,0,.018); }
.net-app{ fill: rgba(0,0,0,.022); }
.net-core{ fill: rgba(0,0,0,.02); }
.net-mgmt{ fill: rgba(0,0,0,.016); }
.net-exception{ fill: rgba(0,0,0,.012); }

.net-text{
  fill: rgba(0,0,0,.88);
  font-size: 14px;
}
.net-title{ font-size: 15px; font-weight: 700; }
.net-muted{ fill: rgba(0,0,0,.62); }
.net-label{
  fill: rgba(0,0,0,.64);
  font-size: 12px;
}

.net-line{
  stroke: rgba(0,0,0,.22);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.net-legend-box{
  fill: rgba(0,0,0,.015);
}
.net-legend-title{
  font-weight: 800;
  font-size: 14px;
}
.net-swatch{
  stroke: rgba(0,0,0,.18);
  stroke-width: 1;
}
.net-swatch-edge{ fill: rgba(0,0,0,.02); }
.net-swatch-dmz{ fill: rgba(0,0,0,.018); }
.net-swatch-app{ fill: rgba(0,0,0,.022); }
.net-swatch-core{ fill: rgba(0,0,0,.02); }
.net-swatch-mgmt{ fill: rgba(0,0,0,.016); }
.net-swatch-exception{ fill: rgba(0,0,0,.012); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
  .skip-link{ transition: none; }
}
