/* ==========================================================
   Codinglobe — base styles
   Neutral, institutional tone. No personal branding.
   ========================================================== */

:root{
  --bg: #0c0d10;
  --bg-alt: #131519;
  --text: #eef0f3;
  --muted: #98a0ab;
  --border: #24211a;
  --accent: #dbb75b;
  --accent-contrast: #0c0d10;
  --radius: 12px;
  --maxw: 880px;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* ---------- Header ---------- */
header.site-header{
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.logo-img{ height: 28px; width: auto; display: block; }
.logo:hover{ text-decoration: none; }
nav a{
  color: var(--muted);
  font-size: 14.5px;
  margin-left: 24px;
}
nav a:hover{ color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .wrap{ position: relative; z-index: 1; }
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(219,183,91,0.14), transparent 60%),
    radial-gradient(40% 50% at 90% 10%, rgba(219,183,91,0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 42px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  animation: gridDrift 34s linear infinite;
}
@keyframes gridDrift{
  0%{ background-position: 0 0, 0 0, 0 0, 0 0; }
  100%{ background-position: 0 0, 0 0, 42px 42px, -42px 42px; }
}
@media (prefers-reduced-motion: reduce){
  .hero-bg{ animation: none; }
}
.hero h1{
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 680px;
}
.hero p.lede{
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* ---------- Sections ---------- */
section{
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type{ border-bottom: none; }

h2{
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h3{ font-size: 17px; margin: 0 0 6px; }

p{ margin: 0 0 12px; }
p.sub{ color: var(--muted); max-width: 620px; }

.status-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(219,183,91,0.1);
  border: 1px solid rgba(219,183,91,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.status-badge .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover{
  border-color: rgba(219,183,91,0.4);
  transform: translateY(-2px);
}
.card-icon{
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.card p{ color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Contact ---------- */
.contact-box{
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact-box .email{
  font-size: 18px;
  font-weight: 700;
}
.btn{
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 14.5px;
}
.btn:hover{ text-decoration: none; opacity: .9; }

/* ---------- Footer ---------- */
footer{
  padding: 32px 0 48px;
}
footer .wrap{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
footer nav a{
  margin: 0 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
footer nav a:hover{ color: var(--text); }

/* ---------- Legal pages ---------- */
.legal main{
  padding: 56px 0 72px;
  max-width: 720px;
}
.legal h1{
  font-size: 28px;
  margin: 0 0 28px;
  font-weight: 800;
}
.legal h2{
  font-size: 18px;
  margin: 32px 0 10px;
}
.legal p, .legal li{
  color: var(--muted);
  font-size: 15px;
}
.legal a{ color: var(--accent); }
.legal ul{ padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px){
  nav a{ margin-left: 14px; font-size: 13.5px; }
  .contact-box{ flex-direction: column; align-items: flex-start; }
}
