/* ===================================================================
   ANARCHY INFORMATION TECHNOLOGY — design system
   Palette drawn from the brand mark: fractured steel + electric blue
   on near-black. Angular clip-path panels echo the shattered "A".
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:        #08090c;
  --bg-panel:  #10131a;
  --bg-panel-2:#151922;
  --line:      #262b34;
  --steel:     #7b8492;
  --steel-lt:  #aeb6c0;
  --ice:       #e9f1fa;
  --blue:      #2f8fff;
  --blue-2:    #63b3ff;
  --blue-glow: #9fd6ff;

  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --edge: 18px; /* signature angular clip amount */
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  background:
    radial-gradient(circle at 15% -10%, rgba(47,143,255,0.07), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(124,108,240,0.06), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(20,184,166,0.05), transparent 50%),
    var(--bg);
  color:var(--steel-lt);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }

img{ max-width:100%; display:block; }

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}

h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--ice);
  font-weight:700;
  line-height:1.05;
  letter-spacing:0.01em;
}

h1{ font-size:clamp(2.6rem, 5vw, 4.4rem); }
h2{ font-size:clamp(1.9rem, 3.2vw, 2.7rem); }
h3{ font-size:1.35rem; }

p{ color:var(--steel-lt); max-width:62ch; }

.lede{
  font-size:1.15rem;
  color:var(--steel-lt);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--blue-2);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* ---------------- background texture ---------------- */
.grid-veil{
  position:fixed; inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    linear-gradient(rgba(47,143,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,143,255,0.05) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom, black, transparent 70%);
}

/* ---------------- header / nav ---------------- */
header.site{
  position:sticky; top:0; z-index:50;
  background:rgba(8,9,12,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 32px;
  max-width:1180px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{ height:46px; width:auto; }
.brand-text{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.05rem;
  color:var(--ice);
  letter-spacing:0.04em;
  line-height:1.1;
}
.brand-text span{
  display:block;
  font-family:var(--font-body);
  font-weight:500;
  font-size:0.62rem;
  color:var(--blue-2);
  letter-spacing:0.18em;
  margin-top:2px;
}
nav.links{ display:flex; gap:34px; }
nav.links a{
  font-family:var(--font-head);
  font-weight:600;
  font-size:0.98rem;
  color:var(--steel-lt);
  letter-spacing:0.02em;
  position:relative;
  padding:4px 0;
}
nav.links a:hover, nav.links a.active{ color:var(--ice); }
nav.links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--blue);
}
.nav-cta{
  font-family:var(--font-head); font-weight:700; font-size:0.92rem;
  color:var(--bg) !important; background:var(--blue);
  padding:10px 22px;
  clip-path:polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.nav-cta:hover{ background:var(--blue-2); color:var(--bg) !important; }

/* ---------------- burger + mobile menu ---------------- */
.burger{
  display:none;
  background:none;
  border:1px solid var(--line);
  color:var(--ice);
  width:44px; height:40px;
  align-items:center; justify-content:center;
  cursor:pointer;
}
.burger svg{ width:20px; height:20px; display:block; }
@media (max-width:860px){
  nav.links{ display:none; }
  .burger{ display:inline-flex; }
}
.mobile-menu{
  display:none;
  flex-direction:column;
  background:var(--bg-panel);
  border-bottom:1px solid var(--line);
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{
  padding:16px 32px;
  border-top:1px solid var(--line);
  font-family:var(--font-head);
  font-weight:600;
  font-size:1.02rem;
  color:var(--steel-lt);
}
.mobile-menu a.active{ color:var(--blue-2); }
.mobile-menu a:hover{ color:var(--ice); }
@media (min-width:861px){
  .mobile-menu{ display:none !important; }
}

/* ---------------- section accent themes (scoped to main content) ---------------- */
main.theme-ai-security{ --blue:#0891b2; --blue-2:#22d3ee; --blue-glow:#67e8f9; }
main.theme-products{ --blue:#6d5bd0; --blue-2:#8b7cf6; --blue-glow:#c4b5fd; }
main.theme-installers{ --blue:#0d9488; --blue-2:#2dd4bf; --blue-glow:#5eead4; }

/* ---------------- panel accent + glow blobs ---------------- */
.panel{ border-top:3px solid var(--blue); }

.hero, .page-hero{ position:relative; overflow:hidden; }
.hero::before, .page-hero::before{
  content:"";
  position:absolute;
  top:-140px; right:-100px;
  width:420px; height:420px;
  background:radial-gradient(circle, var(--blue) 0%, transparent 70%);
  opacity:0.16;
  filter:blur(10px);
  pointer-events:none;
  z-index:0;
}
.hero::after, .page-hero::after{
  content:"";
  position:absolute;
  bottom:-160px; left:-120px;
  width:380px; height:380px;
  background:radial-gradient(circle, var(--blue-2) 0%, transparent 70%);
  opacity:0.10;
  filter:blur(10px);
  pointer-events:none;
  z-index:0;
}
.hero .wrap, .page-hero .wrap{ position:relative; z-index:1; }

/* ---------------- vendor logo chip ---------------- */
.vendor-logo{
  width:52px; height:52px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--blue), var(--blue-2));
  color:#04101f;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:700; font-size:1.05rem;
  letter-spacing:0.01em;
  margin-bottom:16px;
}
.vendor-logo-img{
  height:44px;
  width:auto;
  max-width:140px;
  object-fit:contain;
  margin-bottom:16px;
  display:block;
}
.vendor-logo-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  border-radius:8px;
  padding:10px 16px;
  margin-bottom:16px;
}
.vendor-logo-chip img{
  height:32px;
  width:auto;
  max-width:130px;
  object-fit:contain;
  display:block;
}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-head); font-weight:700; font-size:1rem;
  padding:14px 30px;
  clip-path:polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  border:none; cursor:pointer;
}
.btn-primary{ background:var(--blue); color:#04101f; }
.btn-primary:hover{ background:var(--blue-2); }
.btn-ghost{
  background:transparent; color:var(--ice);
  border:1px solid var(--line);
  clip-path:polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue-2); }

