/* Clay.com Inspired Premium Aesthetic Design System */
:root {
  --bg-page: #FBF9F5;
  --bg-page-alt: #F3F0E8;
  
  --clay-emerald: #0B3B24;
  --clay-emerald-light: #135235;
  --clay-emerald-surface: rgba(11, 59, 36, 0.05);
  
  --clay-lime: #D7FE00;
  --clay-lime-hover: #C4F700;
  
  --text-dark: #0F172A;
  --text-muted-dark: #475569;
  --text-light: #FFFFFF;
  --text-muted-light: #94A3B8;
  --text-lime: #D7FE00;
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-emerald: rgba(255, 255, 255, 0.12);
  
  --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-max: 36px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  
  --shadow-clay: 0 20px 40px rgba(11, 59, 36, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-btn: 0 8px 24px rgba(215, 254, 0, 0.35);
  --shadow-btn-dark: 0 8px 24px rgba(11, 59, 36, 0.25);
  
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Scroll Reveal Animations (Clay.com Motion) */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, .reveal-scale.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Navigation (Clay.com Floating Pill Bar) */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.nav-content {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--clay-emerald);
  letter-spacing: -0.5px;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Language Switcher Switch (Clay Pill Style) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted-dark);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--clay-emerald);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 59, 36, 0.25);
}

.nav-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--clay-emerald);
  color: var(--clay-lime);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-btn-dark);
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: var(--clay-emerald-light);
}

/* Buttons (Clay.com Pill Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-lime {
  background: var(--clay-lime);
  color: var(--clay-emerald);
  box-shadow: var(--shadow-btn);
}

.btn-lime:hover {
  background: var(--clay-lime-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(215, 254, 0, 0.5);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(12px);
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Clay Emerald Hero Container */
.hero-wrapper {
  padding-top: 110px;
}

.hero-emerald-card {
  background: var(--clay-emerald);
  border-radius: var(--radius-max);
  padding: 80px 48px 60px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 59, 36, 0.15);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(215, 254, 0, 0.15);
  border: 1px solid rgba(215, 254, 0, 0.3);
  border-radius: var(--radius-pill);
  color: var(--clay-lime);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--clay-lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--clay-lime);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--clay-lime);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #E2E8F0;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.version-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Clay Hero Image Banner (3D Claymation Asset) */
.hero-image-banner {
  margin-top: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-image-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Clay Interactive Parser Mockup Card */
.demo-card {
  margin-top: 80px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-clay);
  border: 1px solid var(--border-light);
}

.demo-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.demo-title-group h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.demo-title-group p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

.demo-badge-active {
  background: rgba(11, 59, 36, 0.08);
  color: var(--clay-emerald);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.demo-section-box {
  background: var(--bg-page-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.demo-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clay-emerald);
  margin-bottom: 16px;
}

.demo-pills-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted-dark);
  margin-bottom: 10px;
  display: block;
}

.demo-pills-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.demo-pill {
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.demo-pill:hover {
  border-color: var(--clay-emerald);
}

.demo-pill.active {
  background: var(--clay-emerald);
  color: var(--clay-lime);
  border-color: var(--clay-emerald);
  box-shadow: 0 4px 12px rgba(11, 59, 36, 0.2);
}

.demo-action-btn {
  width: 100%;
  padding: 14px;
  background: var(--clay-emerald);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.demo-action-btn:hover:not(:disabled) {
  background: var(--clay-emerald-light);
  transform: translateY(-2px);
}

.demo-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-status-output {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  display: none;
}

/* Features Grid (Clay Cards) */
.features {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted-dark);
}

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

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-clay);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--clay-emerald);
  box-shadow: 0 25px 50px rgba(11, 59, 36, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: var(--clay-emerald-surface);
  color: var(--clay-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-dark);
}

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

/* Installation Guide Section */
.installation {
  padding: 120px 0;
  background: var(--bg-page-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  align-items: flex-start;
  box-shadow: var(--shadow-clay);
  transition: var(--transition);
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: var(--clay-emerald);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--clay-emerald);
  color: var(--clay-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-body p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.code-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-page-alt);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: monospace;
  font-size: 1rem;
  color: var(--clay-emerald);
  font-weight: 700;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  color: var(--clay-emerald);
}

/* Privacy Page Container */
.page-content {
  padding: 160px 0 100px;
  max-width: 860px;
  margin: 0 auto;
}

.privacy-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-max);
  padding: 56px;
  box-shadow: var(--shadow-clay);
}

.privacy-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clay-emerald);
  margin-bottom: 24px;
}

.privacy-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--clay-emerald);
}

.privacy-card p, .privacy-card li {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  margin-bottom: 14px;
  line-height: 1.75;
}

.privacy-card ul {
  padding-left: 24px;
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  background: var(--bg-page);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a:hover {
  color: var(--clay-emerald);
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-title {
    font-size: 3rem;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-emerald-card {
    padding: 60px 24px 40px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .step-item {
    flex-direction: column;
    gap: 16px;
  }
}
