/* Emerald Matrix Theme - WPS Office v7 */
:root {
  --primary: #10b981; /* Emerald 500 */
  --primary-dark: #059669; /* Emerald 600 */
  --secondary: #0f172a; /* Slate 900 */
  --accent: #f59e0b; /* Amber 500 */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-head {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Hero */
#hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-item {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
}

.stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.875rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

/* Features */
#features {
  background-color: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.feat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--primary);
}

.feat-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feat-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

.feature-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 100px;
}

.feature-deep:nth-child(even) {
  direction: rtl;
}

.feature-deep:nth-child(even) .deep-content {
  direction: ltr;
}

.deep-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.deep-visual {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
}

/* Platforms */
#platforms {
  background-color: var(--bg-alt);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.plat-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.plat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--secondary);
}

.plat-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.plat-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 24px;
  display: block;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: var(--bg-alt);
  padding: 40px;
  border-radius: 16px;
  position: relative;
}

.rev-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--accent);
}

.rev-text {
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text);
}

.rev-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

/* Security */
#security {
  background-color: var(--secondary);
  color: var(--white);
}

#security h2, #security .section-subtitle, #security h3 {
  color: var(--white);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.sec-card {
  text-align: center;
}

.sec-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
  margin: 0 auto 24px;
}

.compare-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--white);
}

.compare-table th, .compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table th {
  font-size: 1.1rem;
  color: var(--primary);
}

.check-icon {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

/* Versions */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ver-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.ver-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.ver-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ver-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.ver-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.ver-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
}

.ver-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-q {
  padding: 24px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.3s;
}

.faq-q:hover {
  background: var(--bg-alt);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--bg-alt);
}

.faq-a-inner {
  padding: 0 24px 24px;
  color: var(--text-light);
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .hero-grid, .features-grid, .platforms-grid, .versions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .nav-links { display: none; }
  .hero-grid, .features-grid, .platforms-grid, .reviews-grid, .security-grid, .versions-grid, .feature-deep {
    grid-template-columns: 1fr;
  }
  .feature-deep:nth-child(even) { direction: ltr; }
}
