:root{
  --bg:#0b0f14;
  --card:#101826;
  --text:#e8eef7;
  --muted:#b8c2d6;
  --line:#1d2a3d;
  --accent:#7aa7ff;
}

*{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:linear-gradient(180deg,var(--bg),#070a0f);
  color:var(--text);
  line-height:1.55;
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--accent);text-decoration:none;}
a:hover{text-decoration:underline;}

.container{
  max-width:920px;
  margin:0 auto;
  padding:28px 18px;
}

/* Header / Nav */
.header{
  position:sticky;
  top:0;
  background:rgba(11,15,20,0.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  z-index:10;
}

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

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand .logo{
  width:40px;
  height:40px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid var(--line);
}

.brand-title{
  font-weight:700;
  letter-spacing:.2px;
}
.brand-title a{color:var(--text);}

.brand-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.navlinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  color:var(--muted);
  font-size:14px;
}

.navlinks a{
  color:var(--text);
  opacity:.9;
}
.navlinks a:hover{opacity:1;}

/* Hide current page link (requires body[data-page] + a[data-nav]) */
body[data-page="home"]     .navlinks a[data-nav="home"],
body[data-page="services"] .navlinks a[data-nav="services"],
body[data-page="how"]      .navlinks a[data-nav="how"],
body[data-page="policies"] .navlinks a[data-nav="policies"],
body[data-page="contact"]  .navlinks a[data-nav="contact"]{
  display:none;
}

/* Layout */
.hero{
  padding:34px 0 10px;
  text-align:center;
}

.hero h1{
  font-size:40px;
  line-height:1.1;
  margin:0 0 10px;
}

.hero p,
p.sub{
  margin:0 auto;
  max-width:70ch;
  color:var(--muted);
}

.section{margin:22px 0;}
.section h2{
  text-align:center;
  margin:0 0 10px;
  font-size:22px;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:22px;
}
@media (min-width:820px){
  .grid{grid-template-columns:1fr 1fr;}
}

/* Cards */
.card{
  background:rgba(16,24,38,.72);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  text-align:center;
}

.card h2{margin:0 0 10px;font-size:18px;}
.card p{margin:0;color:var(--muted);}

.card ul,
.card ol{
  display:inline-block;
  text-align:left;
  margin:0 auto;
}

.lead{color:var(--muted);text-align:center;max-width:80ch;margin:0 auto 14px;}
.center{max-width:70ch;margin:0 auto;text-align:center;color:var(--muted);}

.small{font-size:13px;color:var(--muted);}
.muted{color:var(--muted);}

hr{
  border:0;
  border-top:1px solid var(--line);
  margin:18px auto;
  max-width:720px;
}

/* Buttons / Badges */
.links{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:8px;
}

.badge,
.btn{
  display:inline-block;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(16,24,38,.6);
  color:var(--text);
  font-size:14px;
  text-decoration:none;
}

.badge:hover,
.btn:hover{
  text-decoration:none;
  border-color:rgba(122,167,255,.6);
}

.badge-big{
  font-size:1.15rem;
  padding:14px 22px;
  min-width:260px;
  text-align:center;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  margin-top:34px;
  padding:22px 0;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

.footer-links a{color:var(--muted);}
.footer-links a:hover{color:var(--text);}

/* Images */
.logo-wide{
  max-width:720px;
  width:100%;
  margin:0 auto;
  border-radius:16px;
  border:1px solid var(--line);
}

/* Rainbow headline (moved here so you can remove inline CSS from index.html later) */
.ojc-rainbow{
  font-weight:800;
  letter-spacing:.02em;
  background:linear-gradient(
    90deg,
    #ff004c,#ff7a00,#ffd400,#00d26a,#00b7ff,#7a5cff,#ff004c
  );
  background-size:300% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 12px rgba(255,255,255,.25);
  animation:ojc-rainbow-move 2.8s linear infinite;
}

@keyframes ojc-rainbow-move{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}
