/* luminary.dev - Design Language Stylesheet */
/* Colors: #0a0a0e, #161620, #3a3a4a, #6b6580, #a0998e, #8a3a2e, #c9a84c, #e8e0d0 */
/* Fonts: Playfair Display (display), Space Mono (body/code), Inter (UI) */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #0a0a0e;
  color: #e8e0d0;
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0e;
}

.hero-darkness {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, transparent 0%, #0a0a0e 70%);
  z-index: 3;
  pointer-events: none;
}

.lighthouse-container {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lighthouse-canvas {
  width: 128px;
  height: 256px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.beam-container {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}

.beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(201, 168, 76, 0.15) 5deg,
    rgba(201, 168, 76, 0.4) 10deg,
    rgba(201, 168, 76, 0.15) 15deg,
    transparent 20deg,
    transparent 360deg
  );
  border-radius: 50%;
  animation: beamRotate 12s linear infinite;
  filter: blur(8px);
}

@keyframes beamRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-text {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: -15vh;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(48px, 10vw, 96px);
  color: #e8e0d0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.3);
}

.hero-dot {
  color: #c9a84c;
}

.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(12px, 1.5vw, 16px);
  color: #a0998e;
  margin-top: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #c9a84c, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
}

.section-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
}

.glow-amber {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
}

.glow-red {
  background: radial-gradient(circle, rgba(138, 58, 46, 0.1) 0%, transparent 70%);
}

.glow-purple {
  background: radial-gradient(circle, rgba(107, 101, 128, 0.1) 0%, transparent 70%);
}

.content-island {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(8px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.content-island.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6580;
  margin-bottom: 24px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  color: #e8e0d0;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.section-heading em {
  font-style: italic;
  color: #c9a84c;
}

.section-body {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  line-height: 1.75;
  color: #a0998e;
}

/* ===== CRAFT SECTION ===== */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .craft-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.craft-card {
  background: rgba(22, 22, 32, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 4px;
  padding: 32px 24px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.craft-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(22, 22, 32, 0.9);
}

.craft-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.pixel-icon {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.craft-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: #e8e0d0;
  margin-bottom: 12px;
}

.craft-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: #6b6580;
}

/* ===== CODE SECTION ===== */
.code-block {
  background: #161620;
  border: 1px solid #3a3a4a;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 40px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(58, 58, 74, 0.3);
  border-bottom: 1px solid #3a3a4a;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #8a3a2e; }
.dot-amber { background: #c9a84c; }
.dot-green { background: #6b6580; }

.code-filename {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #6b6580;
  margin-left: auto;
}

.code-content {
  padding: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #a0998e;
  overflow-x: auto;
}

.code-keyword { color: #8a3a2e; }
.code-var { color: #e8e0d0; }
.code-prop { color: #c9a84c; }
.code-string { color: #6b6580; }
.code-number { color: #c9a84c; }
.code-func { color: #e8e0d0; }
.code-param { color: #a0998e; }

/* ===== SIGNAL / METRICS ===== */
.signal-metrics {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

@media (max-width: 600px) {
  .signal-metrics {
    flex-direction: column;
    gap: 24px;
  }
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 48px;
  color: #c9a84c;
  line-height: 1;
}

.metric-unit {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  color: #c9a84c;
  opacity: 0.7;
}

.metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6b6580;
  margin-top: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== CLOSING SECTION ===== */
.closing-section {
  flex-direction: column;
  text-align: center;
  min-height: 80vh;
}

.closing-lighthouse {
  margin-bottom: 40px;
}

#closing-canvas {
  width: 64px;
  height: 128px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.6;
}

.closing-island {
  text-align: center;
}

.closing-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  color: #e8e0d0;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.closing-heading em {
  font-style: italic;
  color: #c9a84c;
}

.cta-button {
  position: relative;
  display: inline-block;
  padding: 16px 48px;
  background: transparent;
  border: 1px solid #c9a84c;
  color: #c9a84c;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s ease, background 0.4s ease;
}

.cta-button:hover {
  background: #c9a84c;
  color: #0a0a0e;
}

.cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: transparent;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
  pointer-events: none;
  transition: box-shadow 0.4s ease;
}

.cta-button:hover .cta-glow {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
}

/* ===== WATERCOLOR LIGHT EFFECTS ===== */
.manifesto-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  top: 20%;
  right: 10%;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.code-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(138, 58, 46, 0.06) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
