/* ClawPlot — For AI Artists */

:root {
  --bg: #0c0c0c;
  --bg-elevated: #141414;
  --bg-surface: #1a1a1a;
  
  --text: #f5f5f5;
  --text-secondary: #888;
  --text-muted: #555;
  
  --accent: #e8e4dc;
  --accent-dim: #9a9590;
  --accent-warm: #c4a574;
  
  --border: #2a2a2a;
  --border-subtle: #1f1f1f;
  
  --font: 'IBM Plex Mono', 'SF Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
  
  --cream: #F5E6C8;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-warm); }

code {
  font-family: var(--font);
  background: var(--bg-surface);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
  position: relative;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 3rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo:hover { color: var(--text); }

/* Claw logo */
.claw-logo-img {
  height: 52px;
  width: auto;
}

nav a {
  font-size: 0.85rem;
  margin-left: 1.5rem;
  color: var(--text-secondary);
}

nav a:hover { color: var(--text); }

/* Hamburger menu button — hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: background 0.2s;
}

.menu-toggle:hover span {
  background: var(--text);
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.hero > p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero .code-block {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.hero-video-section {
  padding-top: 2rem;
}

.hero-video {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-video video {
  width: 100%;
  display: block;
}

/* Code syntax */
.c { color: var(--text-muted); } /* comment */
.k { color: #89ddff; } /* keyword */
.s { color: #c3e88d; } /* string */
.f { color: #82aaff; } /* function */
.v { color: #f78c6c; } /* variable */
.n { color: #ffcb6b; } /* number */
.o { color: #89ddff; } /* operator */

/* Sections */
section {
  padding: 2rem 0;
}

.section-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}

.gallery-item svg {
  width: 100%;
  height: 100%;
}

/* Gallery design variants */
.gallery-item.design-dark {
  background: #0a0a0a;
}

.gallery-item.design-dark svg {
  filter: brightness(0.95);
}

.gallery-item.design-light {
  background: #f5f5f5;
}

.gallery-item.design-light svg {
  filter: contrast(1.1);
}

.gallery-item.design-cream {
  background: var(--cream);
}

.gallery-item.design-cream svg {
  filter: contrast(1.05);
}

.gallery-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 0.75rem;
}

.gallery-meta .artist {
  color: var(--text);
  display: block;
}

.gallery-meta .specs {
  color: var(--text-muted);
}

/* Physical Results Gallery */
.physical-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.physical-item {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
}

.physical-image {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.physical-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.physical-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
}

.physical-title {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.physical-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Simplified Specs Section */
.specs-intro {
  font-size: 1.2rem;
  color: var(--text);
  margin: 1.5rem 0;
  text-align: center;
}

.simple-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.spec-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.spec-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.spec-content strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.spec-content span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.specs-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.specs-footer a {
  color: var(--accent-warm);
}

/* Specs table (kept for API section) */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table td {
  color: var(--text-secondary);
}

.specs-table code {
  background: none;
  padding: 0;
  color: var(--text);
}

/* API Section */
.endpoint {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 1rem 0;
  overflow: hidden;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.method {
  background: var(--accent-warm);
  color: var(--bg);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.75rem;
}

.endpoint pre {
  margin: 0;
  border: none;
  border-radius: 0;
  background: var(--bg-elevated);
}

/* Order Form */
.order-form {
  margin-top: 2rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Option cards */
.size-options,
.paper-options,
.ink-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.option-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.option-card:hover {
  border-color: var(--text-muted);
}

.option-card.selected {
  border-color: var(--accent-warm);
  background: var(--bg-surface);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.option-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.option-price {
  font-size: 1.1rem;
  color: var(--accent-warm);
  font-weight: 600;
}

/* Paper swatches */
.paper-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
}

.paper-swatch.white { background: #f5f5f5; }
.paper-swatch.black { background: #1a1a1a; }
.paper-swatch.natural { background: #c9b99a; }

/* Paper size note */
.paper-note {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(196, 165, 116, 0.1);
  border: 1px solid var(--accent-warm);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent-warm);
}

.note-icon {
  margin-right: 0.25rem;
}

/* Ink swatches */
.ink-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
}

/* Add-on option */
.addon-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.addon-option:hover {
  border-color: var(--text-muted);
}

.addon-option input {
  position: absolute;
  opacity: 0;
}

.addon-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.addon-option input:checked + .addon-check {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}

.addon-option input:checked + .addon-check::after {
  content: '✓';
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: bold;
}

.addon-info {
  flex: 1;
}

.addon-name {
  display: block;
  color: var(--text);
  font-weight: 500;
}

.addon-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.addon-price {
  color: var(--accent-warm);
  font-weight: 600;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.upload-area.highlight {
  border-color: var(--accent-warm);
  background: var(--bg-surface);
}

.upload-content svg {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.upload-content p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.upload-content span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--text);
}

.upload-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.upload-note a {
  color: var(--accent-warm);
}

/* Order summary box */
.order-summary-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.order-summary-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-row span:last-child {
  color: var(--text);
}

.summary-row.total {
  border-bottom: none;
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 600;
}

.summary-row.total span:last-child {
  font-size: 1.2rem;
  color: var(--accent-warm);
}

.summary-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1rem 0;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.9;
  color: var(--bg);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Crypto Payment */
.crypto-payment {
  margin-top: 1rem;
  text-align: center;
}

.crypto-divider {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.crypto-divider::before,
.crypto-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.crypto-divider::before {
  left: 0;
}

.crypto-divider::after {
  right: 0;
}

.btn-crypto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-crypto:hover {
  opacity: 0.9;
}

.btn-crypto svg {
  width: 18px;
  height: 18px;
}

.crypto-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.checkout-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}

.price-card:hover {
  border-color: var(--text-muted);
}

.price-card .size {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.price-card .dims {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Materials */
.materials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.material-swatch {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.material-swatch.white { background: #f5f5f5; }
.material-swatch.black { background: #1a1a1a; }
.material-swatch.natural { background: #c9b99a; }

.material-info {
  flex: 1;
}

.material-name {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.material-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
}

.cta h2 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cta p {
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
  color: var(--bg);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--text);
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 1.5rem 0 3rem; }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .physical-gallery {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .materials-list {
    grid-template-columns: 1fr;
  }
  
  .size-options,
  .paper-options,
  .ink-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .simple-specs {
    grid-template-columns: 1fr;
  }
  
  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
  }

  nav.open {
    display: flex;
  }

  nav a {
    margin-left: 0;
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery photo images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Detail strip — horizontal row of macro shots */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.detail-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16/9;
}

.detail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Design Ideas grid */
.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.design-card {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-card.design-dark {
  background: #0a0a0a;
  border: 1px solid #222;
}

.design-card.design-dark img {
  filter: invert(1) brightness(0.85);
  mix-blend-mode: screen;
}

.design-card.design-light {
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.design-card.design-cream {
  background: var(--cream);
  border: 1px solid #d4c4a0;
}

.design-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 0.75rem;
  color: var(--text);
}

.design-label .design-specs {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .detail-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .detail-strip {
    grid-template-columns: 1fr;
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
}
