/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink: #FF6B9D;
  --yellow: #FFE156;
  --green: #7AFF8B;
  --cyan: #56D9FF;
  --black: #1a1a2e;
  --white: #FFFDF7;
  --border: 3px solid #1a1a2e;
  --shadow: 5px 5px 0 #1a1a2e;
  --shadow-lg: 8px 8px 0 #1a1a2e;
  --radius: 4px;
  --font: 'Space Grotesk', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
section { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }

/* === COMPONENTS === */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border: var(--border);
  cursor: pointer;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: none !important; }
.btn:active { transform: translate(4px, 4px); }
.btn-lg { padding: .9rem 2rem; font-size: 1.1rem; box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; box-shadow: 3px 3px 0 var(--black); border-radius: var(--radius); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-yellow { background: var(--yellow); }
.btn-cyan { background: var(--cyan); }
.btn-green { background: var(--green); }
.btn-dark { background: var(--black); color: var(--white); }

.highlight-pink { background: var(--pink); padding: 0 .3em; display: inline-block; transform: rotate(-1deg); }
.highlight-yellow { background: var(--yellow); padding: 0 .3em; }
.highlight-green { background: var(--green); padding: 0 .3em; }
.highlight-cyan { background: var(--cyan); padding: 0 .3em; }

.hidden { display: none !important; }

/* === NAV === */
.nav {
  border-bottom: var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.4rem; font-weight: 700; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: .9rem; }
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
}

/* === HERO === */
.hero { text-align: center; padding-top: 5rem; padding-bottom: 3rem; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--black);
  padding: .3rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}