/* ---------------- hero ---------------- */
.hero{
  position:relative; z-index:1;
  padding:96px 0 80px;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:56px;
  align-items:center;
}
.hero-eyebrow{
  font-family:var(--font-head); font-weight:600; font-size:0.95rem;
  color:var(--blue-2); letter-spacing:0.03em;
  margin-bottom:18px;
}
.hero h1{ margin-bottom:22px; }
.hero .lede{ margin-bottom:34px; max-width:52ch; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-art{
  position:relative;
}
.hero-art img{
  width:100%;
  filter:drop-shadow(0 0 60px rgba(47,143,255,0.18));
}
@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:280px; margin:0 auto; }
}

/* ---------------- section shells ---------------- */
section{ position:relative; z-index:1; padding:88px 0; }
.section-alt{ background:var(--bg-panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head .kicker{
  font-family:var(--font-head); font-weight:600; color:var(--blue-2);
  font-size:0.9rem; letter-spacing:0.03em; margin-bottom:10px; display:block;
}

/* ---------------- angular panel (signature motif) ---------------- */
.panel{
  background:var(--bg-panel-2);
  border:1px solid var(--line);
  clip-path:polygon(0 0, calc(100% - var(--edge)) 0, 100% var(--edge), 100% 100%, var(--edge) 100%, 0 calc(100% - var(--edge)));
  padding:32px;
}
.panel:hover{ border-color:rgba(47,143,255,0.35); }

/* ---------------- services grid ---------------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:860px){ .grid-3{ grid-template-columns:1fr 1fr; } .grid-2{ grid-template-columns:1fr; } }
@media (max-width:600px){ .grid-3{ grid-template-columns:1fr; } }

.service-icon{
  width:46px; height:46px;
  margin-bottom:20px;
  color:var(--blue-2);
}

.stat{
  display:flex; flex-direction:column; gap:6px;
}
.stat .num{
  font-family:var(--font-head); font-weight:700; color:var(--ice);
  font-size:2.6rem; line-height:1;
}
.stat .label{ color:var(--steel); font-size:0.92rem; }

/* ---------------- process list ---------------- */
.process{ display:flex; flex-direction:column; }
.process-step{
  display:grid; grid-template-columns:70px 1fr; gap:24px;
  padding:26px 0; border-top:1px solid var(--line);
}
.process-step:last-child{ border-bottom:1px solid var(--line); }
.process-step .n{
  font-family:var(--font-head); font-weight:700; font-size:1.6rem; color:var(--blue);
}

/* ---------------- CTA band ---------------- */
.cta-band{
  padding:70px 0;
  background:linear-gradient(120deg, var(--bg-panel) 0%, color-mix(in srgb, var(--blue) 18%, #0a0e16) 100%);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.cta-band .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h2{ margin:0; max-width:520px; }

/* ---------------- footer ---------------- */
footer.site{
  border-top:1px solid var(--line);
  padding:56px 0 30px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px;
  margin-bottom:40px;
}
.footer-grid h4{ font-size:0.95rem; color:var(--ice); margin-bottom:16px; }
.footer-grid ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ color:var(--steel); font-size:0.94rem; }
.footer-grid a:hover{ color:var(--blue-2); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding-top:24px; border-top:1px solid var(--line);
  color:var(--steel); font-size:0.85rem;
}
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---------------- forms (contact) ---------------- */
.form-field{ margin-bottom:20px; display:flex; flex-direction:column; gap:8px; }
.form-field label{ font-family:var(--font-head); font-weight:600; color:var(--ice); font-size:0.92rem; }
.form-field input, .form-field textarea, .form-field select{
  background:var(--bg-panel-2);
  border:1px solid var(--line);
  color:var(--ice);
  padding:13px 16px;
  font-family:var(--font-body); font-size:0.98rem;
}
.form-field textarea{ resize:vertical; min-height:130px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }

.contact-info{ display:flex; flex-direction:column; gap:22px; }
.contact-info .item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info .label{ font-family:var(--font-head); color:var(--ice); font-weight:600; font-size:0.95rem; }

/* ---------------- scroll reveal ---------------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible{
  opacity:1;
  transform:none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------------- section illustrations ---------------- */
.section-art{
  display:flex;
  justify-content:center;
  align-items:center;
  max-width:380px;
  margin:0 auto 36px;
}
.section-art svg{ width:100%; height:auto; display:block; }
.section-art-inline{
  max-width:260px;
  margin:0 0 24px;
}

/* ---------------- page hero (inner pages) ---------------- */
.page-hero{
  padding:70px 0 56px;
  border-bottom:1px solid var(--line);
}
.page-hero .kicker{
  font-family:var(--font-head); color:var(--blue-2); font-weight:600;
  letter-spacing:0.03em; margin-bottom:14px; display:block;
}
