/* ==========================================================================
   CordCloud Terminal Environment Stylesheet (Pure Native CSS)
   Target Brand: CordCloud | Domain: cordcloud.lat
   Design Spec: Dark Terminal #0B0F14 | Panel #10161E | Text #C9D6CE
   Border #1B2733 | Fluorescent Mint Green Accent #34F5A4
   Fonts: JetBrains Mono 800 (Headings) | Sora (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0B0F14;
  --panel-bg: #10161E;
  --panel-bg-hover: #141C27;
  --text-main: #C9D6CE;
  --text-muted: #82928A;
  --border-color: #1B2733;
  --border-glow: rgba(52, 245, 164, 0.35);
  --accent: #34F5A4;
  --accent-dim: rgba(52, 245, 164, 0.12);
  --accent-glow: rgba(52, 245, 164, 0.25);
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* CRT Scanlines Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.01),
    rgba(0, 255, 0, 0.005),
    rgba(0, 0, 255, 0.01)
  );
  background-size: 100% 3px, 3px 100%;
  opacity: 0.4;
}

/* Subtle Matrix Grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Typography & Headings */
h1, h2, h3, h4, .font-mono {
  font-family: var(--font-mono);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  color: var(--text-main);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.text-accent {
  color: var(--accent) !important;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

/* Pulse Status Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.35; transform: scale(0.85); box-shadow: 0 0 2px var(--accent); }
}

/* Blinking Terminal Cursor */
.cursor-block {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background-color: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: cursor-blink 1s infinite steps(1);
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Terminal Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  border-radius: 3px;
  position: relative;
  letter-spacing: 0.02em;
}

.btn:hover {
  background-color: var(--accent);
  color: #0B0F14;
  text-decoration: none;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--border-color);
  color: var(--text-main);
  background-color: rgba(16, 22, 30, 0.7);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background-color: var(--panel-bg-hover);
  color: var(--accent);
  box-shadow: none;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(52, 245, 164, 0.05);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.system-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

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

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* Terminal Console Box */
.terminal-box {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.terminal-header {
  background: #0B0F14;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

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

.t-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1B2733;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  height: 340px;
  overflow-y: hidden;
  color: var(--text-main);
  position: relative;
}

.log-entry {
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.log-time {
  color: var(--text-muted);
}

.log-ip {
  color: #82928A;
}

.log-ok {
  color: var(--accent);
}

.log-tag {
  color: var(--accent);
  font-weight: 700;
}

/* Feature Grid */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.terminal-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-fast);
  position: relative;
}

.terminal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(52, 245, 164, 0.05);
  transform: translateY(-4px);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

.card-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-tech-specs {
  border-top: 1px dashed var(--border-color);
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Streaming & AI Matrix */
.streaming-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stream-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2.25rem;
}

.stream-card h3 {
  margin-bottom: 0.75rem;
}

.stream-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.stream-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: rgba(11, 15, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stream-badge::before {
  content: "✔";
  color: var(--accent);
  font-weight: bold;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(52, 245, 164, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #0B0F14;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.plan-price {
  font-family: var(--font-mono);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.price-currency {
  font-size: 1.25rem;
  color: var(--accent);
  vertical-align: top;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.plan-features li::before {
  content: ">";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 800;
}

.pricing-card .btn {
  width: 100%;
}

/* Reviews / Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.review-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.reviewer-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.reviewer-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.review-stars {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition-fast);
}

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

.faq-icon {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Articles List / Insights */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.article-snippet {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Article Detail Template */
.article-detail-wrap {
  max-width: 860px;
  margin: 3.5rem auto 5rem;
  padding: 0 1.5rem;
}

.article-detail-wrap h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  margin-top: 2rem;
}

.article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.article-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: #B5C4BC;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #B5C4BC;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--panel-bg);
  margin: 1.5rem 0;
  font-style: normal;
  border-radius: 0 4px 4px 0;
}

.article-body code {
  font-family: var(--font-mono);
  background: #0B0F14;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--accent);
  font-size: 0.9em;
}

/* Footer (strictly 4 titles: 网站地图, 关于我们, 服务条款, 隐私政策) */
.site-footer {
  background: #070A0E;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  position: relative;
}

.footer-nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .features-grid, .pricing-grid, .reviews-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .streaming-matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .nav-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .features-grid, .pricing-grid, .reviews-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
  .system-telemetry-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .footer-nav-bar {
    flex-direction: column;
    gap: 1.25rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
