:root{
  --bg: #07080b;
  --text: #e9ecf1;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --line: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.03);
  --shadow: rgba(0,0,0,0.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  line-height:1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

a{ color:var(--text); text-decoration:none; transition: opacity 0.2s, transform 0.2s, background 0.2s; }
a:hover{ opacity: 0.9; }
a:focus-visible{
  outline: 2px solid rgba(59,130,246,0.9);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

/* Typography */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 65ch; margin: 16px 0 24px; }

/* LAYOUT */
.page{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

/* TOPBAR */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7,8,11,0.6);
  border-bottom: 1px solid var(--line);
}

/* FULL-WIDTH INNER (no max-width clamp) */
.topbar-inner{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 24px;
}

.brand-name{ font-weight: 700; font-size: 18px; color: #fff; }
.brand-sub{ font-size: 13px; color: var(--muted); margin-top: 2px; }

.nav{ display:flex; gap: 20px; align-items: center; }
.nav a{ font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover{ color: var(--text); }
.mobile-only { display: none; }

/* HERO */
.hero{
  margin-bottom: 48px;
  animation: fadeIn 0.6s ease-out;
}

.hero-content{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.hero-header h1{
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 22ch;
}

.badges { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge{
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
}

/* Tech Stack Row */
.tech-stack-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.tech-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tech-tag{
  font-size: 13px;
  color: var(--text);
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  border: 1px solid transparent;
}
.tech-tag:hover{ border-color: rgba(255,255,255,0.2); }

/* Hero CTA */
.hero-cta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

/* Technical Note */
.technical-note{
  margin-top: 18px;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  font-size: 14px;
  color: var(--muted);
}
.technical-note strong{ color: var(--text); }

/* SECTIONS */
.section{ margin: 34px 0 0; }

.section-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 0 4px;
}
h2{ font-size: 18px; font-weight: 650; color: var(--text); }
.hint{ font-size: 13px; color: var(--muted); font-family: ui-monospace, monospace; }

/* Highlights row */
.highlights{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.highlight{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.highlight-title{
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(233,236,241,0.92);
  margin-bottom: 8px;
}
.highlight-body{
  color: var(--muted);
  font-size: 14px;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.card-link:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.card-link:active{ transform: translateY(-1px); }

.card-header{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  margin-bottom: 12px;
}
.card-title{ font-weight: 750; font-size: 16px; }
.card-status{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  color: var(--muted);
}

.card-desc{
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.tags{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: auto; }
.tags span{
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-meta{
  display:flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.meta-pill{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.35);
  color: rgba(233,236,241,0.92);
  background: rgba(59,130,246,0.10);
}
.meta-pill.subtle{
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.section-note{
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  padding: 0 4px;
}

/* CONTACT BAR */
.bottom-spacer{ height: 110px; }

.contactbar{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(7,8,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  z-index: 90;
}

/* FULL-WIDTH INNER (no max-width clamp) */
.contactbar-inner{
  width: 100%;
  padding: 16px 24px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.contactbar-title{ font-weight: 650; font-size: 14px; }
.contactbar-sub{ font-size: 12px; color: var(--muted); }

.btn{
  display:inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
}
.btn:hover{ background: #e7e7e7; }
.btn.subtle{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.subtle:hover{ background: rgba(255,255,255,0.05); }

/* RESPONSIVE */
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr 1fr; }
  .highlights{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .page{ padding-top: 80px; }
  .hero-content{ padding: 24px; }

  .tech-stack-row{ flex-direction: column; align-items:flex-start; gap: 8px; }
  .tech-tag{ font-size: 12px; }

  .brand-sub{ display:none; }
  .nav a:not(.mobile-only){ display:none; }
  .mobile-only{ display:block; }

  .contactbar-sub{ display:none; }
  .contactbar-inner{ padding: 12px 20px; }
  .btn{ padding: 8px 14px; }
}

/* Animations */
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
