/* 
   REIMAGINED: STRUCTURAL KINETICISM 
   Design System for Capzer Peptides v2
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Public+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --color-primary: #001233;
  --color-accent: #00ffcc;
  --color-surface: #000a1a;
  --color-surface-container: #001233;
  --color-on-surface: #f1f3f5;
  --color-on-surface-variant: #a3b1c6;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-blur: blur(30px);
  
  --font-display: 'Playfair Display', serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --section-height: 100vh;
}

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

body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Perspective Container for 3D Effects */
.perspective-container {
    perspective: 2000px;
    height: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  height: 100%;
}

/* --- Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(0, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em; color: #fff; }
.logo span { color: var(--color-accent); margin-left: 4px; font-weight: 400; font-size: 0.8em; }

.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { text-decoration: none; color: #fff; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--color-accent); }

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-surface) 85%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-on-surface-variant);
  max-width: 500px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Kinetic Glass Panel */
.kinetic-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  padding: 3rem;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.kinetic-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-row:last-child { border-bottom: none; }

.data-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-accent); letter-spacing: 0.1em; }
.data-value { font-family: var(--font-body); font-size: 1.2rem; color: #fff; font-weight: 500; }

/* --- Scroll-Managed Sections (Stacking) --- */
.section-monolith {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
  overflow: hidden;
  z-index: 2;
}

.monolith-content {
  width: 100%;
}

.grid-monolith {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Bento Grid Services */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 160px);
  gap: 1.5rem;
}

.bento-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-item::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--color-accent); transform: scaleY(0); transition: transform 0.4s; transform-origin: top;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 204, 0.3);
}

.bento-item:hover::after { transform: scaleY(1); }

.bento-item.large { grid-row: span 2; padding: 2.5rem; }

.bento-item h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.bento-item p { color: var(--color-on-surface-variant); font-size: 0.85rem; line-height: 1.5; }

/* --- Kinetic Typography --- */
.outline-text {
    font-family: var(--font-display);
    font-size: 12vw;
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(0, 255, 204, 0.05);
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50% !important;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 50% !important;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* --- Responsive Helpers --- */
@media (max-width: 1024px) {
    .hero-content, .grid-monolith { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .bento-grid { height: auto; grid-template-rows: auto; }
    .bento-item.large { grid-row: auto; }
}
