/* MattVPN Landing Page Style Sheet - Immersive Minecraft GUI Theme */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-pixel: 'VT323', monospace;
  --font-retro: 'Press Start 2P', monospace;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Minecraft Palette */
  --mc-stone: #2e2e31;
  --mc-stone-dark: #1e1e20;
  --mc-dirt: #4a3221;
  --mc-grass: #5b8731;
  --mc-gold: #ffff55;
  --mc-green: #55ff55;
  --mc-green-dark: #3c8527;
  
  --bg-dark: #121214;
  --bg-gui: #2d2d30;
  
  --border-light: #5a5a5a;
  --border-dark: #18181b;
  
  --text-main: #e0e0e3;
  --text-muted: #a0a0a5;

  --transition-classic: all 0.15s ease;
}

/* Reset & Pixel rendering settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  image-rendering: pixelated; /* Render image assets blocky/pixelated */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 50%, #202025 0%, #0f0f12 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Titles & Headers */
h1, h2, h3, h4, .font-mc {
  font-family: var(--font-pixel);
  font-weight: normal;
  text-shadow: 3px 3px 0px #000000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: 5rem;
  line-height: 0.95;
  color: #ffffff;
  margin-bottom: 10px;
}

h2 {
  font-size: 3.5rem;
  color: var(--mc-gold);
  text-align: center;
  margin-bottom: 2rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Header & Nav */
header.nav-header {
  height: 80px;
  border-bottom: 4px solid var(--border-dark);
  background: var(--mc-stone-dark);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-pixel);
  color: #ffffff;
  font-size: 2.2rem;
  text-shadow: 2px 2px 0px #000000;
}

.logo-icon {
  font-size: 1.8rem;
  animation: logo-bounce 2s infinite ease-in-out;
}

@keyframes logo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 12px;
  transition: var(--transition-classic);
  text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active-link {
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #000;
}

/* Classic Minecraft GUI Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 1.7rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 24px;
  position: relative;
  text-shadow: 2px 2px 0px #000000;
  
  /* Classic MC GUI button borders */
  background: #7a7a7a;
  border-top: 4px solid #dbdbdb;
  border-left: 4px solid #dbdbdb;
  border-right: 4px solid #3c3c3c;
  border-bottom: 4px solid #3c3c3c;
  outline: 4px solid #000000;
  color: #e0e0e0;
  
  transition: var(--transition-classic);
}

.btn:hover {
  background: var(--mc-green-dark);
  color: var(--mc-gold);
  border-top-color: #55ff55;
  border-left-color: #55ff55;
  border-right-color: #1e4511;
  border-bottom-color: #1e4511;
}

.btn:active {
  background: #4a4a4a;
  border-top-color: #2c2c2c;
  border-left-color: #2c2c2c;
  border-right-color: #a3a3a3;
  border-bottom-color: #a3a3a3;
  padding: 12px 24px 8px 24px; /* simulate pressing */
}

.btn-secondary {
  background: #4a4a4a;
  border-top-color: #8c8c8c;
  border-left-color: #8c8c8c;
  border-right-color: #242424;
  border-bottom-color: #242424;
  color: #c0c0c0;
}

