/* ComSenOps - Common Sense Operations
   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;
}

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

/* More intentional link styling inside copy blocks */
p a, .note a, .content-card a, .feature a, .side-card a{
  color: rgba(77,163,255,0.98);
  text-decoration: none;
  border-bottom: 1px solid rgba(77,163,255,0.35);
  padding-bottom: 1px;
}
p a:hover, .note a:hover, .content-card a:hover, .feature a:hover, .side-card a:hover{
  border-bottom-color: rgba(122,240,199,0.55);
  text-decoration: none;
}

/* Make button links behave like buttons, not underlined links */
.btn, .btn:hover{
  border-bottom: none !important;
  text-decoration: none !important;
  color: inherit;
}

.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 (with subtitle) --- */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.brand img{ width: 34px; height: 34px; }

.brand-name{
  font-weight: 800;
}

.brand-sub{
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Hide subtitle on very small screens */
@media (max-width: 520px){
  .brand-sub{ display:none; }
}

.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 */
.hero-grid{ display: block; }
.hero-secondary{ margin-top: 18px; }

/* Cards */
.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;
}

.mobile-break{ display: inline; }
.desktop-break{ display: none; }

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

@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;
}

@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;
  cursor: pointer;
}

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

.side-card{
  padding: 22px;
  background: rgba(15,22,32,0.82);
}

.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; }

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

.col-6,.col-4,.col-8,.col-7,.col-5,.col-12{ grid-column: span 12; }
@media (min-width: 921px){
  .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; }
}

.feature{ padding: 18px; }
.list{ padding-left: 18px; color: var(--muted); }

.page-head{ padding: 28px 0 8px; }

.content-card{ padding: 22px; }

/* Resource callout */
.resource{
  display:flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(231,238,247,0.03);
  margin-top: 12px;
}
.resource .badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.icon-link{
  display:inline-flex;
  gap: 8px;
  font-weight: 750;
}
.icon-link::after{ content:"→"; }

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

.footer-brand{ font-weight: 800; }

.footer-legal{
  font-size: 0.62rem;
  opacity: 0.68;
}

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

.form{ display:grid; gap: 10px; }

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

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