/* ===== Finnav homepage tokens (ported 1:1) ===== */
:root{
  --background: 215 35% 6%;
  --foreground: 200 20% 95%;

  --card: 215 30% 9%;
  --card-foreground: 200 20% 95%;

  --popover: 215 30% 9%;
  --popover-foreground: 200 20% 95%;

  --primary: 180 100% 50%;
  --primary-foreground: 215 35% 6%;

  --secondary: 215 25% 12%;
  --secondary-foreground: 200 20% 95%;

  --muted: 215 25% 14%;
  --muted-foreground: 215 15% 50%;

  --accent: 165 100% 45%;
  --accent-foreground: 215 35% 6%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 200 20% 95%;

  --border: 215 25% 15%;
  --input: 215 25% 12%;
  --ring: 180 100% 50%;

  /* Custom Finnav tokens */
  --glow-primary: 180 100% 50%;
  --surface-raised: 215 28% 11%;
  --surface-hover: 215 28% 14%;
  --text-tertiary: 215 15% 40%;

  /* Blog-specific alias tokens (so blog.css stays readable) */
  --bg: var(--background);
  --text: var(--foreground);
  --text-muted: var(--muted-foreground);
  --surface: var(--card);
  --surface-2: var(--surface-raised);
  --surface-hovered: var(--surface-hover);
  --border-color: var(--border);
  --teal: var(--primary);
  --radius: 18px;
  --container: 1080px;

  --primary-gradient: linear-gradient(
    135deg,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.85)
  );
}


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: hsl(var(--bg));
  color: hsl(var(--text));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6{
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* Ambient glow like homepage */
body::before{
  content:"";
  position:fixed;
  inset:-20%;
  pointer-events:none;
  background:
    radial-gradient(900px 500px at 15% 10%, var(--mint-glow), transparent 60%),
    radial-gradient(800px 500px at 85% 15%, var(--primary-glow), transparent 55%),
    radial-gradient(700px 550px at 50% 110%, rgba(160,174,192,.10), transparent 55%);
  filter: blur(6px);
  opacity: .95;
  z-index:-1;
}

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

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

/* NAVBAR — match homepage structure */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  background: hsl(var(--background) / 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border-color) / 0.7);
}

.topbar-inner{
  max-width: var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns: 1fr auto 1fr; /* brand | nav | cta */
  align-items:center;
  padding: 14px 18px;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon{
  width: 28px;
  height: 28px;
  border-radius: 50%; /* matches the circular look */
}

.brand-name{
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: hsl(var(--teal));
}

.brand-mark{
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

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

.nav-link{
  color: rgba(240,244,248,.72);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 10px;
  border-radius: 10px;
  letter-spacing: -0.01em;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover{
  background: rgba(17,24,39,.55);
  color:#fff;
}

.nav-link[aria-current="page"]{
  color:#fff;
  font-weight: 600;
  position:relative;
}

.nav-link[aria-current="page"]::after{
  background: hsl(var(--teal));
}

.nav-link[aria-current="page"]::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: #00f5d4; /* closer to the homepage teal */
  opacity: .9;
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.nav-link.subtle{
  color: rgba(240,244,248,.78);
  background: transparent;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 18px;
  border-radius:999px;
  font-weight:850;
  letter-spacing:-0.01em;
  background: hsl(var(--teal));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 60px -15px hsl(var(--teal) / 0.4);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 14px 34px rgba(0,187,249,.22);
}

/* Hero */
.page-hero{
  text-align:center;
  padding: 34px 0 10px;
}
h1{
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  line-height:1.12;
  margin:0 0 12px;
  letter-spacing:-0.03em;
}
.lede{
  max-width: 78ch;
  margin: 0 auto 26px;
  color: var(--text-muted);
  font-size:1.05rem;
  text-wrap: balance;
  line-height:1.7;
}
.lede, .card p, .kicker{
  color: hsl(var(--text-muted));
}

/* Cards grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top: 18px;
}
@media (max-width: 980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 620px){.grid{grid-template-columns:1fr;}}

.card{
  position:relative;
  background: hsl(var(--surface) / 0.75);
  border: 1px solid hsl(var(--border-color) / 0.75);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(450px 240px at 10% 0%, rgba(0,245,212,.18), transparent 55%),
    radial-gradient(500px 260px at 100% 20%, rgba(0,187,249,.16), transparent 55%);
  opacity:0;
  transition: opacity .18s ease;
  pointer-events:none;
}
.card:hover{
  transform: translateY(-3px);
  background: hsl(var(--surface-hovered) / 0.85);
  border-color: hsl(var(--teal) / 0.55);
}
.card:hover::before{opacity:1}

.kicker{
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: rgba(240,244,248,.58);
}

.card h2{
  font-size:1.08rem;
  line-height:1.25;
  margin: 10px 0 8px;
  letter-spacing:-0.01em;
}

.card p{
  margin:0;
  color: var(--text-muted);
  display:-webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Footer */
.footer{
  max-width: var(--container);
  margin: 26px auto 0;
  padding: 22px 18px 0;
  border-top: 1px solid rgba(34,46,66,.55);
  display:flex;
  justify-content:space-between;
  gap: 14px;
  color: rgba(240,244,248,.60);
}
.footer a{color: rgba(240,244,248,.70)}
.footer a:hover{color:#fff}

/* Mobile navbar stacking */
@media (max-width: 760px){
  .topbar-inner{
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .nav{
    grid-column: 1 / -1;
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:6px;
  }
  .nav-cta{justify-content:flex-end;}
}
