/* CSS Reset & Variables */
:root {
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier,
    monospace;

  /* Colors */
  --bg-dark: #070913;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Brand Accents */
  --emerald: #10b981;
  --emerald-rgb: 16, 185, 129;
  --blue: #38bdf8;
  --blue-rgb: 56, 189, 248;
  --amber: #f59e0b;
  --amber-rgb: 245, 158, 11;
  --purple: #a78bfa;
  --purple-rgb: 167, 139, 250;
  --rose: #f43f5e;
  --rose-rgb: 244, 63, 94;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient Background Glows */
.glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.12;
  z-index: -1;
  mix-blend-mode: screen;
}
.glow-1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.8) 0%, transparent 70%);
  top: -10vw;
  right: -5vw;
}
.glow-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.8) 0%, transparent 70%);
  top: 40vw;
  left: -10vw;
}

/* Typography & Links */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.max-w-3xl {
  max-width: 768px;
}
.text-center {
  text-align: center;
}
.w-full {
  width: 100%;
}
.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn-large {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
}
.btn-icon {
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
}
.btn-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-label {
  font-weight: 700;
}
.btn-sublabel {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Glassmorphism Panel styles */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), transform var(--transition-medium);
}
.glass-panel:hover {
  border-color: var(--border-hover);
}

