:root {
  /* Linear-inspired light palette */
  --base-900: #ffffff;
  --base-800: #f7f7f7;
  --base-700: #efefef;
  --base-600: #e5e5e5;
  --base-500: #cccccc;
  --base-300: #999999;
  --base-200: #666666;
  --base-100: #333333;
  --base-0: #000000;
  
  /* Accent colors */
  --accent-primary: #0066ff;
  --accent-secondary: #000000;
  --accent-light: #0052cc;
  --accent-success: #00b341;
  
  /* Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f7;
  --bg-tertiary: #efefef;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border-color: #e5e5e5;
  --border-color-strong: #d0d0d0;
  
  --ink: #000000;
  --muted: #666666;
  --line: #e5e5e5;
  --glow: #0066ff;
  --accent: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff !important;
  color: #000000 !important;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

#root {
  position: relative;
  background: #ffffff !important;
  color: #000000 !important;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  background: #ffffff !important;
  color: #000000 !important;
}

.canvas-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: transparent !important;
}

.ui-layer {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.ui-layer a,
.ui-layer button,
.ui-layer .interactive {
  pointer-events: auto;
}

.scroll-track {
  position: relative;
  width: 100%;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #e5e5e5 !important;
  background: #ffffff !important;
  pointer-events: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #000000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-mark {
  width: 24px;
  height: 24px;
  border-radius: 0px !important;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
}

.nav-links {
  display: flex !important;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #666666 !important;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: #000000 !important;
}

.nav-cta {
  display: inline-flex !important;
  margin-left: 2rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta {
    display: inline-flex !important;
  }
}

.btn-fill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0px !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #000000 !important;
  color: #ffffff !important;
  text-decoration: none;
  border: none !important;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-fill:hover {
  opacity: 0.8;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0px !important;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent !important;
  color: #000000 !important;
  text-decoration: none;
  border: 1px solid #e5e5e5 !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-line:hover {
  background: #f7f7f7;
}

.hero-panel {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  max-width: 42rem;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
  margin-top: 2rem;
}

.hero-panel.hidden {
  opacity: 0;
  transform: translateY(-45%);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666666;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  color: #000000 !important;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 2rem;
  max-width: 520px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  pointer-events: auto;
}

.hero-founder {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
}

.agent-shell {
  position: relative;
  z-index: 14;
  padding: 3rem 2rem 6rem;
  display: flex;
  justify-content: center;
}

.design-agent-panel {
  width: min(100%, 72rem);
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 0px !important;
  border: 1px solid #e5e5e5 !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
}

.design-agent-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.design-agent-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999999;
  font-weight: 700;
}

.design-agent-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000 !important;
}

.design-agent-pill {
  border-radius: 0px !important;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  background: #f7f7f7;
  color: #666666;
  white-space: nowrap;
  border: 1px solid #e5e5e5;
}

.design-agent-form {
  display: grid;
  gap: 0.75rem;
}

.design-agent-label {
  font-size: 0.85rem;
  color: #666666;
  font-weight: 500;
}

.design-agent-form textarea {
  width: 100%;
  border-radius: 0px !important;
  border: 1px solid #e5e5e5 !important;
  background: #ffffff !important;
  color: #000000 !important;
  padding: 1rem;
  resize: vertical;
  min-height: 5rem;
  font: inherit;
}

.design-agent-actions {
  display: flex;
  justify-content: flex-start;
}

.design-agent-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.design-agent-chip {
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
  color: #000000 !important;
  border-radius: 0px !important;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.75rem;
  font-weight: 500;
}

.design-agent-chip:hover {
  background: #efefef;
}

.design-agent-chat {
  display: grid;
  gap: 0.55rem;
}

.design-agent-bubble {
  padding: 0.9rem 1rem;
  border-radius: 0px !important;
  font-size: 0.9rem;
  line-height: 1.5;
}

.design-agent-bubble.agent {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  color: #000000;
}

.design-agent-bubble.user {
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
  margin-left: 1rem;
}

.design-agent-error {
  color: #ff6b00;
  margin: 0;
  font-size: 0.85rem;
}

.design-agent-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.design-agent-card {
  border-radius: 0px !important;
  padding: 1.25rem;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
}

.design-agent-card-label {
  margin: 0 0 0.5rem;
  color: #999999;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.design-agent-card-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
  color: #000000;
}

.design-agent-card ul,
.design-agent-footer ul {
  margin: 0;
  padding-left: 1rem;
  color: #666666;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.design-agent-patterns {
  display: grid;
  gap: 0.75rem;
}

.design-agent-patterns strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.design-agent-patterns p {
  margin: 0;
  color: #666666;
  font-size: 0.85rem;
}

.design-agent-footer {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cta-panel {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 12;
  max-width: 22rem;
  padding: 1.5rem;
  border-radius: 0px !important;
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  backdrop-filter: none !important;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: auto;
}

.cta-panel.hidden {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

.cta-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
}

.cta-panel p {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: #666666;
  line-height: 1.5;
}

.cta-panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-caption {
  position: fixed;
  right: clamp(2rem, 4vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: 18rem;
  text-align: right;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.section-caption.visible {
  opacity: 1;
}

.section-caption h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  color: #000000;
}

.section-caption p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

.case-grid {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 6.5rem 2.5rem 2rem;
  align-content: center;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.case-grid.visible {
  opacity: 1;
  pointer-events: auto;
}

.case-card {
  aspect-ratio: 4/3;
  border-radius: 0px !important;
  background: #f7f7f7;
  border: 1px solid #e5e5e5 !important;
  backdrop-filter: none !important;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.case-card:hover {
  border-color: #000000 !important;
  transform: translateY(-2px);
}

.case-card span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666666;
  font-weight: 700;
}

.case-card h4 {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
}

.footer-orbit {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.footer-orbit.visible {
  opacity: 1;
  pointer-events: auto;
}

.footer-orbit a {
  color: #0066ff !important;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.8rem;
}

.footer-orbit a:hover {
  color: #000000 !important;
}

.reduced-fallback {
  min-height: 100vh;
  padding: 5rem 1.5rem 3rem;
  max-width: 48rem;
  margin: 0 auto;
}

.reduced-fallback h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
}

.reduced-fallback section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.reduced-fallback h2 {
  font-size: 1.125rem;
  color: #0066ff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #000000;
  color: #ffffff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.seo-snapshot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
