/* GALVANIQ GROUP - ENTERPRISE SOVEREIGN AI */
/* Silent, Composed, Authoritative */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --void: #0a0a0a;
  --surface: #121212;
  --surface2: #1a1a1a;
  --surface3: #242424;
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --accent: #4f46e5;
  --accent-light: #6366f1;
  
  --display: 'Syne', sans-serif;
  --serif: 'EB Garamond', serif;
  --mono: 'IBM Plex Mono', monospace;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text-secondary);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.3px;
}

/* TYPOGRAPHY SYSTEM */
h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h4 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 1rem;
}

.text-xl {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-lg {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-sm {
  font-size: 0.9rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* LAYOUT */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 1024px) {
  .wrap {
    padding: 0 36px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 24px;
  }
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 24px 0;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 48px;
  flex: 1;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .nav-inner {
    padding: 0 36px;
    gap: 32px;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 32px 36px;
    gap: 16px;
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--void);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content h1 {
  max-width: 900px;
  margin-bottom: 28px;
}

.hero-video-section {
  position: relative;
  z-index: 2;
  margin-top: 100px;
  padding-bottom: 100px;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-overlay:hover {
  background: rgba(0,0,0,0.6);
}

.play-btn {
  width: 100px;
  height: 100px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: var(--accent-light);
  transform: scale(1.1);
}

.play-btn svg {
  width: 40px;
  height: 40px;
  margin-left: 6px;
  fill: var(--void);
}

/* METRICS */
.metrics-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.metric-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
}

/* SECTIONS */
.sec {
  padding: 120px 0;
}

.sec:nth-child(even) {
  background: var(--surface);
}

.section-header {
  margin-bottom: 80px;
}

.section-header.centered {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 80px;
}

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow.center {
  display: inline-block;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-2.reverse {
  direction: rtl;
}

.grid-2.reverse > * {
  direction: ltr;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .metrics-grid {
    gap: 60px;
  }
}

/* CARDS & BLOCKS */
.arch-block {
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.arch-feature {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.arch-feature:last-child {
  border-bottom: none;
}

.arch-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.arch-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}

.arch-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA */
.cta-section {
  padding: 140px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.cta-section .text-lg {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* FOOTER */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  margin-bottom: 60px;
}

.footer-brand h4 {
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 36px;
  }
  
  .footer-bottom {
    padding: 0 36px;
    padding-top: 32px;
  }
}

/* PROGRESS BAR */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  z-index: 9999;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: reveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UTILITIES */
.text-accent {
  color: var(--accent);
}

.subtle-border {
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .sec {
    padding: 80px 0;
  }
  
  .cta-section {
    padding: 100px 0;
  }
}
