:root {
  /* Semantic Colors */
  --background: #ffffff;
  --foreground: #1a1a1a;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --accent: #18181b;
  --accent-foreground: #fafafa;
  
  /* Typography */
  --font-sans: "Iowan Old Style", "Charter", "Palatino", "Book Antiqua", "Georgia", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Spacing & Layout */
  --radius: 8px;
  --container-width: 1200px;
  --header-height: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #09090b;
    --foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
    --accent: #fafafa;
    --accent-foreground: #18181b;
  }
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Subtle mesh gradient background */
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(225,39%,30%,0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(339,49%,30%,0.03) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(190,100%,30%,0.03) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Header */
header {
  margin-bottom: 5rem;
  animation: fadeIn 0.6s ease-out;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* Sections */
.benchmark-section {
  margin-bottom: 8rem;
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

.benchmark-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--foreground);
  letter-spacing: -0.02em;
}

.model-section {
  margin-bottom: 4rem;
}

.model-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--accent);
  border-radius: 2px;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Comparison Card */
.comp-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.comp-card:hover {
  border-color: var(--foreground);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comp-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: hsla(0, 0%, 50%, 0.03);
}

.comp-prompt {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.comp-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.comp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--border);
}

.video-wrapper {
  background-color: var(--background);
  position: relative;
}

.video-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Placeholder */
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.03) 10px,
    rgba(0,0,0,0.03) 20px
  );
  padding: 1rem;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
  .comp-body {
    grid-template-columns: 1fr;
  }
  
  :root {
    --container-width: 100%;
  }
  
  .container {
    padding: 2rem 1rem;
  }
}
