:root {
  --bg-color: #FAFAFA;
  --text-main: #111827;
  --text-muted: #4B5563;
  --accent-color: #10B981; /* Modern Emerald Green */
  --accent-hover: #059669;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-blur: blur(16px);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Sora', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  /* Light organic radial gradients */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Instrument Serif', serif;
  font-weight: 100;
  letter-spacing: 0.5px;
  color: #000;
}

/* Fallback for Chinese fonts so they don't look weird under Instrument Serif */
.zh-heading, .zh-title, .zh-list {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: #111827;
}
.zh-category {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #111827;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Glassmorphism Utilities (Adapted for Light Mode) */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Navigation */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.brand-name {
  font-size: 1.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-name .highlight {
  color: var(--accent-color);
}

/* Mobile Hamburger Menu Elements */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent-color);
}

.lang-switch {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #9CA3AF;
}
.lang-switch .active {
  color: #111827;
  font-weight: bold;
}
.lang-switch .lang-link:hover {
  color: var(--accent-color);
}

/* Buttons */
.btn-primary, .btn-primary-sm, .btn-secondary {
  display: inline-block;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary, .btn-primary-sm {
  background: var(--text-main); /* Deep dark for primary button in light mode */
  color: #fff;
  border: none;
}

.btn-primary:hover, .btn-primary-sm:hover {
  background: var(--accent-color);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-primary-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-primary {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--text-main);
  color: #fff;
}

.full-width {
  width: 100%;
}
.mt-1 {
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 10rem auto 4rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 70vh;
}

.hero-content {
  flex: 1;
}

.tags-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tag-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.main-heading {
  font-size: 4.8rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.zh-heading {
  font-size: 3.5rem;
  line-height: 1.3;
}

.sub-heading {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

.sub-heading b {
  color: var(--accent-hover);
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.hero-graphic {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-frame {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.frame-header {
  background: #f9fafb;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.frame-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.frame-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.frame-dots .dot:nth-child(1) { background: #ff5f56; }
.frame-dots .dot:nth-child(2) { background: #ffbd2e; }
.frame-dots .dot:nth-child(3) { background: #27c93f; }

.frame-content {
  padding: 1.5rem;
  background: white;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshot-placeholder span {
  font-family: 'Fira Code', monospace;
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 600;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.glow-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-color);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 1;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Sections Global */
.features, .how-it-works-section, .skills-section, .testimonials-section, .pricing-section {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
}
.zh-title {
  font-size: 2.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Feature Grids */
.feature-grid {
  display: grid;
  gap: 2rem;
}
.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* How It Works Layer */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.step-number {
  font-family: 'Fira Code', monospace;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
}

.step-card .icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  z-index: 2;
}

.step-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  z-index: 2;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  z-index: 2;
}

@media (min-width: 900px) {
  .step-card:not(:last-child)::after {
    content: "➔";
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translate(50%, -50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.3;
    z-index: 0;
  }
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-quote::before {
  content: '"';
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -0.4rem;
  margin-right: 0.4rem;
}

.star-rating {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-author {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.testimonial-farm {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}
.zh-title h3 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Pricing Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.billing-label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  font-size: 1.1rem;
}

.discount-badge {
  position: absolute;
  top: -24px;
  right: -60px;
  background: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
  .discount-badge {
    right: 0;
    top: -28px;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--glass-border);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Pricing */
.pricing-category {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.pricing-category span {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: 'Sora', sans-serif;
  font-weight: 400;
}

.pricing-category-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--accent-color);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-color);
  color: #fff;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.pricing-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price {
  font-family: 'Fira Code', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.original-price {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hardware-price {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.hardware-price span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.3rem;
}

.specs-list {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}

.specs-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-size: 0.95rem;
  color: var(--text-main);
}

.specs-list li.sub-skill {
  padding-left: 1rem;
  color: var(--text-muted);
  border-bottom: none;
}
.specs-list li:last-child {
  border-bottom: none;
}
.specs-list strong {
  color: var(--accent-hover);
}

.pricing-divider {
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.08); /* slightly darker than glass-border */
  margin: 4rem 0;
}


/* Contact Form */
.contact-section {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem;
  margin-top: 6rem;
  background: #FFFFFF;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-brand {
  max-width: 300px;
}
.footer-logo {
  height: 72px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a:hover, .footer-social a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  /* Hamburger to X Animation */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    margin-top: 6rem;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .tags-group, .cta-group {
    justify-content: center;
  }

  .main-heading {
    font-size: 2.5rem;
  }
  
  .zh-heading {
    font-size: 2.2rem;
  }

  /* Pricing adjustments for small vertical screens */
  .price {
    font-size: 2.5rem;
  }
  .original-price {
    font-size: 1.2rem;
  }
  .billing-label {
    font-size: 0.95rem;
  }
  .hardware-price {
    font-size: 0.95rem;
  }
  
  .sub-heading {
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }
}
