@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=VT323&display=swap');

:root {
  --bg: #FAFAFA;
  --fg: #050505;
  --gray: #888888;
  --border: 1px solid var(--fg);
  --border-light: 1px solid rgba(5, 5, 5, 0.1);
  --font-classic: 'Cormorant Garamond', serif;
  --font-tech: 'Space Mono', monospace;
  --font-pixel: 'VT323', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-classic);
  line-height: 1.6;
  overflow-x: hidden;
  /* Architectural drafting cursor */
  cursor: crosshair;
  /* Faint pixel grid background pattern */
  background-image: 
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 40px 40px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* Typography */
h1, h2, h3, h4 { font-weight: 400; }
.pixel-text { font-family: var(--font-pixel); text-transform: uppercase; letter-spacing: 2px; }
.tech-text { font-family: var(--font-tech); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }

/* Interactive Hover Glitch */
.glitch-hover {
  position: relative;
  display: inline-block;
}
.glitch-hover::before, .glitch-hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
}
.glitch-hover:hover::before {
  left: 2px;
  text-shadow: -1px 0 red;
  animation: glitch-anim-1 0.2s linear infinite;
  opacity: 1;
}
.glitch-hover:hover::after {
  left: -2px;
  text-shadow: 1px 0 blue;
  animation: glitch-anim-2 0.3s linear infinite;
  opacity: 1;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 50% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(90% 0 5% 0); }
  100% { clip-path: inset(40% 0 30% 0); }
}


/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border-bottom: var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 2.2rem; font-style: italic; }
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a { color: var(--fg); text-decoration: none; font-family: var(--font-tech); font-size: 0.8rem; text-transform: uppercase; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 0.5; }

/* Marquee */
.marquee {
  width: 100%;
  border-bottom: var(--border);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  background: var(--fg);
  color: var(--bg);
}
.marquee-content {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  letter-spacing: 4px;
}
.marquee-content span {
  margin-right: 3rem;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-bottom: var(--border);
}

.hero-left {
  padding: 8rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: var(--border);
  position: relative;
}

.hero-left::after {
  content: '+';
  position: absolute;
  bottom: 2rem;
  left: 4rem;
  font-family: var(--font-tech);
  color: var(--gray);
}

.hero-left h1 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-left p {
  font-size: 1.2rem;
  max-width: 500px;
  color: var(--gray);
  margin-bottom: 3rem;
  font-family: var(--font-tech);
  border-left: 2px solid var(--fg);
  padding-left: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  padding: 1rem 2rem;
  width: max-content;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  transition: all 0.3s ease;
  font-family: var(--font-tech);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.btn-primary:hover {
  background: var(--fg);
  color: var(--bg);
}

.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg),
    var(--bg) 10px,
    #f2f2f2 10px,
    #f2f2f2 11px
  );
}

/* SVG Generative Art Placeholder */
.generative-svg {
  width: 90%;
  height: auto;
  stroke: var(--fg);
  stroke-width: 0.5;
  fill: none;
  animation: slowSpin 120s linear infinite;
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hud-element {
  position: absolute;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  color: var(--fg);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border: var(--border);
}
.hud-top-left { top: 1rem; left: 1rem; }
.hud-bottom-right { bottom: 1rem; right: 1rem; text-align: right; }

/* Sections */
.section {
  padding: 8rem 4rem;
  border-bottom: var(--border);
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 4rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--border);
  background: var(--bg);
}

.module-card {
  padding: 4rem 3rem;
  border-right: var(--border);
  transition: all 0.4s ease;
  position: relative;
}
.module-card:last-child { border-right: none; }
.module-card:hover { 
  background: var(--fg);
  color: var(--bg);
}
.module-card:hover .num { color: var(--bg); }
.module-card:hover p { color: #ccc; }

.module-card .num {
  font-family: var(--font-pixel);
  font-size: 3.5rem;
  margin-bottom: 2rem;
  display: block;
  color: var(--gray);
  transition: color 0.4s;
}

.module-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.module-card p {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.4s;
}

/* Data Stream Section */
.data-stream {
  display: flex;
  border: var(--border);
  margin-top: 4rem;
  background: var(--bg);
}
.data-left {
  flex: 1;
  padding: 4rem;
  border-right: var(--border);
}
.data-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.data-cell {
  padding: 2rem;
  border-right: var(--border);
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.data-cell:nth-child(2n) { border-right: none; }
.data-cell:nth-last-child(-n+2) { border-bottom: none; }
.data-cell svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

/* Manifesto */
.manifesto {
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Footer */
footer {
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  background: var(--bg);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: var(--border); padding: 4rem 2rem; }
  .hero-right { padding: 4rem; min-height: 50vh; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { border-right: none; border-bottom: var(--border); }
  .module-card:last-child { border-bottom: none; }
  .data-stream { flex-direction: column; }
  .data-left { border-right: none; border-bottom: var(--border); }
  footer { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}
