/* ==========================================================================
   Design System & Base Tokens
   ========================================================================== */
:root {
  --color-canvas: #F8F4E9;
  --color-ink: #151515;
  --color-ink-muted: #666666;
  --color-ink-faint: #999999;
  --color-accent: #2263EB;
  --color-accent-soft: rgba(34, 99, 235, 0.08);
  --color-card-bg: #FFFFFF;
  --color-border: rgba(21, 21, 21, 0.08);
  --color-border-hover: rgba(34, 99, 235, 0.3);
  
  --font-geist: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-geist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main Layout */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
}

/* ==========================================================================
   Image Generation / Website Development Component
   ========================================================================== */
.igWrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Canvas Card */
.igCanvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 4px 24px -2px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.igCanvas:hover {
  border-color: var(--color-border-hover);
  box-shadow: 
    0 12px 36px -4px rgba(34, 99, 235, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Canvas Dot Grid Background Pattern */
.igDotsPattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(21, 21, 21, 0.12) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: center;
  opacity: 0.85;
}

/* Radial Glow Center Effect */
.igGlow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 99, 235, 0.12) 0%, rgba(34, 99, 235, 0) 70%);
  animation: pulseGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Animated Dot Matrix Grid in Center */
.igCenterMatrix {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  padding: 8px;
}

.igDot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-ink);
  opacity: 0.12;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Concentric Organic Radial Pulsing Grid Dots */
.igDot:nth-child(25) {
  opacity: 0.85;
  animation: dotPulse 2.4s ease-in-out infinite alternate;
}

.igDot:nth-child(19), .igDot:nth-child(31), .igDot:nth-child(27), .igDot:nth-child(23) {
  animation: dotPulse 2.4s ease-in-out infinite alternate;
  animation-delay: 0.4s;
  opacity: 0.55;
}

.igDot:nth-child(18), .igDot:nth-child(32), .igDot:nth-child(20), .igDot:nth-child(30),
.igDot:nth-child(11), .igDot:nth-child(17), .igDot:nth-child(33), .igDot:nth-child(39) {
  animation: dotPulse 2.4s ease-in-out infinite alternate;
  animation-delay: 0.8s;
  opacity: 0.3;
}

@keyframes dotPulse {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.3); }
}

/* Resolution Badge Top Right */
.igRes {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #737373;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  user-select: none;
}

/* Component Text Below Canvas */
.igMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 2px;
}

.igLabel {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--color-ink-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.igLabel strong {
  color: var(--color-ink);
  font-weight: 600;
}

.igPrompt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Designer Note Box */
.designerNoteBox {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--color-border-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

.designerNoteIcon {
  color: var(--color-accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   Global Navbar & Footer Shell Styles
   ========================================================================== */
site-navbar {
  display: block;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 244, 233, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbarInner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbarInner.navbarCentered {
  justify-content: center;
}

.navBrand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navBrandBadge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 4px;
  border: 1px solid rgba(34, 99, 235, 0.15);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navLink {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 450;
  transition: color 0.15s ease;
}

.navLink:hover {
  color: var(--color-ink);
}

.navLink.active {
  color: var(--color-ink);
  font-weight: 600;
}

/* Global Footer */
site-footer {
  display: block;
  width: 100%;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-canvas);
  padding: 1.75rem 0;
  margin-top: auto;
}

.footerInner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .footerInner {
    flex-direction: row;
  }
}

.footerCopy {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
}

.footerMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-ink-faint);
  font-family: var(--font-mono);
}
