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

:root {
  --black: #000000;
  --white: #ffffff;
  --green: #ffffff;
  --green-dim: #cccccc;
  --green-glow: rgba(255, 255, 255, 0.15);
  --green-glow-strong: rgba(255, 255, 255, 0.4);
  --gray-100: #1a1a1a;
  --gray-200: #222222;
  --gray-300: #333333;
  --gray-400: #555555;
  --gray-500: #888888;
  --gray-600: #aaaaaa;
  --trace-color: rgba(255, 255, 255, 0.06);
  --trace-hover: rgba(255, 255, 255, 0.3);
  --font-mono: "JetBrains Mono", "Share Tech Mono", "Courier New", monospace;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-400) var(--black);
}

body {
  font-family: var(--font-mono);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-dim);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}


#circuit-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}


#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trace-color);
  transition: all 0.3s ease;
}

#nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  filter: brightness(1.2);
}

.nav-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray-500);
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px var(--green-glow);
}

.nav-link:hover {
  color: var(--green);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  color: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-trace {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--green);
}


.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 48px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  position: relative;
  z-index: 2;
  filter: brightness(1.1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
  animation: logoPulse 4s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: ringRotate 20s linear infinite;
  z-index: 0;
}

.hero-logo-ring--2 {
  width: 280px;
  height: 280px;
  border-color: rgba(255, 255, 255, 0.04);
  animation-direction: reverse;
  animation-duration: 30s;
}

@keyframes logoPulse {
  0%,
  100% {
    filter: brightness(1.1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.15));
  }
  50% {
    filter: brightness(1.3) drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes ringRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-title {
  margin-bottom: 32px;
}

.hero-title-line {
  display: block;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.3;
}

.hero-title-line--accent {
  color: var(--green);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.hero-terminal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  margin-bottom: 48px;
  font-size: 13px;
}

.terminal-prompt {
  color: var(--green);
}

.terminal-text {
  color: var(--gray-600);
}

.terminal-cursor {
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.stat-label {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 2px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gray-400);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-400), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}


.section {
  position: relative;
  z-index: 1;
  padding: 120px 40px;
}

.section--dark {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-trace {
  width: 60px;
  height: 1px;
  background: var(--gray-300);
  margin: 0 auto 16px;
}

.section-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--green);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 2px;
}


.tools-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.tool-card {
  position: relative;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transition: left 0.6s ease;
}

.tool-card:hover::before {
  left: 100%;
}

.tool-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transition: right 0.6s ease;
}

.tool-card:hover::after {
  right: 100%;
}

.tool-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.tool-card-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tool-card-inner {
  padding: 40px 32px;
  position: relative;
}

.tool-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.tool-card:hover .tool-icon {
  color: var(--green);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.circuit-icon {
  width: 100%;
  height: 100%;
}

.tool-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.tool-card:hover .tool-name {
  color: var(--green);
}

.tool-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.tool-meta {
  display: flex;
  gap: 8px;
}

.tool-tag {
  font-size: 9px;
  letter-spacing: 2px;
  padding: 3px 10px;
  border: 1px solid var(--gray-400);
  color: var(--gray-500);
  transition: all 0.3s ease;
}

.tool-card:hover .tool-tag {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--green);
}

.tool-trace-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.trace-h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: width 0.6s ease;
}

.trace-v {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: height 0.6s ease;
}

.tool-card:hover .trace-h {
  width: 100%;
}
.tool-card:hover .trace-v {
  height: 100%;
}


.ai-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-canvas {
  width: 100%;
  height: 500px;
  border: 1px solid var(--gray-300);
  background: rgba(0, 0, 0, 0.5);
}

.ai-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ai-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.ai-feature:hover {
  border-color: var(--gray-300);
  background: rgba(255, 255, 255, 0.02);
}

.ai-node {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border: 1px solid var(--green);
  position: relative;
  margin-top: 6px;
  transition: all 0.3s ease;
}

.ai-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: var(--green);
}

.ai-feature:hover .ai-node {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.ai-feature-content h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 8px;
  color: var(--white);
  transition: color 0.3s ease;
}

.ai-feature:hover .ai-feature-content h3 {
  color: var(--green);
}

.ai-feature-content p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
}


.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.terminal-window {
  border: 1px solid var(--gray-300);
  margin-bottom: 24px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--gray-200);
  border-bottom: 1px solid var(--gray-300);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
}

.dot--red {
  background: #ff3b30;
}
.dot--yellow {
  background: #ffcc00;
}
.dot--green {
  background: var(--green);
}

.terminal-title {
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 1px;
}

.terminal-body {
  padding: 20px 16px;
  background: var(--black);
  min-height: 120px;
  max-height: 250px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.8;
}

.t-prompt {
  color: var(--green);
  margin-right: 8px;
}

.t-cmd {
  color: var(--white);
}

.t-output {
  color: var(--gray-500);
}

.t-success {
  color: var(--green);
}

.t-warning {
  color: #ffcc00;
}

.t-error {
  color: #ff3b30;
}

.t-info {
  color: var(--gray-600);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.panel {
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-300);
}

.panel-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  animation: panelPulse 2s ease-in-out infinite;
}

@keyframes panelPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.panel-body {
  padding: 12px 16px;
  max-height: 200px;
  overflow-y: auto;
}

