:root{
  --bg: #050B19;
  --bg2:#0A1430;
  --text:#EEF2FF;
  --muted:#A7B0C6;

  --card: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.12);

  --accent:#FD3845;     /* neon red from logo */
  --accent2:#FF6B75;    /* softer red for gradients */
  --logoGrey:#9299A4;   /* logo text grey */

  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 10%, rgba(102,227,255,.18), transparent 60%),
              radial-gradient(1200px 700px at 80% 30%, rgba(167,255,131,.12), transparent 60%),
              linear-gradient(180deg, var(--bg), #070b14);
  color:var(--text);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(100%, calc(var(--max) + 40px));
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 200px;
}
.brand img{
  width:40px;
  height:40px;
  border-radius: 10px;
  object-fit:contain;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}
.brand .name{
  font-weight: 800;
  letter-spacing: .3px;
}
.brand .tag{
  font-size: 12px;
  color: var(--muted);
  margin-top:2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  font-weight: 600;
  color: var(--muted);
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a.active, .nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  text-decoration:none;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: none;
  cursor:pointer;
  font-weight: 700;
}
.button:hover{
  background: rgba(255,255,255,.10);
  text-decoration:none;
}
.button.primary{
  border-color: rgba(102,227,255,.35);
  background: linear-gradient(135deg, rgba(102,227,255,.20), rgba(167,255,131,.16));
}
.button.primary:hover{
  background: linear-gradient(135deg, rgba(102,227,255,.28), rgba(167,255,131,.20));
}

/* ===== Homepage upgrades ===== */
.hero{
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-scrim{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(253,56,69,.22), transparent 60%),
    radial-gradient(900px 520px at 80% 35%, rgba(255,107,117,.12), transparent 60%),
    linear-gradient(180deg, rgba(5,11,25,.65), rgba(5,11,25,.92));
}

.hero-content{
  position: relative;
  padding: 64px 0;
  display:flex;
  align-items:center;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 18px;
  align-items: start;
}

.kicker{
  display:inline-block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1{
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

.hero .lead{
  margin-top: 14px;
  max-width: 62ch;
}

.hero-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
}

.trust-row{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-pill{
  font-size: 12px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card h3{ margin: 0; }
.hero-card .muted{ margin-top: 8px; color: var(--muted); }

.mini-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mini-link{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
}
.mini-link:hover{
  border-color: rgba(253,56,69,.35);
  background: rgba(253,56,69,.08);
}

.hero-card-cta{ margin-top: 14px; }

.section-head{
  max-width: 72ch;
  margin-bottom: 16px;
}

.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features .card, .services-preview .card{
  height: 100%;
}

.center-actions{
  margin-top: 16px;
  display:flex;
  justify-content: center;
}

.cta{
  display:flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: 82vh; }
}


/* Hero with video */
.hero{
  position: relative;
  overflow:hidden;
  border-bottom: 1px solid var(--border);
}
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.05) brightness(.70);
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(102,227,255,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(167,255,131,.16), transparent 60%),
    linear-gradient(180deg, rgba(7,11,20,.25), rgba(7,11,20,.85));
}
.hero-inner{
  position: relative;
  padding: 76px 0 62px;
}
.hero h1{
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.hero p{
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}
.hero .kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  color: var(--muted);
  margin-bottom: 16px;
  width: fit-content;
}

