*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f4f0;
  --bg2: #eceae3;
  --fg: #0d0d0d;
  --fg2: #444;
  --fg3: #888;
  --accent: #1a1a2e;
  --cyan: #0ea5e9;
  --green: #16a34a;
  --red: #dc2626;
  --border: rgba(0, 0, 0, 0.1);
  --card: #fff;
  --mono: "Space Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fg);
  text-decoration: none;
}
.nav-logo span {
  color: var(--cyan);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--fg2);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-cta {
  font-size: 12px;
  padding: 8px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.nav-cta:hover {
  opacity: 0.8;
}

/* ─── SECTIONS ─── */
section {
  padding: 96px 48px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg3);
  margin-bottom: 28px;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

h1.hero-name {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 12px;
}
h1.hero-name em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--fg3);
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 12px 28px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  opacity: 0.75;
}
.btn-ghost {
  padding: 12px 28px;
  background: transparent;
  color: var(--fg);
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.btn-ghost:hover {
  background: var(--bg2);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg3);
  margin-top: 2px;
}

/* ─── SECTION HEADINGS ─── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.15;
}

/* ─── ABOUT ─── */
#about p {
  font-size: 17px;
  color: var(--fg2);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg2);
  background: var(--card);
}

/* ─── BLOG ─── */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.post-item {
  background: var(--card);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  cursor: pointer;
}
.post-item:hover {
  background: var(--bg2);
}
.post-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg3);
  min-width: 28px;
  padding-top: 2px;
}
.post-body {
  flex: 1;
}
.post-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
}
.tag.threat {
  background: #fef2f2;
  color: var(--red);
}
.tag.tutorial {
  background: #f0f9ff;
  color: var(--cyan);
}
.tag.tools {
  background: #f0fdf4;
  color: var(--green);
}
.tag.web {
  background: #faf5ff;
  color: #7c3aed;
}
.post-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.post-excerpt {
  font-size: 13px;
  color: var(--fg3);
  line-height: 1.6;
}
.post-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  min-width: 90px;
  text-align: right;
  padding-top: 2px;
}

.secure-build {
  padding: 90px 6%;
}

.secure-build .code-intro {
  max-width: 720px;
  margin-bottom: 42px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.7;
}

.build-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.build-step,
.security-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.build-step:hover,
.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.step-number {
  display: inline-block;
  margin-bottom: 22px;
  color: #0ea5e9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.build-step h3,
.security-card h4 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
}

.build-step p,
.security-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.security-card h4 {
  font-size: 16px;
}

@media (max-width: 900px) {
  .build-flow,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .secure-build {
    padding: 70px 5%;
  }

  .build-flow,
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── EXPERIENCE ─── */
.exp-list {
  display: flex;
  flex-direction: column;
}
.exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.exp-item:first-child {
  padding-top: 0;
}
.exp-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg3);
  padding-top: 3px;
}
.exp-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}
.exp-company {
  font-size: 14px;
  color: var(--cyan);
  margin-top: 2px;
}
.exp-desc {
  font-size: 13px;
  color: var(--fg3);
  margin-top: 6px;
  line-height: 1.6;
  max-width: 480px;
}

/* ─── CONTACT ─── */
#contact {
  text-align: center;
}
#contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 600px;
  margin: 0 auto 20px;
}
#contact p {
  color: var(--fg3);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.contact-email:hover {
  opacity: 0.5;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.social-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg3);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.social-links a:hover {
  color: var(--fg);
}

/* ─── FOOTER ─── */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
}


/* LIVE BUILDS PAGE */
.live-builds-hero {
  min-height: 62vh;
  max-width: 1100px;
  padding-top: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.live-builds-hero h1 {
  font-size: clamp(52px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 24px;
  color: var(--fg);
}

.live-builds-hero p {
  max-width: 620px;
  color: var(--fg3);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.live-builds-section {
  max-width: 1100px;
  padding-top: 40px;
}

.live-builds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.live-build-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.live-build-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.live-build-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.live-build-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-build-content {
  padding: 24px;
}

.live-build-category {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.live-build-content h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: var(--fg);
}

.live-build-content p {
  font-size: 14px;
  color: var(--fg3);
  line-height: 1.7;
  margin-bottom: 18px;
}

.live-build-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.live-build-stack span {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg2);
  background: var(--bg);
}

.live-build-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.live-build-link:hover {
  opacity: 0.75;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  section,
  footer,
  .live-builds-hero,
  .live-builds-section {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }

  .build-flow,
  .security-grid,
  .live-builds-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-item {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  nav {
    padding: 14px 20px;
    gap: 16px;
  }

  .nav-logo {
    font-size: 12px;
    flex: 0 0 auto;
  }

  .nav-links {
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
  }

  .nav-cta {
    padding: 7px 14px;
  }

  section {
    padding: 76px 22px;
  }

  #hero {
    min-height: auto;
    padding-top: 130px;
  }

  h1.hero-name {
    font-size: clamp(44px, 15vw, 68px);
    letter-spacing: 0;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 44px;
  }

  .stat-num {
    font-size: 26px;
  }

  .post-item {
    flex-direction: column;
    gap: 10px;
    padding: 22px;
  }

  .post-date {
    text-align: left;
  }

  .build-flow,
  .security-grid,
  .live-builds-grid {
    grid-template-columns: 1fr;
  }

  .secure-build {
    padding: 76px 22px;
  }

  .build-step,
  .security-card,
  .live-build-card {
    padding: 22px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .live-builds-hero {
    min-height: auto;
    padding-top: 135px;
    padding-bottom: 56px;
  }

  .live-builds-hero h1 {
    font-size: clamp(46px, 16vw, 76px);
    letter-spacing: 0;
  }

  .live-builds-section {
    padding-top: 20px;
  }

  .live-build-content {
    padding: 22px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 22px;
  }
}

@media (max-width: 420px) {
  nav {
    padding: 12px 16px;
  }

  .nav-links {
    gap: 12px;
  }

  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 18px;
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .live-build-preview {
    aspect-ratio: 4 / 3;
  }
}

..live-build-preview.slider {
  position: relative;
  overflow: hidden;
}

.slide-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: buildSlider 8s infinite ease-in-out;
}

.slide-track img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes buildSlider {
  0%,
  42% {
    transform: translateX(0);
  }

  50%,
  92% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}