.glass-card {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--transition-fast);
}
.glass-card:hover {
  background: rgba(30, 41, 59, 0.35);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--emerald) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-star-btn {
  gap: 0.4rem;
}
.nav-star-icon {
  margin-right: 0.35rem;
  width: 16px;
  height: 16px;
  color: var(--amber);
}
.star-count {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-star-btn .star-count {
  margin-left: 0.35rem;
}
.star-count:empty {
  display: none;
}
.open-source-cta .star-count {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.badge-container {
  margin-bottom: 1.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-icon {
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.smart-download-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.verification-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.25rem;
}
.checksum-code {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.copy-btn,
.copy-code-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.copy-btn:hover,
.copy-code-btn:hover {
  color: var(--text-primary);
}
.copy-icon,
.copy-code-btn i {
  width: 14px;
  height: 14px;
}
.or-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.links-group {
  display: flex;
  gap: 1.25rem;
}
.sec-platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.sec-platform-link:hover {
  color: var(--blue);
}
.sec-platform-link i {
  width: 14px;
  height: 14px;
}

/* App Interface Mockup CSS */
.hero-visual {
  width: 100%;
}
.app-mockup-window {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.window-titlebar {
  height: 40px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  justify-content: space-between;
}
.window-controls {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.close {
  background-color: #ef4444;
}
.dot.minimize {
  background-color: #f59e0b;
}
.dot.maximize {
  background-color: #10b981;
}
.window-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.window-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-indicator-dot.online {
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.status-indicator-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.window-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #fcfaf5;
}
.mockup-icon-bar {
  width: 44px;
  background: #f4f0e7;
  border-right: 1px solid #e5dfd3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  justify-content: space-between;
}
.icon-bar-top {
  display: flex;
  justify-content: center;
}
.icon-bar-logo {
  width: 20px;
  height: 20px;
  background: #231f20;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.icon-bar-middle {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.icon-bar-item {
  color: #7a7873;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.icon-bar-item:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #2c2a29;
}
.icon-bar-item.active {
  background: #fff;
  color: #2c2a29;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.icon-bar-item i {
  width: 14px;
  height: 14px;
}
.icon-bar-bottom {
  display: flex;
  justify-content: center;
}
.icon-bar-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ebdcc4;
  color: #2c2a29;
  font-weight: 700;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.mockup-sidebar {
  width: 200px;
  border-right: 1px solid #e5dfd3;
  background: #f4f0e7;
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}
.workspace-picker-label,
.sidebar-header-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #7a7873;
  letter-spacing: 0.05em;
  padding: 0 0.85rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}
.sidebar-header-label {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.workspace-picker {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5dfd3;
  margin: 0 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.workspace-folder-icon {
  width: 14px;
  height: 14px;
  color: #7a7873;
  margin-right: 0.4rem;
}
.workspace-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.1;
  text-align: left;
}
.workspace-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2c2a29;
}
.workspace-path {
  font-size: 0.58rem;
  color: #7a7873;
}
.picker-arrow {
  width: 12px;
  height: 12px;
  color: #7a7873;
}
.sidebar-nav {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a4843;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #2c2a29;
}
.sidebar-item.active {
  background: #fff;
  color: #2c2a29;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-item i {
  width: 13px;
  height: 13px;
  color: #7a7873;
}
.sidebar-item.active i {
  color: #2c2a29;
}
.badge-count {
  margin-left: auto;
  font-size: 0.65rem;
  background: #231f20;
  color: #fff;
  padding: 0.05rem 0.35rem;
  border-radius: 9999px;
  font-weight: 700;
}
.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 12, 24, 0.5);
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
}
.avatar.bg-emerald {
  background-color: var(--emerald);
}
.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-name {
  font-size: 0.7rem;
  font-weight: 600;
}
.user-role {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Mockup Table & Badges styling */
.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65rem;
  text-align: left;
}
.mockup-table th {
  color: #7a7873;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e5dfd3;
}
.mockup-table td {
  padding: 0.4rem 0.5rem;
  color: #4a4843;
  border-bottom: 1px solid #f5f2eb;
}
.badge-table {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  display: inline-block;
}
.badge-table-red {
  background: #fdf2f2;
  color: #c04848;
}
.badge-table-amber {
  background: #fefaf0;
  color: #b27a1a;
}
.badge-table-emerald {
  background: #f0fdf4;
  color: #15803d;
}

.mockup-main {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fcfaf5;
}
.pane-header {
  margin-bottom: 1rem;
  text-align: left;
}
.pane-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c2a29;
}
.pane-subtitle {
  font-size: 0.65rem;
  color: #7a7873;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.pane-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.inbox-item {
  border: 1px solid #e5dfd3;
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  text-align: left;
}
.inbox-item.urgent {
  border-color: #f8b4b4;
  background: #fff5f5;
}
.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.item-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
}
.tag-red {
  background: #fdf2f2;
  color: #c04848;
  border-color: #f8b4b4;
}
.tag-blue {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}
.tag-emerald {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}
.item-time {
  font-size: 0.6rem;
  color: #7a7873;
}
.item-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2c2a29;
  margin-bottom: 0.25rem;
}
.item-summary {
  font-size: 0.7rem;
  color: #4a4843;
  margin-bottom: 0.5rem;
}
.payload-box {
  background: #faf8f5;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #e5dfd3;
  margin-bottom: 0.5rem;
}
.payload-box pre {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #4a4843;
  overflow-x: auto;
}
.item-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-mock {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.btn-mock-danger {
  background: #fff;
  color: #c04848;
  border-color: #dfc8c8;
}
.btn-mock-danger:hover {
  background: #fff5f5;
  border-color: #f8b4b4;
}
.btn-mock-success {
  background: #231f20;
  color: #fff;
  border-color: #231f20;
}
.btn-mock-success:hover {
  background: #000;
  border-color: #000;
}
.btn-mock-secondary {
  background: #f4f0e7;
  color: #4a4843;
  border-color: #e5dfd3;
}
.btn-mock-secondary:hover {
  background: #ebdcc4;
  color: #2c2a29;
}
.btn-mock-primary {
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue);
  border-color: rgba(56, 189, 248, 0.2);
}
.btn-mock-primary:hover {
  background: var(--blue);
  color: #000;
  font-weight: 700;
}

/* Feature Showcase Tabs */
.features-showcase-section {
  padding-bottom: 80px;
}
.section-header {
  margin-bottom: 3rem;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 9999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  transition: all var(--transition-fast);
}
.tab-btn:hover {
  color: var(--text-primary);
}
.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.tab-btn i {
  width: 16px;
  height: 16px;
}

