/* ── Variables & Setup ── */
:root {
  /* Colors - Clean Light Theme */
  --bg-color: #ffffff; 
  --surface: #f8fafc; /* Slate 50 */
  --surface-alt: #f1f5f9; /* Slate 100 */
  
  --accent: #10b981; /* Emerald 500 */
  --accent-hover: #059669; /* Emerald 600 */
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --border: #e2e8f0; /* Slate 200 */
  --border-hover: #cbd5e1; /* Slate 300 */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  /* Typgraphy */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Layout */
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  background: var(--bg-color);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Common UI Components ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ── Hero Section ── */
#hero {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, var(--surface-alt) 0%, var(--bg-color) 60%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 64px;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}

.hero-brand-logo {
  width: 128px;
  height: 128px;
  border-radius: 32px;
}

.hero-brand-text {
  font-size: 72px;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: 48px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-screenshot-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1000px;
}

.hero-screenshot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  background: var(--surface);
  transform: rotateX(5deg) scale(0.95);
  transition: transform 0.5s ease;
}

.hero-screenshot:hover {
  transform: rotateX(0deg) scale(1);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-screenshot iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* ── Stats Bar ── */
#stats {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stats-bar img {
  height: 28px;
  border-radius: 4px;
}

/* ── Sections Common ── */
.section {
  padding: 120px 0;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Product Showcase (Features) ── */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.product-row.reverse {
  flex-direction: row-reverse;
}

.product-text {
  flex: 1;
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--surface-alt);
  color: var(--accent);
  border: 1px solid var(--border);
}

.product-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.product-text p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.product-image-container {
  flex: 1.2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Demo Video ── */
.demo-video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.demo-video-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
}

/* ── Install Section ── */
.install-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.install-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding-right: 16px;
}

.terminal-tabs {
  display: flex;
  overflow-x: auto;
}

.terminal-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  padding: 16px 24px;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--surface-alt);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  background: #fff;
}

.install-actions {
  display: flex;
  align-items: center;
}

.terminal-content {
  padding: 40px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

.pane-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tab-pane h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.tab-pane p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}

.styled-list {
  list-style: none;
  counter-reset: my-counter;
}

.styled-list li {
  counter-increment: my-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

.styled-list li::before {
  content: counter(my-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px; height: 24px;
  background: var(--surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.styled-list code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: nowrap;
}

.code-block code::-webkit-scrollbar { height: 4px; }
.code-block code::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }

.copy-btn {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.install-note {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin-top: 12px;
  margin-bottom: 0 !important;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 64px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}

.footer-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}

/* ── Animations ── */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up { transform: translateY(40px); }
.fade-in { opacity: 0; }

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-brand-text { font-size: 56px; }
  .hero-brand-logo { width: 56px; height: 56px; }
  .hero-tagline { font-size: 40px; }
  
  .product-row, .product-row.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .feature-icon {
    margin: 0 auto 24px;
  }
  
  .pane-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-brand-text { font-size: 40px; }
  .hero-brand-logo { width: 40px; height: 40px; border-radius: 12px; }
  .hero-tagline { font-size: 32px; }
  .hero-screenshot { transform: none; }
  
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s ease;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); }
  
  .install-header {
    flex-direction: column;
    align-items: stretch;
    padding-right: 0;
  }
  
  .terminal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
  }
  
  .install-actions {
    padding: 16px;
    background: var(--surface-alt);
    justify-content: center;
  }
  
  .terminal-content { padding: 24px 16px; }
}
