:root {
  --bg: #ececec;
  --ink: #0b0b0b;
  --muted: #6b7280;
  --hero: #0f0f10;
  --lime: #d7ff1f;
  --card-1: #111214;
  --card-2: #eef0f3;
  --card-3: #dfe3e7;
  --card-4: #252525;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* NAVBAR */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--bg);
  border-bottom: 1px solid #ccc;
}
.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 20px;
}
.pill {
  padding: 8px 16px;
  border: 1.3px solid #c9ccd4;
  border-radius: 999px;
  font-weight: 600;
  background: #f4f6f9;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover {
  background: #111;
  color: #fff;
}
.pill.is-active {
  background: #111216;
  color: #fff;
  border-color: #111216;
}

.social {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 10;
}
.sbtn {
  width: 30px;
  height: 30px;
  border: 1.2px solid #c9ccd4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  cursor: pointer;
  position: relative;
}

/* Share Menu */
.share-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border: 2px solid #111;
  border-radius: 16px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.share-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  transition: all 0.2s ease;
  text-align: left;
}

.share-option:hover {
  background: #f5f7fa;
  transform: translateX(4px);
}

.share-option svg {
  flex-shrink: 0;
}

/* Share Notification */
.share-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.share-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* HERO */
.hero {
  background: var(--hero);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
  margin: 10px 40px;
  border-radius: 24px;
}
.hero h1 {
  font: 900 220px/1 Impact, Haettenschweiler, "Arial Black", sans-serif;
  color: var(--lime);
  letter-spacing: 2px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roof {
  position: absolute;
  inset: auto 0 -20% 0;
  height: 160%;
  display: grid;
  place-items: center;
  opacity: 0.9;
  pointer-events: none;
}
.roof svg {
  max-width: 560px;
  width: 95%;
  opacity: 0.65;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 40px 60px;
  margin: auto;
  position: relative;
}

.card.page-enter {
  animation: cardFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card.page-exit {
  animation: cardFadeOut 0.4s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}
.card {
  position: relative;
  border-radius: 18px;
  padding: 20px;
  border: 2px solid #111;
  overflow: hidden;
  background: #f5f7fa;
  min-height: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}
.card:hover .arrow {
  transform: translate(4px, -4px);
}
.card h3 {
  margin: 0 0 14px;
  font: 800 28px/1.2 Inter, system-ui;
}
.card p {
  margin: 0;
  color: #111827b0;
}
.card .arrow {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}
.card .arrow svg {
  width: 72px;
  height: 72px;
}
.card-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
}

/* Video support for cards */
.card-video {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: 8px;
  object-fit: cover;
}


.card.dark {
  background: var(--card-1);
  color: #e5e7eb;
  border-color: #111;
}
.card.dark p {
  color: #d1d5db9c;
}

.card.grey {
  background: var(--card-4);
  color: var(--lime);
  border-color: #2c2c2f;
}
.card.grey p {
  color: #e5e7eb;
}

.card.mid {
  background: var(--card-2);
}

.card.tex {
  background: var(--card-3);
}
.card.tex::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,\
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 400">\
          <defs><pattern id="w" width="60" height="40" patternUnits="userSpaceOnUse">\
            <path d="M0,20 C15,0 45,40 60,20" fill="none" stroke="%238a8f97" stroke-width="1.2"/>\
            <path d="M0,0 C15,20 45,-20 60,0" fill="none" stroke="%238a8f97" stroke-width="1.2" opacity=".6"/>\
          </pattern></defs>\
          <rect width="100%" height="100%" fill="url(%23w)"/>\
        </svg>');
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.badge {
  height: 42px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111216;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.pagination-btn {
  padding: 12px 24px;
  border: 2px solid #111;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-weight: 600;
  color: #666;
  font-size: 15px;
}

.pagination-info span {
  color: #111;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 40px 0;
  background: var(--bg);
  color: #444;
  border-top: 1px solid #ccc;
}

/* Modal Fullscreen */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  animation: modalFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  display: block;
}

.modal.closing {
  animation: modalFadeOut 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.modal-content {
  background: #fff;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  animation: modalSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.closing .modal-content {
  animation: modalSlideDown 0.5s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes modalSlideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.modal-close {
  position: fixed;
  right: 40px;
  top: 40px;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  line-height: 1;
  z-index: 2001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: var(--lime);
  color: #111;
  transform: scale(1.1) rotate(90deg);
}

.modal-header {
  padding: 80px 80px 50px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0 0 10px;
  font-size: 56px;
  font-weight: 900;
  color: #111;
  line-height: 1.1;
  letter-spacing: -2px;
}

.modal-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0 0 30px;
  line-height: 1.6;
}

.btn-download {
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  background: #111;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
  background: var(--lime);
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(215, 255, 31, 0.4);
}

.modal-body {
  padding: 60px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.modal-left img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
}

.modal-right h2 {
  font-size: 42px;
  font-weight: 900;
  color: #111;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.modal-right p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tag {
  padding: 8px 16px;
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 60px;
}

.modal-section {
  margin-bottom: 50px;
}

.modal-section h3 {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

.color-palette {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.color-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.color-box:hover {
  transform: scale(1.1);
}

.color-item span {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  font-family: monospace;
}

.typo-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.typo-item {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.typo-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: #999;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.typo-demo-heading {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 32px;
  font-weight: 900;
  margin: 0;
  color: #111;
}

.typo-demo-body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  margin: 0;
  color: #111;
}

.tech-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero {
    margin: 10px 20px;
    padding: 50px 20px;
  }
  .hero h1 {
    font-size: 120px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px 40px;
  }
}
@media (max-width: 680px) {
  header {
    padding: 15px 20px;
  }
  .logo img {
    height: 32px;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: #fff;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 15px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .pill {
    padding: 12px 20px;
    font-size: 15px;
    width: 100%;
    text-align: left;
  }

  .social {
    position: relative;
    z-index: 1001;
  }

  .hero {
    margin: 10px;
    padding: 50px 15px;
    border-radius: 16px;
  }
  .hero h1 {
    font-size: 58px;
    letter-spacing: 0.5px;
  }
  .cards {
    grid-template-columns: 1fr;
    padding: 0 10px 30px;
  }
  .card {
    min-height: 200px;
    padding: 16px;
  }
  .card h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .card p {
    font-size: 13px;
    line-height: 1.5;
  }
  .card .arrow svg {
    width: 44px;
    height: 44px;
  }
  .card-img {
    margin-top: 10px;
  }
  .modal-close {
    right: 20px;
    top: 20px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .modal-header {
    padding: 60px 20px 30px;
  }
  .modal-header h2 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .modal-subtitle {
    font-size: 16px;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
  }
  .modal-body {
    padding: 40px 20px 60px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .modal-right h2 {
    font-size: 32px;
  }
  .modal-section h3 {
    font-size: 20px;
  }
  .color-box {
    width: 60px;
    height: 60px;
  }
  .color-item span {
    font-size: 12px;
  }
  .typo-demo-heading {
    font-size: 24px;
  }
  .typo-demo-body {
    font-size: 16px;
  }
  .pagination {
    padding: 30px 20px;
    gap: 15px;
  }
  .pagination-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .pagination-info {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 46px;
  }
  .nav {
    width: 90%;
  }
  .modal-header h2 {
    font-size: 28px;
  }
  .pagination {
    flex-direction: column;
    gap: 12px;
    padding: 25px 15px;
  }
  .pagination-btn {
    width: 100%;
    justify-content: center;
  }
}

span.acolade {
  color: var(--card-2);
  font-variant: small-caps;
}
