/* ============================================================
   QSECS — Quantum Security Solutions
   Shared stylesheet (vanilla, no build step)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&display=swap');

/* ---- Theme tokens ---- */
:root, [data-theme="dark"] {
  --bg:#060c18; --surface:#0d1927; --card:#0f1e2e;
  --text:#dde5f0; --muted:#9cbfe3; --border:rgba(255,255,255,.07);
  --nav-bg:rgba(6,12,24,.92); --sect-bg:rgba(255,255,255,.015);
  --field-bg:rgba(255,255,255,.04);
  --accent:#fd7014; --accent-hover:#e55f00;
  --hero-grad:linear-gradient(135deg,#060c18 0%,#0d1f35 100%);
}
[data-theme="light"] {
  --bg:#f0f4f8; --surface:#ffffff; --card:#ffffff;
  --text:#0f1e2e; --muted:#414b5a; --border:rgba(0,0,0,.09);
  --nav-bg:rgba(240,244,248,.92); --sect-bg:rgba(0,0,0,.02);
  --field-bg:rgba(0,0,0,.03);
  --hero-grad:linear-gradient(135deg,#f0f4f8 0%,#e6f0fb 100%);
}

* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size: 1.25em; }
body {
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif,sans-serif; 
  background:var(--bg); color:var(--text);
  min-height:100vh; transition:background .3s,color .3s; line-height:1.6; 
}
a { color:inherit; }
img { max-width:100%; display:block; }

/* ---- Utility ---- */
.wrap { max-width:1360px; margin:0 auto; padding:0 5%; }
.accent { color:var(--accent); }
.center { text-align:center; }

/* ---- Buttons ---- */
.btn {
  background:var(--accent); color:#fff; border:none;
  padding:12px 26px; border-radius:8px; font-family:'Rajdhani',sans-serif;
  font-weight:700; font-size:0.9375rem; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; gap:8px; letter-spacing:.5px;
  transition:all .25s;
}
.btn:hover { background:var(--accent-hover); transform:translateY(-2px); box-shadow:0 8px 28px rgba(253,112,20,.38); }
.btn-o {
  background:transparent; color:var(--accent); border:2px solid var(--accent);
  padding:10px 24px; border-radius:8px; font-family:'Rajdhani',sans-serif;
  font-weight:700; font-size:0.9375rem; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; gap:8px; letter-spacing:.5px; transition:all .25s;
}
.btn-o:hover { background:rgba(253,112,20,.1); transform:translateY(-2px); }
.btn svg, .btn-o svg { width:17px; height:17px; }

/* ---- Badge ---- */
.badge {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(253,112,20,.1); color:var(--accent);
  border:1px solid rgba(253,112,20,.3); padding:5px 14px; border-radius:100px;
  font-size:0.6875rem; font-weight:700; letter-spacing:1.2px; text-transform:uppercase;
  font-family:'Rajdhani',sans-serif; margin-bottom:20px;
}
.badge svg { width:12px; height:12px; }

/* ---- Headings ---- */
h1,h2,h3 { font-family:'Rajdhani',sans-serif; font-weight:700; line-height:1.12; }
.h1 { font-size:clamp(2.125rem,5vw,3.875rem); margin-bottom:20px; }
.h2 { font-size:clamp(1.75rem,3.8vw,2.875rem); margin-bottom:14px; }
.lead { color:var(--muted); font-size:1.0625rem; line-height:1.82; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position:sticky; top:0; z-index:200; height:68px;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  background:var(--nav-bg); border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; padding:0 5%;
}
.nav-logo { height:38px; cursor:pointer; }
.nav-links { display:flex; gap:30px; align-items:center; }
.nav-a { text-decoration:none; color:var(--muted); font-weight:500; font-size:0.9375rem; transition:color .2s; }
.nav-a:hover, .nav-a.active { color:var(--accent); }
.theme-toggle {
  background:none; border:1px solid var(--border); padding:8px 10px;
  border-radius:8px; cursor:pointer; color:var(--muted); display:flex; align-items:center;
}
.theme-toggle:hover { border-color:var(--accent); color:var(--accent); }
.hamburger { display:none; background:none; border:none; cursor:pointer; color:var(--text); }
.mobile-menu { display:none; background:var(--surface); border-bottom:1px solid var(--border); padding:18px 5%; flex-direction:column; gap:16px; }
.mobile-menu.open { display:flex; }

@media(max-width:820px){
  .nav-links { display:none; }
  .nav-mobile { display:flex; align-items:center; gap:10px; }
}
@media(min-width:821px){ .nav-mobile { display:none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position:relative; overflow:hidden; display:flex; align-items:center;
  min-height:88vh; padding-top:20px;
}
.hero.compact { min-height:64vh; background:var(--hero-grad); }
.hero-grid-bg {
  position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(253,112,20,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(253,112,20,.03) 1px,transparent 1px);
  background-size:64px 64px;
}
.hero-blob { position:absolute; border-radius:50%; pointer-events:none; }
.hero-blob.a { top:8%; left:-8%; width:480px; height:480px; background:radial-gradient(circle,rgba(253,112,20,.08) 0%,transparent 68%); animation:float1 9s ease-in-out infinite; }
.hero-blob.b { bottom:4%; right:-5%; width:400px; height:400px; background:radial-gradient(circle,rgba(14,165,233,.08) 0%,transparent 65%); animation:float2 11s ease-in-out infinite reverse; }
.hero-inner { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; width:100%; padding-top:60px; padding-bottom:60px; }
.hero-art { display:flex; justify-content:center; align-items:center; }
.hero-art img { width:100%; max-width:520px; filter:drop-shadow(0 20px 50px rgba(253,112,20,.18)); }
.hero-stats { display:flex; gap:24px; flex-wrap:wrap; margin-top:42px; }
.hero-stat .v { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.25rem; color:var(--accent); }
.hero-stat .s { font-size:0.6875rem; color:var(--muted); letter-spacing:.4px; }
.back-link { background:none; border:none; cursor:pointer; color:var(--muted); display:inline-flex; align-items:center; gap:6px; font-size:0.875rem; margin-bottom:22px; padding:0; text-decoration:none; }
.back-link:hover { color:var(--accent); }
.hero-icon { width:72px; height:72px; border-radius:16px; background:rgba(253,112,20,.15); display:flex; align-items:center; justify-content:center; }
.hero-icon svg { width:38px; height:38px; color:var(--accent); }

/* ---- Experience strip ---- */
.exp-strip { background:var(--accent); padding:20px 5%; }
.exp-strip-inner { max-width:1160px; margin:0 auto; display:flex; gap:40px; justify-content:center; flex-wrap:wrap; }
.exp-stat { text-align:center; }
.exp-stat .v { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.75rem; color:#fff; line-height:1; }
.exp-stat .l { font-size:0.8125rem; color:rgba(255,255,255,.85); margin-top:3px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding:90px 5%; }
.section.alt { background:var(--sect-bg); }
.section-head { text-align:center; margin-bottom:56px; }
.section-head .lead { max-width:600px; margin:0 auto; }

/* ---- Services 3-col (HOME) ---- */
.svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.svc-card {
  background:var(--card); border:1px solid var(--border); border-radius:20px;
  padding:38px 30px; display:flex; flex-direction:column; gap:18px;
  transition:all .3s ease; cursor:pointer; position:relative; overflow:hidden;
  text-decoration:none; color:inherit;
}
.svc-card:hover { transform:translateY(-8px); box-shadow:0 24px 60px rgba(253,112,20,.18); border-color:rgba(253,112,20,.5); }
.svc-num { position:absolute; right:24px; top:14px; font-family:'Rajdhani',sans-serif; font-weight:700; font-size:5rem; color:rgba(253,112,20,.06); line-height:1; user-select:none; }
.svc-icon { width:66px; height:66px; border-radius:16px; background:rgba(253,112,20,.12); display:flex; align-items:center; justify-content:center; }
.svc-icon svg { width:36px; height:36px; color:var(--accent); }
.svc-title { font-size:clamp(1.5rem,2.6vw,2rem); line-height:1.12; }
.svc-sub { color:var(--accent); font-size:0.8125rem; font-weight:500; }
.svc-desc { color:var(--muted); font-size:0.875rem; line-height:1.75; }
.tag-row { display:flex; flex-wrap:wrap; gap:7px; }
.tag { background:rgba(253,112,20,.1); color:var(--accent); border:1px solid rgba(253,112,20,.25); padding:4px 11px; border-radius:6px; font-size:0.6875rem; font-weight:600; font-family:'Rajdhani',sans-serif; letter-spacing:.4px; }
.svc-cta { margin-top:auto; display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-family:'Rajdhani',sans-serif; font-weight:700; font-size:0.9375rem; }
.svc-cta svg { width:17px; height:17px; }

/* ---- Why QSECS ---- */
.why-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.why-list { display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.why-item { display:flex; align-items:flex-start; gap:12px; }
.why-item svg { width:18px; height:18px; color:var(--accent); min-width:18px; margin-top:3px; }
.why-item p { color:var(--muted); font-size:0.9375rem; line-height:1.6; }
.stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:28px 20px; text-align:center; transition:all .3s; }
.stat-card:hover { border-color:rgba(253,112,20,.4); transform:translateY(-4px); }
.stat-card svg { width:22px; height:22px; color:var(--accent); margin-bottom:10px; }
.stat-card .num { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:2.125rem; color:var(--accent); line-height:1; }
.stat-card .lbl { font-size:0.8125rem; color:var(--muted); margin-top:5px; font-weight:500; }

/* ---- Coverage / module grid (landing pages) ---- */
.mod-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:20px; }
.mod-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:26px 22px; transition:all .25s; }
.mod-card:hover { border-color:rgba(253,112,20,.4); transform:translateY(-4px); }
.mod-card .ic { width:46px; height:46px; background:rgba(253,112,20,.12); border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.mod-card .ic svg { width:22px; height:22px; color:var(--accent); }
.mod-card h3 { font-size:1.125rem; margin-bottom:8px; }
.mod-card p { color:var(--muted); font-size:0.8125rem; line-height:1.7; }

/* ---- Urgency banner ---- */
.urgency { background:rgba(220,38,38,.08); border:1px solid rgba(220,38,38,.22); border-radius:12px; padding:20px 24px; display:flex; gap:16px; align-items:flex-start; margin-bottom:36px; }
[data-theme="light"] .urgency { background:rgba(220,38,38,.06); }
.urgency svg { width:22px; height:22px; color:#ef4444; min-width:22px; margin-top:2px; }
.urgency .t { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1rem; color:#ef4444; margin-bottom:4px; }
.urgency p { font-size:0.875rem; line-height:1.7; color:var(--muted); }
.urgency strong { color:#ef4444; }

/* ---- Workflow steps ---- */
.workflow { max-width:860px; margin:0 auto; }
.wf-step { display:flex; gap:0; }
.wf-rail { display:flex; flex-direction:column; align-items:center; width:56px; min-width:56px; }
.wf-num { width:44px; height:44px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(253,112,20,.4); z-index:1; flex-shrink:0; }
.wf-num span { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.125rem; color:#fff; }
.wf-connector { width:2px; flex:1; min-height:40px; background:linear-gradient(var(--accent),rgba(253,112,20,.12)); }
.wf-content { padding-left:20px; padding-top:8px; padding-bottom:28px; }
.wf-content .head { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.wf-content .head svg { width:18px; height:18px; color:var(--accent); }
.wf-content .head span { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:1.125rem; }
.wf-content p { color:var(--muted); font-size:0.875rem; line-height:1.7; }

/* ---- CTA band ---- */
.cta-band { background:linear-gradient(135deg,rgba(253,112,20,.12),rgba(253,112,20,.04)); border:1px solid rgba(253,112,20,.25); border-radius:18px; padding:40px 32px; text-align:center; }
.cta-band h2 { font-size:1.875rem; margin-bottom:14px; }
.cta-band p { color:var(--muted); font-size:1rem; margin-bottom:24px; }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.form-card { background:var(--card); border:1px solid var(--border); border-radius:18px; padding:clamp(24px,4vw,44px); }
.form-label-grp { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:0.875rem; letter-spacing:.8px; text-transform:uppercase; color:var(--muted); margin-bottom:16px; }
.svc-select-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:28px; }
.svc-select {
  border-radius:14px; border:2px solid var(--border); background:var(--field-bg);
  padding:18px 16px; cursor:pointer; transition:all .2s;
  display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; position:relative;
}
.svc-select:hover { border-color:rgba(253,112,20,.5); }
.svc-select.selected { border-color:var(--accent); background:rgba(253,112,20,.08); }
.svc-select .circle { width:52px; height:52px; border-radius:50%; background:rgba(253,112,20,.08); display:flex; align-items:center; justify-content:center; transition:all .2s; }
.svc-select.selected .circle { background:rgba(253,112,20,.18); }
.svc-select .circle svg { width:28px; height:28px; color:var(--accent); }
.svc-select .name { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:0.875rem; margin-bottom:4px; }
.svc-select.selected .name { color:var(--accent); }
.svc-select .d { font-size:0.6875rem; color:var(--muted); line-height:1.5; }
.svc-select .check { position:absolute; top:10px; right:10px; width:22px; height:22px; border-radius:50%; background:var(--accent); display:none; align-items:center; justify-content:center; }
.svc-select.selected .check { display:flex; }
.svc-select .check svg { width:13px; height:13px; color:#fff; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field label { display:block; font-size:0.6875rem; font-weight:700; color:var(--muted); margin-bottom:6px; letter-spacing:1px; text-transform:uppercase; font-family:'Rajdhani',sans-serif; }
.field input, .field textarea, .field select {
  width:100%; padding:13px 16px; border-radius:8px; border:1.5px solid var(--border);
  background:var(--field-bg); color:var(--text); font-size:0.9375rem; font-family:'Barlow',sans-serif;
  outline:none; transition:border-color .2s; box-sizing:border-box;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(253,112,20,.14); }
.field textarea { resize:vertical; }
.form-note { text-align:center; color:var(--muted); font-size:0.75rem; margin-top:16px; }
.form-success { background:var(--card); border:1px solid rgba(253,112,20,.35); border-radius:18px; padding:56px 40px; text-align:center; }
.form-success .ring { width:64px; height:64px; background:rgba(253,112,20,.15); border-radius:50%; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; }
.form-success .ring svg { width:32px; height:32px; color:var(--accent); }
.hidden { display:none !important; }

/* ---- Contact page split ---- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-info { display:flex; flex-direction:column; gap:16px; }
.contact-row { display:flex; gap:14px; align-items:center; }
.contact-row .ic { width:42px; height:42px; border-radius:10px; background:rgba(253,112,20,.1); display:flex; align-items:center; justify-content:center; color:var(--accent); flex-shrink:0; }
.contact-row .ic svg { width:18px; height:18px; }
.contact-row .lbl { font-size:0.6875rem; color:var(--muted); text-transform:uppercase; letter-spacing:1px; font-family:'Rajdhani',sans-serif; margin-bottom:2px; }
.contact-row .val { font-size:0.9375rem; font-weight:500; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { max-width:820px; margin:0 auto; }
.legal h2 { font-size:1.375rem; margin:36px 0 12px; }
.legal p { color:var(--muted); font-size:0.9375rem; line-height:1.85; margin-bottom:20px; }
.legal .updated { color:var(--muted); font-size:0.875rem; margin-bottom:36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top:1px solid var(--border); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); background:var(--nav-bg); padding:40px 5%; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-col h4 { font-family:'Rajdhani',sans-serif; font-weight:700; font-size:0.875rem; letter-spacing:1.2px; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.footer-col a { display:block; text-decoration:none; color:var(--muted); font-size:0.875rem; margin-bottom:10px; transition:color .2s; }
.footer-col a:hover { color:var(--accent); }
.footer-about p { color:var(--muted); font-size:0.875rem; line-height:1.75; margin-top:16px; max-width:300px; }
.footer-logo { height:34px; }
.footer-contact { color:var(--muted); font-size:0.8125rem; display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.footer-contact svg { width:14px; height:14px; }
.footer-bottom { border-top:1px solid var(--border); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; align-items:center; }
.footer-bottom p { color:var(--muted); font-size:0.8125rem; }
.footer-bottom .links { display:flex; gap:20px; }
.footer-bottom a { color:var(--muted); font-size:0.8125rem; text-decoration:none; }
.footer-bottom a:hover { color:var(--accent); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeup { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-22px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
.a1{animation:fadeup .7s ease .1s both} .a2{animation:fadeup .7s ease .25s both}
.a3{animation:fadeup .7s ease .4s both} .a4{animation:fadeup .7s ease .55s both}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:900px){
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
}
@media(max-width:768px){
  .hero-inner { grid-template-columns:1fr; }
  .hero-art { order:-1; margin-bottom:20px; }
  .hero-art img { max-width:360px; }
  .svc-grid { grid-template-columns:1fr; }
  .why-grid { grid-template-columns:1fr; gap:36px; }
  .form-grid { grid-template-columns:1fr; }
  .svc-select-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
}
@media(max-width:520px){
  .svc-card { padding:30px 22px; }
  .section { padding:60px 5%; }
}
