:root {
  --bg-color: #050a0c;
  --panel-bg: #070e11;
  --panel-border: rgba(0, 242, 254, 0.12);
  --panel-border-hover: rgba(0, 242, 254, 0.5);
  
  --text-main: #dcf1f5;
  --text-muted: #6b8c94;
  --text-dark: #3a5359;
  
  --primary-cyan: #00f2fe;
  --accent-teal: #00ffcc;
  --btn-bg-hover: rgba(0, 242, 254, 0.08);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --transition-speed: 0.25s;
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-teal);
}

/* Base Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Border-grid container to create the grid-blueprint look */
.grid-container {
  display: grid;
  border-left: 1px solid var(--panel-border);
  border-top: 1px solid var(--panel-border);
}

.grid-item {
  border-right: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 40px;
  background-color: var(--panel-bg);
  transition: border-color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.grid-item:hover {
  background-color: #091317;
  border-color: var(--panel-border-hover);
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--panel-border);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--primary-cyan);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  border-left: 1px solid var(--panel-border);
  height: 70px;
}

.nav-menu li:last-child {
  border-right: 1px solid var(--panel-border);
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
  background-color: rgba(0, 242, 254, 0.02);
}

.cta-nav {
  padding: 10px 20px;
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  background-color: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
}

.cta-nav:hover {
  background-color: var(--btn-bg-hover);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* Hero Section */
.hero-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--panel-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-text h1 span {
  color: var(--primary-cyan);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 14px 28px;
  background-color: var(--primary-cyan);
  color: #050a0c;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--accent-teal);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.btn-secondary {
  padding: 14px 28px;
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  background-color: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.btn-secondary:hover {
  border-color: var(--primary-cyan);
  background-color: var(--btn-bg-hover);
}

/* Console Mockup Dashboard */
.console-mockup {
  background-color: #030608;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

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

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-dark);
}

.console-dot.green {
  background-color: #2ecc71;
}

.console-title {
  color: var(--text-muted);
}

.console-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.console-line {
  display: flex;
  justify-content: space-between;
}

.console-line .label {
  color: var(--text-muted);
}

.console-line .value {
  color: var(--primary-cyan);
  font-weight: bold;
}

.console-line .value.active {
  color: #2ecc71;
}

/* Section Title Styling */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--panel-border);
}

.section-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.section-title-wrapper {
  text-align: left;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  display: block;
}

.section-hdr h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
}

.section-hdr h2 span {
  color: var(--primary-cyan);
}

.section-hdr p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 10px;
  max-width: 500px;
}

/* Features Grid */
.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feat-icon {
  font-size: 1.8rem;
  color: var(--primary-cyan);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.grid-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.grid-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pricing Switch & Table */
.pricing-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pricing-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pricing-label.active {
  color: var(--primary-cyan);
}

.pricing-toggle-bar {
  width: 50px;
  height: 26px;
  background-color: #030608;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
}

.pricing-toggle-knob {
  width: 18px;
  height: 18px;
  background-color: var(--primary-cyan);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-speed) ease;
}

.pricing-toggle-bar.yearly .pricing-toggle-knob {
  transform: translateX(24px);
}

.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-item.featured {
  background-color: #081519;
  border: 1px solid var(--primary-cyan);
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: var(--primary-cyan);
  color: #050a0c;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.plan-price span {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-feats {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-feats li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-feats li svg {
  color: var(--primary-cyan);
  flex-shrink: 0;
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.plan-btn:hover {
  background-color: var(--btn-bg-hover);
}

.pricing-item.featured .plan-btn {
  background-color: var(--primary-cyan);
  color: #050a0c;
}

.pricing-item.featured .plan-btn:hover {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
}

/* Reviews Grid */
.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  display: flex;
  flex-direction: column;
}

.review-stars {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-cyan);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-style: italic;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-initial {
  width: 32px;
  height: 32px;
  background-color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FAQ Layout (Divider-Based Lines) */
.faq-list {
  border-top: 1px solid var(--panel-border);
}

.faq-item {
  border-bottom: 1px solid var(--panel-border);
}

.faq-question {
  width: 100%;
  padding: 30px 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  transition: color var(--transition-speed) ease;
}

.faq-question:hover {
  color: var(--primary-cyan);
}

.faq-icon-mono {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform var(--transition-speed) ease;
}

.faq-item.active .faq-icon-mono {
  transform: rotate(45deg);
  color: var(--primary-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease;
}

.faq-answer-inner {
  padding: 0 0 30px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  transition: max-height var(--transition-speed) ease-in;
}

/* Articles Section */
.articles-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-item {
  display: flex;
  flex-direction: column;
}

.art-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}

.art-meta span.tag {
  color: var(--primary-cyan);
}

.article-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
  flex-grow: 1;
}

.art-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.art-link svg {
  transition: transform 0.2s ease;
}

.art-link:hover svg {
  transform: translateX(4px);
}

/* Footer layout */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 80px 0 40px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a, .footer-col ul li span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary-cyan);
}

.footer-bottom-grid {
  border-top: 1px solid var(--panel-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-grid p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--panel-border);
  padding: 2px 8px;
  color: var(--text-muted);
  border-radius: 2px;
  background-color: #030608;
}

/* Article Template Customizations */
.article-container {
  max-width: 800px;
  margin: 60px auto;
  border: 1px solid var(--panel-border);
  background-color: var(--panel-bg);
  padding: 60px;
}

.art-back-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.article-container h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}

.art-hdr-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 20px;
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 2px solid var(--primary-cyan);
  background-color: #030608;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-style: italic;
  color: var(--text-muted);
}

.article-content strong {
  color: var(--primary-cyan);
}

.related-section {
  margin-top: 60px;
  border-top: 1px solid var(--panel-border);
  padding-top: 40px;
}

.related-section h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 24px;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--panel-border);
  background-color: #030608;
  transition: border-color var(--transition-speed) ease;
}

.related-item:hover {
  border-color: var(--primary-cyan);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  .nav-menu {
    display: none;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .section-hdr {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 30px;
    margin: 30px auto;
  }
}