/* Five Primitives Section */
.features-grid-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-icon i {
  width: 24px;
  height: 24px;
}
.bg-emerald-trans {
  background: rgba(16, 185, 129, 0.1);
}
.text-emerald {
  color: var(--emerald);
}
.bg-blue-trans {
  background: rgba(56, 189, 248, 0.1);
}
.text-blue {
  color: var(--blue);
}
.bg-amber-trans {
  background: rgba(245, 158, 11, 0.1);
}
.text-amber {
  color: var(--amber);
}
.bg-purple-trans {
  background: rgba(167, 139, 250, 0.1);
}
.text-purple {
  color: var(--purple);
}
.bg-rose-trans {
  background: rgba(244, 63, 94, 0.1);
}
.text-rose {
  color: var(--rose);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Architecture Section */
.architecture-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
}
.architecture-diagram {
  margin-top: 4rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
}
.arch-box {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  width: 250px;
}
.arch-box-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.box-ui .arch-box-header {
  color: var(--blue);
}
.box-sidecar .arch-box-header {
  color: var(--emerald);
}
.box-system .arch-box-header {
  color: var(--purple);
}
.arch-box-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.arch-arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 1rem;
}
.arch-arrow-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}
.arch-arrow-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), rgba(16, 185, 129, 0.3));
  width: 100%;
  position: relative;
}
.arch-arrow-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border-width: 4px 0 4px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(16, 185, 129, 0.6);
}

/* Downloads Section */
.downloads-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.download-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}
.download-card.highlight {
  border-color: var(--emerald);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}
.download-card.highlight::after {
  content: "RECOMMENDED";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  background: var(--emerald);
  color: #000;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.dl-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.dl-platform-icon {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
}
.dl-platform-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.dl-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}
.dl-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dl-options .btn {
  font-size: 0.9rem;
  padding: 0.7rem;
}
.pkg-manager-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}
.pkg-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.code-copy-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.code-copy-container code {
  color: var(--blue);
  font-size: 0.75rem;
}
.code-copy-container button {
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding-top: 80px;
  padding-bottom: 120px;
  border-top: 1px solid var(--border-color);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
}
.faq-item {
  padding: 1.5rem 2rem;
}
.faq-question {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}
.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #04050a;
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-tagline {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 250px;
  font-size: 0.9rem;
}
.footer-links-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer-links-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-links-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Notification Banner */
.notification-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid var(--emerald);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.notification-banner.show {
  transform: translateY(0);
}
.notification-icon {
  width: 16px;
  height: 16px;
  color: var(--emerald);
}

/* Open Source Section */
.open-source-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.open-source-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.open-source-license {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* Tour Section styling */
.tour-section {
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--border-color);
}
.tour-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  min-height: 500px;
}
.tour-sidebar {
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  background: rgba(8, 12, 24, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tour-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tour-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}
.tour-tab-btn.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: #fff;
}
.tour-tab-btn i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.tour-tab-btn.active i {
  color: var(--emerald);
}
.tour-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(4, 6, 12, 0.2);
  gap: 2rem;
}
.tour-image-wrapper {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.tour-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}
.tour-caption-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .tour-container {
    grid-template-columns: 1fr;
  }
  .tour-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem;
    gap: 0.75rem;
  }
  .tour-tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .badge-container {
    justify-content: center;
    display: flex;
  }
  .hero-actions {
    align-items: center;
  }
  .smart-download-container {
    align-items: center;
  }
  .architecture-diagram {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }
  .arch-arrow-container {
    padding: 0.5rem 0;
  }
  .arch-arrow-line {
    width: 2px;
    height: 40px;
  }
  .arch-arrow-line::after {
    bottom: 0;
    top: auto;
    right: -3px;
    left: auto;
    border-width: 6px 4px 0 4px;
    border-color: rgba(16, 185, 129, 0.6) transparent transparent transparent;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .nav-star-btn {
    padding: 0.5rem 0.75rem;
  }
  .open-source-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