.port-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  animation: fadeInLine 0.5s ease forwards;
  opacity: 0;
}

.port-entry:nth-child(1) {
  animation-delay: 0.1s;
}
.port-entry:nth-child(2) {
  animation-delay: 0.3s;
}
.port-entry:nth-child(3) {
  animation-delay: 0.5s;
}
.port-entry:nth-child(4) {
  animation-delay: 0.7s;
}
.port-entry:nth-child(5) {
  animation-delay: 0.9s;
}

@keyframes fadeInLine {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.port-num {
  color: var(--white);
  min-width: 70px;
}

.port-service {
  color: var(--gray-500);
  flex: 1;
}

.port-status {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 8px;
}

.port-status--open {
  color: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.port-status--filtered {
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.sub-entry {
  padding: 4px 0;
  font-size: 11px;
  color: var(--gray-500);
  animation: fadeInLine 0.5s ease forwards;
  opacity: 0;
}

.sub-entry:nth-child(1) {
  animation-delay: 0.2s;
}
.sub-entry:nth-child(2) {
  animation-delay: 0.4s;
}
.sub-entry:nth-child(3) {
  animation-delay: 0.6s;
}
.sub-entry:nth-child(4) {
  animation-delay: 0.8s;
}
.sub-entry:nth-child(5) {
  animation-delay: 1s;
}
.sub-entry:nth-child(6) {
  animation-delay: 1.2s;
}

.sub-found {
  color: var(--green);
  margin-right: 8px;
}

.crawl-entry {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-size: 11px;
  animation: fadeInLine 0.5s ease forwards;
  opacity: 0;
}

.crawl-entry:nth-child(1) {
  animation-delay: 0.3s;
}
.crawl-entry:nth-child(2) {
  animation-delay: 0.5s;
}
.crawl-entry:nth-child(3) {
  animation-delay: 0.7s;
}
.crawl-entry:nth-child(4) {
  animation-delay: 0.9s;
}
.crawl-entry:nth-child(5) {
  animation-delay: 1.1s;
}

.crawl-status {
  color: var(--green);
  min-width: 30px;
}

.crawl-status--danger {
  color: #ff3b30;
}

.crawl-path {
  color: var(--gray-500);
}


.writeups-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.writeup-card {
  position: relative;
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.writeup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--green);
  transition: height 0.4s ease;
}

.writeup-card:hover::before {
  height: 100%;
}

.writeup-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.writeup-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.writeup-content {
  padding: 32px;
}

.writeup-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.writeup-date {
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 2px;
}

.writeup-tag {
  font-size: 9px;
  letter-spacing: 2px;
  padding: 3px 10px;
  border: 1px solid var(--gray-400);
  color: var(--gray-500);
}

.writeup-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.writeup-card:hover .writeup-title {
  color: var(--green);
}

.writeup-excerpt {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.writeup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.writeup-difficulty {
  font-size: 9px;
  letter-spacing: 2px;
  padding: 3px 10px;
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.writeup-difficulty--high {
  color: #ffcc00;
  border-color: rgba(255, 204, 0, 0.3);
}

.writeup-difficulty--extreme {
  color: #ff3b30;
  border-color: rgba(255, 59, 48, 0.3);
}

.writeup-read {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.writeup-card:hover .writeup-read {
  color: var(--green);
}


/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px;
  background: var(--black);
}

.footer-trace {
  width: 100%;
  height: 1px;
  background: var(--gray-300);
  margin-bottom: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.footer-name {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 1px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  animation: panelPulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════ */
.section-header,
.tool-card,
.ai-feature,
.writeup-card,
.dashboard-container {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.section-header.visible,
.tool-card.visible,
.ai-feature.visible,
.writeup-card.visible,
.dashboard-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:nth-child(2) {
  transition-delay: 0.1s;
}
.tool-card:nth-child(3) {
  transition-delay: 0.2s;
}
.tool-card:nth-child(4) {
  transition-delay: 0.3s;
}
.tool-card:nth-child(5) {
  transition-delay: 0.4s;
}
.tool-card:nth-child(6) {
  transition-delay: 0.5s;
}

.writeup-card:nth-child(2) {
  transition-delay: 0.1s;
}
.writeup-card:nth-child(3) {
  transition-delay: 0.2s;
}
.writeup-card:nth-child(4) {
  transition-delay: 0.3s;
}

.ai-feature:nth-child(2) {
  transition-delay: 0.1s;
}
.ai-feature:nth-child(3) {
  transition-delay: 0.2s;
}
.ai-feature:nth-child(4) {
  transition-delay: 0.3s;
}


.nav-link:hover {
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(1px, -1px);
  }
  60% {
    transform: translate(-1px, 0);
  }
  80% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0);
  }
}


@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-canvas {
    height: 350px;
  }

  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }

  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }

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

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

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

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .hero-logo-ring {
    width: 200px;
    height: 200px;
  }
  .hero-logo-ring--2 {
    width: 230px;
    height: 230px;
  }
  .hero-logo-glow {
    width: 180px;
    height: 180px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-title-line {
    letter-spacing: 3px;
  }

  .hero-terminal {
    font-size: 11px;
    padding: 10px 16px;
  }
}