.hero-sub { font-size: 1.15rem; max-width: 500px; margin: 1rem auto 2rem; opacity: .8; }
.hero-form { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; max-width: 550px; margin: 0 auto; }
.input-group {
  display: flex;
  align-items: center;
  border: var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  flex: 1;
  min-width: 240px;
  border-radius: var(--radius);
}
.input-prefix {
  padding: .8rem;
  font-weight: 500;
  font-size: .9rem;
  color: #888;
  white-space: nowrap;
  border-right: 2px solid var(--black);
  background: #f5f5f0;
}
.input-group input {
  border: none;
  outline: none;
  padding: .8rem;
  font-family: var(--font);
  font-size: 1rem;
  flex: 1;
  width: 100%;
  background: transparent;
}
.hero-hint { margin-top: 1rem; font-size: .85rem; color: #666; }
.try-btn {
  background: none; border: none; color: var(--pink); font-weight: 600;
  cursor: pointer; font-family: var(--font); font-size: .85rem; text-decoration: underline;
}

/* === STATS === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
  border-bottom: var(--border);
  max-width: 100%;
  padding: 2rem 1.5rem;
}
.stat-item { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 700; display: block; color: var(--yellow); }
.stat-label { font-size: .85rem; opacity: .7; }

/* === BEFORE/AFTER === */
.ba-grid { display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.ba-card {
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  width: 320px;
  border-radius: var(--radius);
}
.ba-before { background: #f0f0e8; }
.ba-after { background: var(--white); }
.ba-tag {
  display: inline-block;
  background: #ddd;
  border: 2px solid var(--black);
  padding: .2rem .7rem;
  font-weight: 600;
  font-size: .8rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.tag-green { background: var(--green); }
.ba-arrow { font-size: 2.5rem; font-weight: 700; }
.mock-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ccc; margin-bottom: .8rem; }
.mock-line { height: 10px; background: #ddd; margin-bottom: .5rem; border-radius: 2px; }
.mock-repo { height: 40px; background: #e8e8e0; border: 1px solid #ccc; margin-bottom: .5rem; border-radius: 2px; }
.w60 { width: 60%; } .w40 { width: 40%; } .w80 { width: 80%; }
.mock-avatar-color { width: 50px; height: 50px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--black); margin-bottom: .8rem; }
.mock-line-c { height: 10px; margin-bottom: .5rem; border: 2px solid var(--black); border-radius: 2px; }
.bg-pink { background: var(--pink); } .bg-yellow { background: var(--yellow); }
.bg-green { background: var(--green); } .bg-cyan { background: var(--cyan); } .bg-white { background: var(--white); }
.mock-stats-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.mock-stat { height: 30px; flex: 1; border: 2px solid var(--black); border-radius: 2px; }
.mock-repo-c { height: 35px; border: 2px solid var(--black); margin-bottom: .5rem; border-radius: 2px; }

/* === HOW IT WORKS === */
.how { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.step-card {
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  border-radius: var(--radius);
}
.step-num {
  position: absolute;
  top: -15px;
  left: -10px;
  background: var(--black);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: var(--border);
  border-radius: var(--radius);
}
.step-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.step-card p { font-size: .9rem; margin-top: .5rem; opacity: .8; }

/* === FEATURES === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.feature-card {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: relative;
  border-radius: var(--radius);
}
.feature-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .6rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  text-transform: uppercase;
}
.feature-status.live { background: var(--green); }
.feature-status.soon { background: var(--yellow); }
.feature-icon { font-size: 2rem; margin-bottom: .5rem; }
.feature-card p { font-size: .85rem; margin-top: .3rem; opacity: .8; }

/* === FOOTER === */
.footer {
  border-top: var(--border);
  background: var(--black);
  color: var(--white);
  padding: 2rem 1.5rem 1rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer .logo { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { opacity: .7; font-size: .9rem; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { text-align: center; font-size: .75rem; opacity: .5; margin-top: 1.5rem; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* === LOADING === */
.loading {
  position: fixed;
  inset: 0;
  background: rgba(255,253,247,.92);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-box {
  text-align: center;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  border-radius: var(--radius);
}
.loader-spinner {
  width: 50px; height: 50px;
  border: 4px solid #eee;
  border-top: 4px solid var(--pink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-box p { font-weight: 600; }

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: .7rem 1.5rem;
  border: var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .9rem;
  z-index: 1000;
  border-radius: var(--radius);
  animation: fadeUp .3s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* =========================================
   PORTFOLIO PAGE
   ========================================= */
.portfolio { padding: 0; max-width: 100%; }
.portfolio-nav {
  border-bottom: var(--border);
  background: var(--white);
  padding: .8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.portfolio-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Portfolio content */
.p-header {
  background: var(--black);
  color: var(--white);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.p-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 4px solid var(--pink);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
}
.p-name { font-size: 2rem; }
.p-bio { opacity: .8; max-width: 500px; margin: .5rem auto; }
.p-meta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; font-size: .85rem; opacity: .7; }
.p-links { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.p-links a {
  background: var(--pink);
  color: #fff;
  padding: .3rem .8rem;
  border: 2px solid var(--white);
  font-size: .8rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.p-section { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }
.p-section h2 { text-align: left; font-size: 1.5rem; margin-bottom: 1.2rem; }

/* Stats cards */
.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.p-stat-card {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  text-align: center;
  border-radius: var(--radius);
}
.p-stat-card:nth-child(1) { background: var(--pink); }
.p-stat-card:nth-child(2) { background: var(--yellow); }
.p-stat-card:nth-child(3) { background: var(--cyan); }
.p-stat-card:nth-child(4) { background: var(--green); }
.p-stat-val { font-size: 2rem; font-weight: 700; display: block; }
.p-stat-lbl { font-size: .8rem; font-weight: 500; }

/* Repos */
.p-repos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.p-repo {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}
.p-repo-name { font-weight: 700; font-size: 1.05rem; color: var(--pink); margin-bottom: .3rem; }
.p-repo-desc { font-size: .85rem; opacity: .7; flex: 1; margin-bottom: .6rem; }
.p-repo-meta { display: flex; gap: 1rem; font-size: .8rem; font-weight: 500; }
.p-repo-lang { display: inline-flex; align-items: center; gap: .3rem; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--black); display: inline-block; }

/* Language breakdown */
.p-lang-bar {
  display: flex;
  height: 30px;
  border: var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.p-lang-bar div { height: 100%; transition: width .6s; }
.p-lang-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.p-lang-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 500; }

/* Activity */
.p-activity-grid { display: grid; grid-template-columns: repeat(auto-fill, 14px); gap: 3px; }
.p-activity-cell {
  width: 14px; height: 14px;
  border: 1px solid var(--black);
  border-radius: 2px;
}

/* === FOOTER CREDIT === */
.footer-credit {
  text-align: center;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255,255,255,.15);
  font-size: .95rem;
  font-weight: 600;
}
.webcoffee-link {
  display: inline-block;
  background: var(--yellow);
  color: var(--black) !important;
  padding: .15rem .7rem;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  transition: all .15s;
}
.webcoffee-link:hover { transform: translate(2px, 2px); }

/* === MARQUEE === */
.marquee-section {
  padding: 3rem 1.5rem;
  max-width: 100%;
  overflow: hidden;
}
.marquee-section h2 { text-align: center; margin-bottom: 2rem; }
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  margin-bottom: 10px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.marquee-wrapper:last-child { margin-bottom: 0; }
.marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  will-change: transform;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-card {
  flex-shrink: 0;
  width: 180px;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  transition: transform .15s;
}
.marquee-card:hover { transform: translateY(-4px); }
.marquee-card img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--pink);
  margin-bottom: .5rem;
}
.marquee-card .mc-name { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marquee-card .mc-user { font-size: .75rem; color: #888; }

/* === STAR POPUP === */
.star-popup {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-popup-box {
  background: var(--white);
  border: 4px solid var(--black);
  box-shadow: 10px 10px 0 var(--black);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 380px;
  width: 90%;
  border-radius: var(--radius);
  animation: popBounce .4s ease;
}
@keyframes popBounce {
  0% { opacity: 0; transform: scale(.7) translateY(30px); }
  70% { transform: scale(1.03) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.star-popup-emoji { font-size: 3rem; margin-bottom: .5rem; }
.star-popup-box h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.star-popup-box p { font-size: .9rem; opacity: .7; margin-bottom: 1.5rem; }
.star-popup-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* === PRINT BRANDING === */
.print-branding {
  display: none;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: 1rem;
  border-top: 2px solid var(--black);
  margin-top: 2rem;
}

/* === PRINT / PDF === */
@media print {
  .nav, .portfolio-nav, .portfolio-actions, .footer-bottom, .toast, .star-popup { display: none !important; }
  .print-branding { display: block !important; }
  .portfolio { padding: 0; }
  .p-header { break-after: avoid; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* === Hero form row layout === */
.hero-form-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}
.hero-form-row .btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .hero-form-row { flex-direction: column; }
  .hero-form-row .btn { width: 100%; }
}

/* === User Preview Dropdown === */
.input-group-wrap { position: relative; flex: 1; }
.user-preview {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100;
  animation: slideDown .2s ease;
}
.user-preview.hidden { display: none; }
.user-preview.not-found {
  border-color: #e74c3c;
  box-shadow: 4px 4px 0 #e74c3c;
}
.user-preview img {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid var(--black);
  flex-shrink: 0;
  object-fit: cover;
}
.preview-info { flex: 1; min-width: 0; }
.preview-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-user {
  font-size: .85rem;
  color: #666;
}
.preview-bio {
  font-size: .8rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   Mobile: <480px | Tablet: 481-768px
   Laptop: 769-1024px | Desktop: 1025+
   =========================================== */

/* --- TABLET & BELOW (≤768px) --- */
@media (max-width: 768px) {
  section { padding: 2.5rem 1rem; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 1.5rem; }

  .hero { padding-top: 3rem; padding-bottom: 2rem; }
  .hero-sub { font-size: 1rem; }

  .stats-bar { gap: 1.5rem; padding: 1.5rem 1rem; }
  .stat-num { font-size: 1.8rem; }

  .ba-grid { flex-direction: column; align-items: center; }
  .ba-card { width: 100%; max-width: 360px; }
  .ba-arrow { transform: rotate(90deg); font-size: 2rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .step-card { padding: 1.5rem 1.2rem; }

  .features-grid { grid-template-columns: 1fr; }

  .marquee-card { width: 150px; padding: .8rem; }
  .marquee-card img { width: 44px; height: 44px; }
  .marquee-card .mc-name { font-size: .8rem; }

  /* Portfolio page */
  .p-header { padding: 2rem 1rem 1.5rem; }
  .p-avatar { width: 90px; height: 90px; }
  .p-name { font-size: 1.5rem; }
  .p-bio { font-size: .9rem; }
  .p-meta { gap: .8rem; font-size: .8rem; }
  .p-links a { font-size: .75rem; padding: .25rem .6rem; }
  .p-section { padding: 1.5rem 1rem; }
  .p-section h2 { font-size: 1.3rem; }
  .p-stats { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .p-stat-card { padding: .8rem; }
  .p-stat-val { font-size: 1.5rem; }
  .p-repos { grid-template-columns: 1fr; }
  .p-activity-grid { grid-template-columns: repeat(auto-fill, 11px); gap: 2px; }
  .p-activity-cell { width: 11px; height: 11px; }

  .portfolio-nav { padding: .6rem 1rem; }
  .portfolio-actions { gap: .4rem; }
  .portfolio-actions .btn { font-size: .75rem; padding: .3rem .6rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .star-popup-box { padding: 1.8rem 1.2rem; max-width: 320px; }
  .star-popup-emoji { font-size: 2.2rem; }
  .star-popup-box h3 { font-size: 1.2rem; }
}

/* --- MOBILE (≤480px) --- */
@media (max-width: 480px) {
  section { padding: 2rem .8rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }

  .nav-inner { padding: .6rem .8rem; }
  .logo { font-size: 1.2rem; }

  .hero { padding-top: 2rem; }
  .hero-badge { font-size: .75rem; padding: .2rem .7rem; }
  .hero-sub { font-size: .9rem; margin: .8rem auto 1.2rem; }

  .input-group { min-width: 0; }
  .input-prefix { font-size: .8rem; padding: .6rem; }
  .input-group input { font-size: .9rem; padding: .6rem; }
  .btn-lg { padding: .7rem 1.4rem; font-size: 1rem; }

  .stats-bar { gap: 1rem; padding: 1.2rem .8rem; flex-direction: row; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: .7rem; }

  .ba-card { padding: 1rem; }

  .marquee-card { width: 130px; padding: .6rem; }
  .marquee-card img { width: 36px; height: 36px; }
  .marquee-card .mc-name { font-size: .75rem; }
  .marquee-card .mc-user { font-size: .65rem; }

  .p-header { padding: 1.5rem .8rem 1rem; }
  .p-avatar { width: 72px; height: 72px; }
  .p-name { font-size: 1.3rem; }
  .p-stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .p-stat-val { font-size: 1.3rem; }
  .p-stat-lbl { font-size: .7rem; }
  .p-repo { padding: 1rem; }
  .p-repo-name { font-size: .95rem; }
  .p-repo-meta { font-size: .75rem; }
  .p-lang-list { gap: .4rem; }
  .p-lang-item { font-size: .75rem; }

  .footer { padding: 1.5rem .8rem .8rem; }
  .footer-credit { font-size: .85rem; }
  .footer-bottom { font-size: .65rem; }

  .user-preview { padding: 10px 12px; gap: 10px; }
  .user-preview img { width: 40px; height: 40px; }
  .preview-name { font-size: .9rem; }
  .preview-user { font-size: .75rem; }
  .preview-bio { font-size: .7rem; }

  .try-btn { font-size: .8rem; }
  .hero-hint { font-size: .8rem; }
}

/* --- LAPTOP (769-1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  section { max-width: 900px; }
  .ba-card { width: 280px; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .p-repos { grid-template-columns: repeat(2, 1fr); }
}

/* --- DESKTOP (1025px+) --- */
@media (min-width: 1025px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .p-repos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
