@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  /* Primary Colors - Deep Purple & Electric Blue */
  --primary-900: #1a0b2e;
  --primary-800: #2d1b4e;
  --primary-700: #4c2a85;
  --primary-600: #6b46c1;
  --primary-500: #8b5cf6;
  --primary-400: #a78bfa;
  --primary-300: #c4b5fd;
  --primary-200: #ddd6fe;
  --primary-100: #ede9fe;
  --primary-50:  #f5f3ff;

  /* Accent Colors - Neon Green */
  --accent-600: #059669;
  --accent-500: #10b981;
  --accent-400: #34d399;
  --accent-300: #6ee7b7;
  --accent-200: #a7f3d0;
  --accent-100: #d1fae5;

  /* Neutrals - Warm Grays */
  --neutral-900: #1c1917;
  --neutral-800: #292524;
  --neutral-700: #44403c;
  --neutral-600: #57534e;
  --neutral-500: #78716c;
  --neutral-400: #a8a29e;
  --neutral-300: #d6d3d1;
  --neutral-200: #e7e5e4;
  --neutral-100: #f5f5f4;
  --neutral-50:  #fafaf9;

  --white: #ffffff;

  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.brand-name .ai {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Page Hero (shared banner) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.page-hero-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ─── Page Main ─────────────────────────────────────────────── */
.page-main {
  flex: 1;
  padding: var(--space-24) 0;
}

/* ─── Content Prose ─────────────────────────────────────────── */
.prose-content {
  max-width: 800px;
}

.prose-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
  margin-top: var(--space-12);
  letter-spacing: -0.01em;
}

.prose-content h2:first-child { margin-top: 0; }

.prose-content p {
  font-size: 16px;
  color: var(--neutral-700);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.prose-content ul {
  margin: 0 0 var(--space-5) var(--space-6);
}

.prose-content ul li {
  font-size: 16px;
  color: var(--neutral-700);
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

/* ─── Empty Placeholder ─────────────────────────────────────── */
.empty-placeholder {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-2xl);
  padding: var(--space-24) var(--space-12);
  text-align: center;
  color: var(--neutral-400);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--neutral-50);
}

/* ─── About Blocks ───────────────────────────────────────────── */
.about-block {
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--neutral-200);
}

.about-block:last-child { border-bottom: none; }

.about-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}

.about-block-inner.reverse { direction: rtl; }
.about-block-inner.reverse > * { direction: ltr; }

.about-block-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: var(--space-5);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-block-text {
  font-size: 17px;
  color: var(--neutral-600);
  line-height: 1.75;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--neutral-200) 0%, var(--neutral-100) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0, 0, 0, 0.02) 20px,
    rgba(0, 0, 0, 0.02) 40px
  );
}

.about-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-50) 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-200);
  padding: var(--space-6);
}

.about-svg {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 300px;
}

.about-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-100);
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-200);
}

.about-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-600);
  border-radius: 50%;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  color: var(--white);
  font-size: 20px;
  margin-top: var(--space-3);
}

.footer-brand .brand-name .ai {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--neutral-500);
  margin-top: var(--space-3);
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 15px;
  color: var(--neutral-500);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy { font-size: 14px; color: var(--neutral-600); }

.footer-legal {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-legal a { font-size: 14px; color: var(--neutral-600); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--neutral-400); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .about-block-inner { grid-template-columns: 1fr; }
  .about-block-inner.reverse { direction: ltr; }
  .about-photo { aspect-ratio: 3 / 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: var(--space-16) 0; }
}