/* Sections */
.section{
  padding: 44px 0;
}
.section h2{
  margin:0 0 12px;
  font-size: 28px;
  letter-spacing: -.2px;
}
.section p.lead{
  margin:0 0 22px;
  color: var(--muted);
  max-width: 80ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card{
  grid-column: span 4;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3{ margin:0 0 6px; }
.card p{ margin:0; color: var(--muted); }

/* Small helpers for Services pages */
.card .button { 
  margin-top: 12px; 
}

.breadcrumbs { 
  color: var(--muted); 
  font-size: 13px; 
  margin: 0 0 12px; 
}

.breadcrumbs a { 
  color: var(--muted); 
}


.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.panel{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Forms */
form{
  display:grid;
  gap: 12px;
}
label{
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(102,227,255,.55);
  box-shadow: 0 0 0 4px rgba(102,227,255,.12);
}
textarea{ min-height: 120px; resize: vertical; }

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.notice{
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(7,11,20,.55);
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  padding: 26px 0;
}
.footer-nav, .social{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  color: var(--muted);
}
.small{
  color: var(--muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px){
  .card{ grid-column: span 6; }
  .split{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .nav{ display:none; }
  .card{ grid-column: span 12; }
  .form-row{ grid-template-columns: 1fr; }
}

.brand img{
  height: 56px;      /* try 56–72 */
  width: auto;
  display: block;
}

@media (max-width: 720px){
  .brand img{
    height: 44px;
  }
}

/* ===== Image-driven cards & page hero ===== */

.hero{
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-scrim{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(253,56,69,.22), transparent 60%),
    radial-gradient(900px 520px at 80% 35%, rgba(255,107,117,.12), transparent 60%),
    linear-gradient(180deg, rgba(5,11,25,.65), rgba(5,11,25,.92));
}
.hero-content{
  position: relative;
  padding: 64px 0;
  display:flex;
  align-items:center;
}
.hero-grid{
  display:grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 18px;
  align-items: start;
}

.kicker{
  display:inline-block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1{
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}
.hero .lead{ margin-top: 14px; max-width: 62ch; }
.hero-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
}

.card-thumb{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.card .muted{ color: var(--muted); }

.section-head{
  max-width: 72ch;
  margin-bottom: 16px;
}

.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.center-actions{
  margin-top: 16px;
  display:flex;
  justify-content: center;
}

/* Product page hero image */
.page-hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: start;
}
.page-hero-img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .page-hero{ grid-template-columns: 1fr; }
  .page-hero-img{ height: 240px; }
}
.hero-service-stack{
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-service-stack .card{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

.hero-service-stack .card-thumb{
  height: 110px;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

body, h1, h2, h3, h4, h5, h6, p, a, button, span {
  text-transform: none !important;
}

/* ================================
   Services card images (FIX)
   Paste at END of styles.css
================================ */

/* Only for cards that include images */
.card.card-media{
  padding: 0;              /* remove the default 18px padding */
  overflow: hidden;        /* stops big images overflowing */
  display: flex;
  flex-direction: column;
}

/* The image itself */
.card-img{
  width: 100%;
  height: 160px;           /* adjust: try 140–220 */
  object-fit: cover;       /* crops nicely without stretching */
  display: block;
  border-bottom: 1px solid var(--border);
}

/* Text area under the image */
.card-body{
  padding: 18px;           /* restores padding for the text area */
}

/* Optional: keep card buttons from stretching */
.card-body .button{
  width: fit-content;
}

/* ================================
   Article images
================================ */
.article-content img{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.article-figure{
  margin: 18px 0;
}

.article-figure figcaption{
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Optional: a wide “hero” image at the top of an article */
.article-hero{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin: 14px 0 18px;
}

@media (max-width: 700px){
  .article-hero{ height: 220px; }
}

/* ================================
   Service/product detail images
================================ */
.panel-img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.inline-img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin: 14px 0;
}

@media (max-width: 700px){
  .panel-img{ height: 200px; }
  .inline-img{ height: 180px; }
}

/* ================================
   Clickable article cards
================================ */

.article-card{
  display: block;            /* makes anchor behave like div */
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.article-card .read-more{
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ================================
   Contact page layout fix
================================ */

/* Constrain the whole form panel */
.contact-panel{
  max-width: 980px;
  margin: 0 auto;
}

/* Make the form fill the panel */
.contact-panel form{
  width: 100%;
}

/* Two-column rows (Name/Email, Subject/Phone) */
.contact-panel .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

/* Ensure fields actually expand */
.contact-panel .form-row > div{
  min-width: 0;
}

/* Full-width blocks inside the form (Message, button) */
.contact-panel textarea,
.contact-panel button{
  width: 100%;
}

/* Make inputs less tall (optional tweak) */
.contact-panel input,
.contact-panel textarea{
  padding: 10px 12px;
  font-size: 0.95rem;
}

/* Reduce the message box height */
.contact-panel textarea{
  min-height: 150px;
  resize: vertical;
}

/* Mobile: stack into 1 column */
@media (max-width: 800px){
  .contact-panel .form-row{
    grid-template-columns: 1fr;
  }
}

/* ================================
   CONTACT PAGE: force sizing + layout
   (Paste at VERY bottom)
================================ */

/* 1) Cap overall content width on contact page */
.page-contact .container{
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2) If your split layout is stretching, stop it */
.page-contact .container.split{
  grid-template-columns: 1fr !important; /* makes it one column if split is causing issues */
}

/* 3) Make the form itself behave consistently */
.page-contact form{
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
}

/* 4) Force your input rows into a clean 2-column grid */
.page-contact .form-row{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  margin-bottom: 14px !important;
}

/* 5) Full-width fields */
.page-contact textarea,
.page-contact button{
  width: 100% !important;
}

/* 6) Reduce “too tall” inputs */
.page-contact input,
.page-contact textarea{
  padding: 10px 12px !important;
  font-size: 0.95rem !important;
}

/* 7) Reduce the message box height */
.page-contact textarea{
  min-height: 140px !important;
  resize: vertical;
}

/* 8) Mobile: stack rows */
@media (max-width: 800px){
  .page-contact .form-row{
    grid-template-columns: 1fr !important;
  }
}