.btn-secondary:hover {
  background: #606060;
  color: #ffffff;
  border-top-color: #a0a0a0;
  border-left-color: #a0a0a0;
  border-right-color: #383838;
  border-bottom-color: #383838;
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-new {
  align-self: flex-start;
  background: #000000;
  border: 3px solid var(--mc-gold);
  color: var(--mc-gold);
  font-family: var(--font-retro);
  font-size: 0.65rem;
  padding: 6px 12px;
  letter-spacing: 0.05em;
}

/* Bouncing Splash Text */
.splash-container {
  position: relative;
  display: inline-block;
}

.splash-text {
  position: absolute;
  top: -20px;
  right: -50px;
  font-family: var(--font-pixel);
  font-size: 2.2rem;
  color: var(--mc-gold);
  text-shadow: 2px 2px 0px #303000;
  transform: rotate(-15deg);
  animation: splash-bounce 0.6s infinite alternate ease-in-out;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

@keyframes splash-bounce {
  0% { transform: scale(1) rotate(-15deg); }
  100% { transform: scale(1.15) rotate(-15deg); }
}

.hero-title span.green-text {
  color: var(--mc-green);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.5;
  background: rgba(0,0,0,0.5);
  padding: 16px;
  border: 4px solid var(--border-dark);
  outline: 4px solid var(--border-light);
  margin-bottom: 10px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.download-subtext {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

/* Mockup Display Box (Looks like MC Chest/Inventory GUI) */
.hero-mockup-wrapper {
  position: relative;
}

.mockup-container {
  background: #c6c6c6; /* Classic MC light grey inventory background */
  border-top: 4px solid #ffffff;
  border-left: 4px solid #ffffff;
  border-right: 4px solid #555555;
  border-bottom: 4px solid #555555;
  outline: 4px solid #000000;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 4px solid #555555;
  margin-bottom: 12px;
}

.mockup-title {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: #404040; /* MC Font color inside inventory */
  text-shadow: none;
  font-weight: normal;
  text-transform: uppercase;
}

.mockup-img {
  width: 100%;
  height: auto;
  border: 4px solid #000000;
  display: block;
}

/* Sections divider (Pixelated Grass Block Line) */
.grass-divider {
  height: 24px;
  background: linear-gradient(to bottom, var(--mc-grass) 50%, var(--mc-dirt) 50%);
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  position: relative;
  overflow: hidden;
}

.grass-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, 
    transparent, transparent 16px, 
    rgba(0,0,0,0.15) 16px, rgba(0,0,0,0.15) 32px
  );
}

/* Section Common styling */
section {
  position: relative;
}

.section-bg-stone {
  background-color: var(--mc-stone);
  border-top: 4px solid var(--border-dark);
  border-bottom: 4px solid var(--border-dark);
  outline: 4px solid var(--border-light);
  padding: 80px 0;
}

/* Features Grid (Looks like Inventory Slot Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  background: #8b8b8b; /* Slot/item background */
  border-top: 4px solid #373737;
  border-left: 4px solid #373737;
  border-right: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  outline: 4px solid #000000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-classic);
}

.feature-card:hover {
  background: #9c9c9c;
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  align-self: flex-start;
  filter: drop-shadow(2px 2px 0px #000);
}

.feature-card h3 {
  font-size: 1.7rem;
  color: var(--mc-gold);
}

.feature-card p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.4;
}

/* Visualizer section (Biselated GUI Box) */
.visualizer-section {
  padding: 60px 0;
}

.visualizer-card {
  background: var(--mc-stone-dark);
  border: 4px solid #000;
  outline: 4px solid var(--border-light);
  padding: 40px;
}

.visualizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.visualizer-text h3 {
  font-size: 2.5rem;
  color: var(--mc-gold);
  margin-bottom: 12px;
}

.visualizer-text p {
  margin-bottom: 16px;
  line-height: 1.5;
}

.visualizer-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: #000000;
  border: 4px solid var(--border-light);
  outline: 4px solid #000;
  position: relative;
}

.visualizer-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition-classic);
}

.node-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: #8b8b8b;
  border-top: 4px solid #ffffff;
  border-left: 4px solid #ffffff;
  border-right: 4px solid #373737;
  border-bottom: 4px solid #373737;
  outline: 4px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.visualizer-node.active .node-icon-box {
  background: var(--mc-green-dark);
  border-top-color: #55ff55;
  border-left-color: #55ff55;
  border-right-color: #1e4511;
  border-bottom-color: #1e4511;
}

.node-label {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.visualizer-node.active .node-label {
  color: var(--mc-green);
}

.visualizer-line-container {
  flex-grow: 1;
  height: 8px;
  background: #373737;
  margin: 0 16px;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}

.visualizer-line-fill {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--mc-green);
  animation: link-pulse 1.8s infinite linear;
}

/* How It Works Section */
.steps-section {
  padding: 80px 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step-card {
  background: rgba(0,0,0,0.4);
  border: 4px solid #000;
  outline: 4px solid var(--border-light);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--mc-stone-dark);
  border-top: 4px solid #5a5a5a;
  border-left: 4px solid #5a5a5a;
  border-right: 4px solid #0a0a0c;
  border-bottom: 4px solid #0a0a0c;
  outline: 4px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 1.8rem;
  color: var(--mc-gold);
}

.step-card h3 {
  font-size: 1.6rem;
  color: var(--mc-gold);
}

.step-card p {
  font-size: 1rem;
}

/* Download Section (Classic MC Block Textures) */
.download-footer-section {
  padding: 80px 0;
  text-align: center;
}

.download-footer-card {
  background: var(--mc-stone-dark);
  border: 4px solid #000;
  outline: 4px solid var(--border-light);
  padding: 60px 40px;
}

.download-footer-card h2 {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.download-footer-card p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.2rem;
}

/* Footer (Immersive Dirt Block Bottom) */
footer {
  background-color: var(--mc-dirt);
  border-top: 6px solid #000;
  padding: 40px 0;
  color: #d0d0d0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--mc-grass);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-credits {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  text-shadow: 2px 2px 0px #000;
}

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

.footer-links a {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  color: var(--mc-gold);
  text-decoration: none;
  text-shadow: 2px 2px 0px #000;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3.8rem; }
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-text-content {
    align-items: center;
  }
  .hero-desc {
    max-width: 600px;
  }
  .cta-group {
    justify-content: center;
  }
  .download-subtext {
    justify-content: center;
  }
  .hero-mockup-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h2 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .visualizer-grid {
    grid-template-columns: 1fr;
  }
  .visualizer-display {
    order: 2;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
