/* Pages Common Styles */

.page-hero {
  padding: 140px 0 70px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.03), rgba(0, 180, 216, 0.03));
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.05;
  top: -150px;
  right: -100px;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero h1 span {
  color: var(--primary);
  text-shadow: 0 0 30px rgba(0, 229, 160, 0.3);
}

.page-hero p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* About Page */
.about-content {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px;
}

.about-image-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-metric {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.about-metric .num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.about-metric .lbl {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 4px;
  display: block;
}

.values-section {
  margin-bottom: 80px;
}

.values-section h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--card);
  padding: 28px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.value-icon {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
  transition: all 0.3s;
}

.value-card:hover .value-icon svg {
  stroke: var(--secondary);
}

.value-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--gray);
  font-size: 0.85rem;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 50px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 80px;
}

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--gray);
  margin-top: 5px;
  font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 50px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-section h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--gray);
  margin-bottom: 25px;
}

/* Pricing Page */
.pricing-page {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.pricing-page .pricing-grid {
  margin-bottom: 80px;
}

.pricing-comparison {
  margin-bottom: 80px;
}

.pricing-comparison h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 40px;
}

.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  color: var(--gray);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  background: rgba(0, 229, 160, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.faq-section {
  margin-bottom: 80px;
}

.faq-section h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--card);
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.faq-item h4 {
  font-family: var(--font-mono);
  margin-bottom: 10px;
  color: var(--light);
  font-size: 0.95rem;
}

.faq-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 40px;
}

.contact-methods {
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.contact-method:hover .method-details h4 {
  color: var(--primary);
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 8px;
  flex-shrink: 0;
}

.method-icon svg {
  stroke: var(--primary);
}

.method-details h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 2px;
  transition: color 0.3s;
}

.method-details p {
  color: var(--gray);
  font-size: 0.85rem;
}

.office-hours h4 {
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.office-hours p {
  color: var(--gray);
  font-size: 0.85rem;
}

.contact-form-wrapper {
  background: var(--card);
  padding: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.form-description {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.contact-option:hover {
  border-color: var(--primary);
  background: rgba(0, 229, 160, 0.05);
}

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
}

.option-icon svg {
  stroke: var(--primary);
}

.contact-option h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.contact-option:hover h4 {
  color: var(--primary);
}

.contact-option p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Documentation Page */
.docs-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.docs-notice {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 8px;
  margin-bottom: 50px;
}

.notice-icon {
  font-size: 1.8rem;
}

.notice-content h3 {
  font-family: var(--font-mono);
  color: var(--warning);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.notice-content p {
  color: var(--gray);
  font-size: 0.9rem;
}

.docs-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.docs-sidebar h4 {
  font-family: var(--font-mono);
  margin-bottom: 18px;
  color: var(--gray);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 8px;
}

.docs-sidebar a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.docs-sidebar a:hover {
  color: var(--primary);
}

.doc-section {
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--light);
}

.doc-section h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin: 28px 0 12px;
  color: var(--light);
}

.doc-section p {
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.7;
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 18px;
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-block code {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-table td {
  color: var(--gray);
  font-size: 0.9rem;
}

.docs-table code {
  background: rgba(0, 229, 160, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.sdk-card {
  background: var(--card);
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sdk-card h4 {
  font-family: var(--font-mono);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.sdk-card code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.sdk-card .badge {
  font-size: 0.7rem;
  padding: 3px 8px;
}

/* Legal Pages */
.legal-content {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.legal-document {
  max-width: 800px;
  margin: 0 auto;
}

.legal-document section {
  margin-bottom: 36px;
}

.legal-document h2 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--light);
}

.legal-document h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin: 22px 0 10px;
  color: var(--light);
}

.legal-document p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-document ul {
  list-style: none;
  margin: 14px 0;
}

.legal-document li {
  color: var(--gray);
  padding: 7px 0 7px 22px;
  position: relative;
}

.legal-document li::before {
  content: ">";
  font-family: var(--font-mono);
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 0.85rem;
}

.legal-document a {
  color: var(--primary);
  text-decoration: none;
}

.legal-document a:hover {
  text-decoration: underline;
}

.highlight-box {
  background: rgba(0, 229, 160, 0.05);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 22px;
  border-radius: 8px;
  margin: 18px 0;
}

.highlight-box.warning {
  background: rgba(240, 180, 41, 0.06);
  border-color: rgba(240, 180, 41, 0.2);
}

.highlight-box h4 {
  font-family: var(--font-mono);
  margin-bottom: 8px;
  color: var(--light);
}

/* Responsive */
@media (max-width: 968px) {
  .page-hero h1 { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section { grid-template-columns: repeat(2, 1fr); padding: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .docs-content { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .docs-sidebar ul { display: flex; flex-wrap: wrap; gap: 12px; }
  .docs-sidebar li { margin: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .sdk-grid { grid-template-columns: 1fr; }

  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 260px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 90px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 999;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  nav > .btn { display: none; }
}

@media (max-width: 640px) {
  .page-hero { padding: 100px 0 50px; }
  .page-hero h1 { font-size: 1.7rem; }
  .values-grid, .stats-section { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.2rem; }
  .contact-form-wrapper { padding: 22px; }
  .contact-options { grid-template-columns: 1fr; }
  .about-content, .contact-section, .legal-content, .pricing-page { padding-top: 80px; }
  .docs-section { padding: 80px 0 50px; }
  .docs-notice { flex-direction: column; padding: 18px; text-align: center; }
  .about-image-placeholder { grid-template-columns: 1fr; }
  .nav-links { width: 100%; }
}

@media (max-width: 380px) {
  .page-hero { padding: 90px 0 40px; }
  .page-hero h1 { font-size: 1.4rem; }
}
