/* ========================================
   We2ima - Custom Styles
   Neumorphism + WeChat Green Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #07C160;
  --primary-dark: #06a853;
  --primary-light: #e8f9ef;
  --secondary: #3B82F6;
  --secondary-dark: #2563EB;
  --secondary-light: #EFF6FF;
  --cta: #F97316;
  --cta-dark: #EA580C;
  --cta-light: #FFF7ED;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #1A202C;
  --text-muted: #718096;
  --border: #E2E8F0;
  --success: #22C55E;

  --font-heading: 'Lora', serif;
  --font-body: 'Raleway', sans-serif;

  --shadow-neu: 8px 8px 16px rgba(174,174,192,0.4), -8px -8px 16px rgba(255,255,255,0.8);
  --shadow-neu-sm: 4px 4px 8px rgba(174,174,192,0.3), -4px -4px 8px rgba(255,255,255,0.7);
  --shadow-soft: 0px 4px 20px rgba(0,0,0,0.08);
  --shadow-soft-hover: 0px 8px 30px rgba(0,0,0,0.15);
  --shadow-inset: inset 4px 4px 8px rgba(174,174,192,0.3), inset -4px -4px 8px rgba(255,255,255,0.7);
}

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-cta { color: var(--cta); }
.text-muted { color: var(--text-muted); }

.bg-white { background: var(--card); }
.bg-gray { background: var(--bg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.btn-cta:hover {
  background: var(--cta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(7,193,96,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7,193,96,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  border-radius: 1rem;
}

/* --- Neumorphism Cards --- */
.neu-card {
  background: var(--bg);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-neu);
  padding: 2rem;
}

.soft-card {
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: all 0.3s ease;
}
.soft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-hover);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0rem;
  left: 15rem;
  right: 15rem;
  z-index: 1000;
  background: rgba(245,245,245,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: var(--shadow-neu-sm);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.navbar-brand:hover { color: var(--primary); }

.navbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0,0,0,0.05);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch .active { color: var(--primary); font-weight: 700; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

/* --- Hero Section --- */
.hero {
  padding: 8rem 0 5rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-stat svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-neu);
  overflow: hidden;
  background: var(--bg);
  padding: 0.5rem;
}

.hero-image img {
  border-radius: 1rem;
  width: 100%;
}

.hero-image-placeholder {
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  width: 100%;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-direction: column;
  gap: 0.5rem;
}
.hero-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-inset);
  background: var(--bg);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Steps / Flow --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Connector line between steps */
.steps-connector {
  display: none;
}

