/* ComSenOps - Common Sense Ops
   Minimal, clean, responsive. No frameworks required.
*/

:root{
  --bg: #0b0f14;
  --panel: #0f1620;
  --text: #e7eef7;
  --muted: #a9b6c6;
  --brand: #4da3ff;
  --brand2: #7af0c7;
  --border: rgba(231,238,247,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
  --max: 1040px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 10%, rgba(77,163,255,0.18), transparent 60%),
              radial-gradient(900px 600px at 80% 20%, rgba(122,240,199,0.12), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* --- Global background photo wash (subtle, all pages) --- */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("sky.jpg") center/cover no-repeat;
  opacity: 0.06;
  filter: saturate(1.02) contrast(1.02);
  pointer-events: none;
  z-index: -2;
}

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

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 20px; top: 20px; width:auto; height:auto;
  background: var(--panel); padding: 10px 12px; border-radius: 10px;
  border:1px solid var(--border); z-index:9999;
}

header{
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,0.75);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.brand img{ width: 34px; height: 34px; }

.navlinks{
  display:flex; gap: 14px; flex-wrap: wrap;
  justify-content: flex-end;
}
.navlinks a{
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}
.navlinks a[aria-current="page"]{
  color: var(--text);
  background: rgba(231,238,247,0.06);
  border: 1px solid var(--border);
}

/* --- Mobile nav: deliberate wrap (no hamburger required) --- */
@media (max-width: 720px){
  .nav{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .navlinks{
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .navlinks a{
    padding: 6px 10px;
  }
}

/* --- Hero background photo --- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 56px 0 18px;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("sky.jpg") center/cover no-repeat;
  opacity: 0.32;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}

/* --- Homepage hero: brighter, sunnier treatment --- */
.home .hero::before{
  opacity: 0.55;
  filter: saturate(1.25) brightness(1.15) contrast(1.05);
}
.home .hero::after{
  background:
    radial-gradient(800px 420px at 25% 20%, rgba(77,163,255,0.28), transparent 62%),
    linear-gradient(to bottom, rgba(11,15,20,0.15), rgba(11,15,20,0.55));
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(800px 420px at 25% 20%, rgba(77,163,255,0.22), transparent 62%),
              linear-gradient(to bottom, rgba(11,15,20,0.22), rgba(11,15,20,0.78));
}
.hero .container{ position: relative; z-index: 1; }

/* HERO LAYOUT: main panel full width, secondary panel below */
.hero-grid{ display: block; }
.hero-secondary{ margin-top: 18px; }

/* Basic card */
.card{
  background: rgba(15,22,32,0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card{
  padding: 28px;
  background: rgba(15,22,32,0.84);
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(231,238,247,0.03);
  font-weight: 650;
  font-size: 0.95rem;
}

.dot{
  width: 9px; height: 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 4px rgba(77,163,255,0.15);
}

h1{
  margin: 14px 0 10px;
  font-size: clamp(2.05rem, 3.6vw, 3.2rem);
  line-height: 1.1;
}

/* Use this on the first line of your H1 */
.nowrap{ white-space: nowrap; }

/* Helpers for controlled line-break behaviour in the homepage H1 */
.mobile-break{ display: inline; }
.desktop-break{ display: none; }

@media (min-width: 721px){
  .desktop-break{ display: inline; }
}

/* Mobile H1 tuning */
@media (max-width: 720px){
  h1{
    font-size: clamp(1.9rem, 7vw, 2.4rem);
    line-height: 1.15;
  }
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.07rem;
}

.cta-row{
  display:flex; flex-wrap: wrap; gap: 10px;
  margin-top: 14px;
}

/* Optional: nicer mobile CTAs (stack full width) */
@media (max-width: 720px){
  .cta-row{
    flex-direction: column;
    align-items: stretch;
  }
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
}

.btn.primary{
  background: linear-gradient(135deg, rgba(77,163,255,0.95), rgba(122,240,199,0.55));
  color: #07101a;
  border-color: rgba(255,255,255,0.16);
}
.btn.secondary{
  background: rgba(231,238,247,0.04);
  color: var(--text);
}

.side-card{
  padding: 22px;
  background: rgba(15,22,32,0.82);
}
.side-card h2{ margin: 0 0 8px; font-size: 1.1rem; }
.side-card p{ margin: 0 0 10px; color: var(--muted); }

.pills{ display:flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill{
  font-size: 0.92rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(231,238,247,0.03);
  border-radius: 999px;
  padding: 7px 10px;
}

section{ padding: 20px 0; }
.section-title{ margin: 0 0 10px; font-size: 1.35rem; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
.col-8{ grid-column: span 8; }
.col-7{ grid-column: span 7; }
.col-5{ grid-column: span 5; }
.col-12{ grid-column: span 12; }

@media (max-width: 920px){
  .col-6,.col-4,.col-8,.col-7,.col-5{ grid-column: span 12; }
}

.feature{ padding: 18px; }
.feature h3{ margin: 0 0 6px; font-size: 1.08rem; }
.feature p{ margin: 0; color: var(--muted); }

.list{ margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

.page-head{ padding: 28px 0 8px; }
.page-head h1{ font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 8px; }
.page-head p{ margin-top: 0; color: var(--muted); max-width: 70ch; }

.content-card{ padding: 22px; }

/* --- Footer: boring, low-attention legal line --- */
.footer{
  padding: 22px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 26px;
  color: var(--muted);
  text-align: center;
}

.small{ font-size: 0.92rem; }

.footer-nav{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a{ color: var(--muted); font-weight: 650; }

.footer-brand{ font-weight: 800; letter-spacing: 0.3px; }

.footer-legal{
  font-size: 0.62rem;
  opacity: 0.68;
  margin-top: 8px;
}

hr.sep{
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.form{ display:grid; gap: 10px; margin-top: 10px; }

.input, textarea{
  width: 100%;
  background: rgba(231,238,247,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--text);
  font-size: 1rem;
}

textarea{ min-height: 140px; resize: vertical; }
.note{ color: var(--muted); font-size: 0.95rem; }
