/* =========================
   BASE.CSS
   - Tokens, Reset, Header, Global, Sections, Hero, Buttons, Posts, Footer
   - Font sizes in rem, layout/spacing mostly in px
   ========================= */

/* DESIGN TOKENS */
:root{
  --bg:#0b0c10;
  --bg2:#090a0f;
  --card:#11131a;
  --card2:#0f1117;

  --text:#f6f7fb;
  --muted:rgba(246,247,251,.68);

  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.06);

  --white:#ffffff;
  --black:#0b0c10;

  --radius:18px;
  --radius2:26px;

  --max:1100px;
  --pad:18px;

  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadowSoft: 0 12px 30px rgba(0,0,0,.22);
  --shadowEdge: 0 1px 0 rgba(255,255,255,.08);

  --font: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* 1rem = 16px */
html{font-size:16px}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:var(--font);
  background:radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.06), transparent 60%), var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}

/* Better focus */
a:focus-visible, button:focus-visible{
  outline:2px solid rgba(255,255,255,.55);
  outline-offset:3px;
  border-radius:12px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important;transition:none !important;animation:none !important}
}

/* =========================
   HEADER (light + soft edge)
   ========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 30;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

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

.header-left{display:flex;align-items:center}

.brand{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.25rem; /* 20px */
  color: #0b0c10;
}

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

.nav-link{
  position: relative;
  padding: 10px 2px;
  font-size: 1rem; /* 16px */
  font-weight: 500;
  color: rgba(11,12,16,.65);
  transition: color .2s ease;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom: 2px;
  height: 2px;
  width: 100%;
  background: rgba(11,12,16,.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.nav-link:hover{ color: rgba(11,12,16,.92); }
.nav-link:hover::after{ transform: scaleX(1); }

.nav-link.is-active{
  color: rgba(11,12,16,.92);
  font-weight: 600;
}
.nav-link.is-active::after{ transform: scaleX(1); }

.header-right{display:flex;align-items:center}
.header-social{display:flex;align-items:center;gap: 14px;}

.social-icon{
  width: 42px;height: 42px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius: 999px;
  color: rgba(11,12,16,.55);
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.social-icon:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.05);
  color: rgba(11,12,16,.85);
  border-color: rgba(0,0,0,.12);
}

.social-icon.is-disabled{opacity:.55;cursor:default}

/* =========================
   GLOBAL TYPOGRAPHY
   ========================= */
h1,h2,h3{letter-spacing:-.02em}
h1{
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.04;
  margin: 0 0 14px;
}
h2{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin: 0 0 12px;
}
p{margin:0 0 14px}
.lead{
  color: var(--muted);
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}

/* =========================
   SOFT DIVIDER + SECTIONS
   ========================= */
.section{
  padding: 54px 0;
  position: relative;
}

.section.soft-divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

.page-top-edge{
  position: relative;
}
.page-top-edge::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.22), transparent);
  pointer-events:none;
}

/* =========================
   HERO
   ========================= */
.hero{
  padding: 48px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:start;
}
.kicker{
  color: rgba(246,247,251,.62);
  font-size: 0.875rem; /* 14px */
  margin: 0 0 10px;
}
.meta{
  color: rgba(246,247,251,.62);
  font-size: 0.875rem; /* 14px */
  margin-top: 14px;
}

.hero-card{
  background: radial-gradient(900px 400px at 20% 10%, rgba(255,255,255,.06), transparent 50%), var(--card);
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadowSoft);
}
.hero-card ol{margin:12px 0 0;padding-left:18px;color:var(--muted);line-height:1.8}

/* =========================
   BUTTONS
   ========================= */
.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top: 18px}

.btn{
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  display:inline-flex;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, filter .2s ease, opacity .2s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(.98)}
.btn:active{transform:translateY(0)}

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover{border-color: rgba(255,255,255,.18)}

/* =========================
   CARDS / POSTS
   ========================= */
.posts{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 18px;
}
.post{
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%), var(--card2);
  border:1px solid var(--line2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.post:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow: var(--shadowSoft);
}
.post-title{font-weight: 800;color: var(--text);margin-bottom: 6px}
.post-date{color: rgba(246,247,251,.62);font-size: 0.8125rem; /* 13px */}

/* Generic article text (used on some pages) */
.article{padding: 40px 0}
.article p,.article li{color: var(--muted);line-height: 1.9}

/* =========================
   FOOTER
   ========================= */
.footer{
  border-top: 1px solid var(--line2);
  padding: 54px 0 22px;
  color: var(--muted);
  background: radial-gradient(1100px 600px at 70% 0%, rgba(255,255,255,.05), transparent 55%);
}

.footer-top{
  display:grid;
  grid-template-columns: 1.55fr 0.75fr 1fr;
  column-gap: clamp(34px, 6vw, 90px);
  row-gap: 26px;
  align-items:start;
}
.footer-mid{ padding-top: 6px; }
.footer-right{ padding-top: 6px; }

.footer-claim{
  margin:0;
  color:var(--text);
  font-size: clamp(42px, 5vw, 56px);
  line-height:1.02;
  letter-spacing:-.02em;
}

.footer-title{font-weight:800;color:var(--text);margin-bottom:12px}
.footer-nav{display:flex;flex-direction:column;gap:10px}
.footer-nav a{color:var(--muted);transition:color .2s ease}
.footer-nav a:hover{color:var(--text)}

.footer-address{font-size:0.875rem; /* 14px */ line-height:1.7}
.footer-strong{font-weight:800;color:var(--text)}
.footer-gap{height:10px}
.footer-contact{color:var(--muted);transition:color .2s ease}
.footer-contact:hover{color:var(--text)}

.footer-bottom{
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-bottom-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.footer-legal-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

.footer-legal-links a{
  color:var(--muted);
  font-size:0.875rem; /* 14px */
  position:relative;
  padding-bottom:2px;
  transition:color .2s ease;
}
.footer-legal-links a::after{
  content:"";
  position:absolute;
  left:0;bottom:0;height:1px;width:0%;
  background:rgba(255,255,255,.55);
  transition:width .2s ease;
}
.footer-legal-links a:hover{color:var(--text)}
.footer-legal-links a:hover::after{width:100%}

.footer-copy{
  color:rgba(255,255,255,.65);
  font-size:0.875rem; /* 14px */
  text-align:right;
  white-space:nowrap;
}

/* =========================
   RESPONSIVE (Base)
   ========================= */
@media(max-width:900px){
  .header-inner{justify-content:space-between}
  .nav{gap: 16px}

  .hero-grid{grid-template-columns: 1fr}
  .posts{grid-template-columns: 1fr}

  .footer-top{
    grid-template-columns:1fr;
    column-gap: 0;
    row-gap: 22px;
  }

  .footer-bottom-row{
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-copy{
    text-align:left;
    white-space:normal;
  }
}