@media (min-width: 768px) {
  .steps-connector {
    display: block;
    position: absolute;
    top: 3.75rem;
    left: calc(33.33% + 1rem);
    right: calc(33.33% + 1rem);
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

/* --- Security / Privacy --- */
.security-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 500;
}

.security-flow-item {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.security-flow-arrow {
  color: var(--primary);
  font-size: 1.25rem;
}

.security-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.security-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.security-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pricing-card {
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.pricing-card.recommended {
  border-color: var(--primary);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 1rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-quota {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-promo {
  text-align: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--cta-light) 0%, #FEF3C7 100%);
  border: 1px solid rgba(249,115,22,0.2);
  font-weight: 600;
  color: var(--cta-dark);
  font-size: 1rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-soft);
  border-radius: 1rem;
  transition: all 0.3s;
}

.faq-question:hover {
  box-shadow: var(--shadow-soft-hover);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* --- CTA Final --- */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  border-radius: 2rem;
  color: #fff;
}

.cta-card h2 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-card p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-card .btn-cta {
  background: #fff;
  color: var(--primary);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-card .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --- Docs Page --- */
.docs-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.docs-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.docs-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.docs-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.docs-content p {
  margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.5rem;
}

.docs-content code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  color: var(--cta-dark);
}

.docs-content pre {
  background: var(--text);
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.docs-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.docs-content th, .docs-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.docs-content th {
  background: var(--bg);
  font-weight: 600;
}

/* --- Feedback Page --- */
.feedback-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.feedback-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feedback-tab {
  flex: 1;
  padding: 0.875rem 1rem;
  text-align: center;
  background: var(--card);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.feedback-tab.active {
  background: var(--primary);
  color: #fff;
}

.feedback-form { display: none; }
.feedback-form.active { display: block; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--card);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin-bottom: 1rem;
}

/* --- Privacy Page --- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.privacy-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.privacy-content .privacy-meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.privacy-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.privacy-content p, .privacy-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.privacy-content th, .privacy-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.privacy-content th {
  background: var(--bg);
  font-weight: 600;
}

.privacy-content pre {
  background: var(--bg);
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.privacy-content strong {
  color: var(--text);
}

/* --- Sub-page Navbar (simple) --- */
.navbar-sub {
  background: var(--card);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-sub .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-tagline { font-size: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-right .btn { white-space: nowrap; padding: 0.4rem 0.75rem; font-size: 0.8rem; }
  .nav-right { gap: 0.5rem; }
  .lang-switch { font-size: 0.8rem; padding: 0.25rem 0.5rem; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245,245,245,0.95);
    backdrop-filter: blur(12px);
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
    gap: 0.75rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .hero { padding: 6rem 0 3rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-tagline { font-size: 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }

  .section { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .security-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  .cta-card { padding: 3rem 1.5rem; }
  .cta-card h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: 1.75rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .security-flow { font-size: 0.85rem; }
  .security-flow-item { padding: 0.5rem 0.75rem; }
}

/* ========================================
   Feature Detail Page
   ======================================== */

/* Page header for sub-pages */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.page-header + .section {
  padding-top: 1rem;
}

/* Core features - alternating left/right sections */
.feature-detail {
  padding: 4rem 0;
}
.feature-detail:nth-child(even) {
  background: var(--card);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.feature-detail-grid.reverse {
  direction: rtl;
}
.feature-detail-grid.reverse > * {
  direction: ltr;
}

.feature-detail-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.feature-detail-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.feature-points li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--primary);
}

.feature-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-detail-icon {
  width: 120px;
  height: 120px;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-neu);
  background: var(--bg);
}
.feature-detail-icon svg {
  width: 56px;
  height: 56px;
}

/* Utility features grid (6 cards) */
.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.utility-grid .soft-card {
  padding: 2rem 1.5rem;
}
.utility-grid .soft-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.utility-grid .soft-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.utility-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-inset);
  background: var(--bg);
}
.utility-icon svg {
  width: 24px;
  height: 24px;
}

/* Tech highlights grid (3 cards) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.highlight-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.highlight-card .highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.highlight-card .highlight-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.highlight-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   Pricing Detail Page (Tailark style)
   ======================================== */
.pricing-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.pricing-detail-card {
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.pricing-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-hover);
}
.pricing-detail-card.featured {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(7,193,96,0.2);
}
.pricing-detail-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-detail-card .pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #fff;
  padding: 0.25rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-detail-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.pricing-detail-card .price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pricing-detail-card .price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-detail-card .price-quota {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-feature-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

.pricing-detail-card .btn {
  width: 100%;
  justify-content: center;
}

/* Other plans section */
.pricing-other-plans {
  max-width: 500px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
  justify-content: center;
}
.pricing-other-item {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.pricing-other-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.pricing-other-item .price {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.pricing-other-item .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Comparison table */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.comparison-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.comparison-table thead th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.comparison-table thead th.featured-col {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.comparison-check {
  color: var(--primary);
  font-weight: 700;
}
.comparison-cross {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ========================================
   Docs Sidebar
   ======================================== */
.docs-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  gap: 2.5rem;
}

.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  margin-bottom: 1rem;
}

.docs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.docs-sidebar-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.docs-sidebar-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.docs-sidebar-nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  border-left-color: var(--primary);
}
.docs-sidebar-nav a.sub-link {
  padding-left: 1.5rem;
  font-size: 0.85rem;
}

.docs-layout .docs-content {
  flex: 1;
  max-width: 800px;
  padding: 0;
}

/* ========================================
   About Page
   ======================================== */
.about-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.about-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.about-logo svg {
  width: 48px;
  height: 48px;
}
.about-logo span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.about-version {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  text-align: left;
}

.about-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.about-section {
  margin-bottom: 2.5rem;
}
.about-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.about-section a {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--primary);
}
.about-section a:hover {
  color: var(--primary-dark);
}

.about-copyright {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.about-copyright p {
  margin-bottom: 0.5rem;
}

/* "Learn more" link in homepage sections */
.section-more {
  text-align: center;
  margin-top: 2rem;
}
.section-more a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.section-more a:hover {
  color: var(--primary-dark);
}

/* ========================================
   Responsive - New Pages
   ======================================== */
@media (max-width: 1024px) {
  .pricing-detail-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .pricing-detail-card.featured { transform: none; }
  .pricing-detail-card.featured:hover { transform: translateY(-4px); }
  .utility-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-header { padding: 6rem 0 2rem; }
  .page-header h1 { font-size: 1.75rem; }

  .feature-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-detail-grid.reverse {
    direction: ltr;
  }
  .feature-detail-visual { order: -1; }

  .utility-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }

  .pricing-detail-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-detail-card.featured { transform: none; }
  .pricing-detail-card.featured:hover { transform: translateY(-4px); }

  .pricing-other-plans { grid-template-columns: repeat(2, 1fr); }

  .comparison-table { font-size: 0.75rem; }
  .comparison-table th, .comparison-table td { padding: 0.4rem 0.3rem; }

  /* Docs sidebar: collapse on mobile */
  .docs-layout {
    flex-direction: column;
    padding-top: 6rem;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    padding-right: 0;
  }
  .docs-sidebar-toggle { display: block; }
  .docs-sidebar-nav { display: none; }
  .docs-sidebar-nav.open { display: flex; }
}

@media (max-width: 480px) {
  .pricing-other-plans { grid-template-columns: 1fr; }
  .about-links { flex-direction: column; align-items: center; }
}
