﻿
:root {
  --bg: #0C0F0D;
  --panel: #121612;
  --ink: #E6EFE7;
  --dim: #77877A;
  --line: rgba(230,239,231,0.09);
  --acc: #6FE8A8;
}

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

body {
    overflow-wrap: break-word;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background-color: var(--bg);
  font-weight: 400;
}

/* Background elements */
#pagoda-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.canvas-ui {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.ui-top-left { top: 20px; left: 20px; }
.ui-top-right { top: 20px; right: 20px; }
.ui-bottom-left { bottom: 20px; left: 20px; }

main, header, footer {
  position: relative;
  z-index: 2;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

h1, h2, h3, .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
h1 { font-size: 3rem; color: var(--ink); }
h2 { font-size: 2.2rem; margin-bottom: 2.5rem; }
p { margin-bottom: 1rem; color: var(--dim); }

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--acc);
  color: #0C0F0D;
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-align: center;
  border: 1px solid var(--acc);
  cursor: pointer;
}
.btn:hover {
  background-color: transparent;
  color: var(--acc);
  box-shadow: 0 0 10px rgba(111,232,168,0.2);
}
.btn.outline {
  background-color: var(--panel);
  color: var(--ink);
  border-color: var(--dim);
}
.btn.outline:hover {
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: none;
}

/* Header */
.navbar {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(12, 15, 13, 0.85);
  backdrop-filter: blur(10px);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; color: var(--acc); margin-bottom: 0; }
.nav-links { display: flex; gap: 30px; font-weight: 500; }
.nav-links a { color: var(--ink); transition: color 0.3s; }
.nav-links a:hover { color: var(--acc); }
.nav-btn { padding: 8px 20px; font-size: 1rem; }

/* Sections */
section {
    scroll-margin-top: 100px; padding: 80px 0; }
.hero { padding: 120px 20px; background: transparent; }
.grid-3, .grid-2 { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards & Components */
.card, .pricing-card, .review-card, .faq-item {
  background: var(--panel);
  padding: 40px 30px;
  border-radius: 3px;
  border: 1px solid var(--line);
  transition: all 0.3s;
  text-align: center;
}
.card:hover, .pricing-card:hover, .faq-item:hover, .review-card:hover {
  border-color: rgba(111, 232, 168, 0.5);
}
.card:hover h3, .pricing-card:hover h3, .faq-item:hover h3 {
  color: var(--acc);
}
.card h3, .pricing-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: var(--ink); transition: color 0.3s;}
.card p, .pricing-card p { color: var(--dim); }

/* Data Tags (replaces emojis) */
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}
.card:hover .tag { color: var(--acc); }

/* Pricing specifically */
.pricing-card.featured {
  border-color: var(--acc);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acc);
  color: #0C0F0D;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.price { font-size: 3rem; font-weight: 800; color: var(--ink); margin: 20px 0; font-family: 'Space Grotesk', sans-serif;}
.price span { font-size: 1rem; color: var(--dim); font-weight: normal; }
.pricing-list { list-style: none; margin: 20px 0 30px; text-align: left; }
.pricing-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.pricing-list li:last-child { border-bottom: none; }

/* FAQ & Reviews */
.faq-list { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { padding: 25px; margin-bottom: 15px; text-align: left; }
.reviewer { margin-top: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: bold; color: var(--ink); text-transform: uppercase;}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Subpages */
.page-header { padding: 80px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.page-content { padding: 60px 20px; max-width: 800px; margin: 0 auto; color: var(--dim); }
.page-content h2 { margin-top: 2.5rem; font-size: 1.8rem; margin-bottom: 1rem; color: var(--ink); }
.page-content p, .page-content ul { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Footer */
.site-footer { padding: 60px 0 30px; text-align: center; border-top: 1px solid var(--line); margin-top: 40px;}
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-size: 1rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--acc); }
.copyright { color: var(--dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Responsive Media Queries */
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 80px 20px; }
  section {
    scroll-margin-top: 100px; padding: 60px 0; }
  .btn { display: block; width: 100%; padding: 16px; }
  .nav-btn { display: inline-block; width: auto; padding: 10px 16px; font-size: 0.95rem; }
  .nav-container { flex-wrap: wrap; gap: 15px; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 15px; font-size: 0.95rem; }
  .footer-links { flex-direction: column; gap: 20px; }
  .ui-top-left, .ui-top-right, .ui-bottom-left { display: none; }
}

/* Accessibility & Focus */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--acc);
    color: #000;
    padding: 10px 15px;
    z-index: 10000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pricing Table Semantics keeping Grid Visuals */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 20px;
    min-width: 900px; /* Force scroll on small screens */
}
.pricing-table th, .pricing-table td {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 40px 30px;
    width: 33.333%;
    vertical-align: top;
    text-align: center;
    transition: all 0.3s;
}
.pricing-table th {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: 0;
}
.pricing-table td {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 10px;
}
.pricing-table .featured,
.pricing-table .featured-header {
    border-color: var(--acc);
    position: relative;
}
.pricing-table th.featured {
    border-bottom: none;
}
.pricing-table td.featured {
    border-top: none;
}

/* FAQ Details Native */
details.faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 3px;
    text-align: left;
    transition: all 0.3s;
}
details.faq-item > summary, details.faq-item > summary h3 {
    list-style: none; /* Hide default arrow */
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
}
details.faq-item > summary::-webkit-details-marker {
    display: none;
}
details.faq-item[open] > summary {
    margin-bottom: 15px;
    color: var(--acc);
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

