:root {
  --bg-dark: #0A0D14;
  --panel-bg: #121824;
  --panel-border: #1E293B;
  --accent-maroon: #800000;
  --accent-maroon-bright: #990000;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --green-pass: #10B981;
  --border-light: #334155;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

code, pre, .mono {
  font-family: "JetBrains Mono", "Courier New", Courier, monospace;
}

/* SVG Intro Overlay */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
  overflow: hidden;
}

.animated-logo {
  width: 80%;
  max-width: 800px;
  padding: 0 5%;
  overflow: visible;
}

.main-ui-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out;
}

.black-box-1 { opacity: 0; animation: revealBox1 5.0s linear forwards; }
.black-box-2 { opacity: 0; animation: revealBox2 5.0s linear forwards; }
.black-box-3 { opacity: 0; animation: revealBox3 5.0s linear forwards; }
.black-box-4 { opacity: 0; animation: revealBox4 5.0s linear forwards; }

@keyframes revealBox1 { 0%, 13% { opacity: 0; } 14%, 100% { opacity: 1; } }
@keyframes revealBox2 { 0%, 33% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes revealBox3 { 0%, 53% { opacity: 0; } 54%, 100% { opacity: 1; } }
@keyframes revealBox4 { 0%, 73% { opacity: 0; } 74%, 100% { opacity: 1; } }

.anim-x { animation: moveX 5.0s forwards; }

@keyframes moveX {
  0%, 14% { transform: translateX(850px); }
  34% { transform: translateX(650px); }
  54% { transform: translateX(450px); }
  74% { transform: translateX(250px); }
  92%, 100% { transform: translateX(0px); }
}

.anim-y { animation: moveY 5.0s forwards; }

@keyframes moveY {
  0% { transform: translateY(-700px); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  14% { transform: translateY(-45px); animation-timing-function: cubic-bezier(0, 0, 0.4, 1); }
  24% { transform: translateY(-400px); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  34% { transform: translateY(-45px); animation-timing-function: cubic-bezier(0, 0, 0.4, 1); }
  44% { transform: translateY(-260px); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  54% { transform: translateY(-45px); animation-timing-function: cubic-bezier(0, 0, 0.4, 1); }
  64% { transform: translateY(-160px); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  74% { transform: translateY(-45px); animation-timing-function: cubic-bezier(0, 0, 0.4, 1); }
  84% { transform: translateY(-185px); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); }
  92% { transform: translateY(0px); animation-timing-function: ease-out; }
  96% { transform: translateY(6px); animation-timing-function: ease-in; }
  100% { transform: translateY(0px); }
}

.anim-rotate {
  transform-box: fill-box;
  transform-origin: center;
  animation: spinSquare 5.0s forwards;
}

@keyframes spinSquare {
  0%, 14% { transform: rotate(0deg); }
  34% { transform: rotate(-2880deg); }
  54% { transform: rotate(-5760deg); }
  74% { transform: rotate(-8640deg); }
  92%, 100% { transform: rotate(-11152deg); }
}

/* Left Ribbon Seal Anchor */
.left-ribbon-seal {
  position: fixed;
  top: 0;
  left: 2%;
  width: 12px;
  height: 100vh;
  background-color: var(--accent-maroon);
  box-shadow: 0 0 15px rgba(128, 0, 0, 0.5);
  z-index: 999;
}

.layout-wrapper {
  margin-left: max(40px, 4%);
  padding: 40px 30px;
  max-width: 1280px;
}

/* Header & Nav */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 20px;
  margin-bottom: 50px;
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.brand-title span { color: var(--accent-maroon-bright); }

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover { color: #FFFFFF; }

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 0 60px 0;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(128, 0, 0, 0.2);
  border: 1px solid var(--accent-maroon-bright);
  color: #FF8888;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 0 0 20px 0;
  color: #FFFFFF;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 36px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary {
  background: var(--accent-maroon);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-maroon-bright); }

.btn-secondary {
  background: var(--panel-bg);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--panel-border);
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--text-muted); }

/* Feature Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 32px;
}

.card h3 {
  color: #FFFFFF;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Pricing Grid */
.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header h2 {
  font-size: 32px;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.price-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-maroon-bright);
  box-shadow: 0 0 20px rgba(128, 0, 0, 0.3);
}

.price-tier {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 36px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.price-amount span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: normal;
}

.price-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px solid var(--panel-border);
  padding-top: 16px;
}

.price-specs li {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

/* Code Snippet Container */
.code-box {
  background: #05070A;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 20px;
  color: #38BDF8;
  font-size: 13px;
  overflow-x: auto;
  margin-top: 20px;
}