:root {
  --bg: #0b0f14;
  --bg-elevated: #141921;
  --card: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --brand: #a78bfa;
  --brand-dark: #8b5cf6;
  --brand-light: #c4b5fd;
  --accent: #8cdcff;
  --accent-dark: #60c5f5;
  --accent-light: #b8e7ff;
  --text: #ffffff;
  --text-muted: #9aa4b2;
  --text-subtle: #6b7785;
  --danger: #ff6b6b;
  --success: #51cf66;
  --warning: #ffc107;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --glass-blur: 18px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(167, 139, 250, 0.4);
  --shadow-glow-accent: 0 0 20px rgba(140, 220, 255, 0.4);

  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--brand);
  color: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.glass-panel {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #000000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  color: #000000;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #000000;
  box-shadow: var(--shadow-glow-accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  color: #000000;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(11, 15, 20, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

#header.scrolled {
  background: rgba(11, 15, 20, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo span {
  color: var(--brand);
}

.nav-logo .logo-image {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.nav-logo:hover .logo-image {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.btn-primary {
  color: #000000;
}

.nav-links a.btn-primary:hover {
  color: #000000;
}

.nav-links a.btn-primary::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-4xl) 0;
  margin-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(167, 139, 250, 0.12), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(140, 220, 255, 0.1), transparent 50%);
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-mouse-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(20px);
  animation: heroSlideUp 0.8s ease-out 0.5s forwards;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-muted);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
  opacity: 0;
  animation: heroFadeIn 0.8s ease-out 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeIn 0.8s ease-out 1.1s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes heroSlideUp {
  to {
    transform: translateY(0);
  }
}

.section {
  padding: var(--spacing-4xl) 0;
}

.section-with-header {
  padding-top: 180px !important;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.value-card {
  padding: var(--spacing-xl);
  text-align: center;
}

.value-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: var(--bg);
  font-size: 2rem;
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.value-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.service-card {
  padding: var(--spacing-xl);
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.service-card .price {
  color: var(--brand);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-card-content {
  padding: var(--spacing-xl);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.project-placeholder {
  height: 240px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(96, 197, 245, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
}

.project-placeholder svg {
  opacity: 0.3;
  position: relative;
}

.tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.tag {
  padding: 0.375rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--card);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  font-size: 0.875rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.breadcrumbs {
  display: inline-flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .separator {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.prose {
  line-height: 1.7;
  color: var(--text-muted);
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.prose h1 {
  font-size: 2.5rem;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose p {
  margin-bottom: var(--spacing-lg);
}

.prose ul,
.prose ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

.prose li {
  margin-bottom: var(--spacing-sm);
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
}

.prose code {
  background: var(--bg-elevated);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* GitHub README Style Content */
.markdown-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body > *:last-child {
  margin-bottom: 0;
}

.markdown-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.markdown-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.markdown-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

.markdown-body li > ul,
.markdown-body li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.markdown-body strong {
  color: var(--text);
  font-weight: 600;
}

.markdown-body a {
  color: var(--brand);
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent);
}

.markdown-body pre {
  background: #161b22;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.markdown-body blockquote {
  border-left: 4px solid var(--brand);
  padding: 0.5rem 1rem;
  margin: 0 0 1rem 0;
  background: rgba(167, 139, 250, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markdown-body blockquote p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.markdown-body th,
.markdown-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.markdown-body th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text);
}

.markdown-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

/* Tech badges/tags in content */
.markdown-body .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.markdown-body .tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Result/stat cards */
.markdown-body ul li strong:first-child {
  color: var(--accent);
}

/* Section divider styling */
.markdown-body h2:not(:first-child)::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 2.5rem;
}

.pricing-card {
  padding: var(--spacing-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
}

.pricing-card h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
  margin: var(--spacing-lg) 0;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: var(--spacing-xl) 0;
  flex-grow: 1;
}

.pricing-card ul li {
  padding: var(--spacing-sm) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--text-muted);
}

.pricing-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item {
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 20, 0.98);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    min-height: 80vh;
    margin-top: 60px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
