/* ==========================================================================
   DEVANTIX INVESTOR RELATIONS & CORPORATE PRESENTATION PORTAL
   Design System: Industrial Deep-Tech Enterprise (Dark Palette)
   ========================================================================== */

:root {
  --bg-dark: #040c18;
  --bg-surface: #071527;
  --bg-card: rgba(12, 28, 48, 0.75);
  --bg-card-hover: rgba(16, 36, 62, 0.9);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --cyan: #0fd2e7;
  --cyan-dim: #00a8c6;
  --cyan-glow: rgba(15, 210, 231, 0.25);
  --cyan-border: rgba(15, 210, 231, 0.3);
  
  --orange: #e77932;
  --orange-glow: rgba(231, 121, 50, 0.25);
  --orange-border: rgba(231, 121, 50, 0.4);
  
  --blue: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.25);
  
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --max-width: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at 50% 0%, #0d2745 0%, #061424 40%, #030811 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Grids & Ambient Lights */
.ambient-grid {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(rgba(15, 210, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 210, 231, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-top {
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(circle, rgba(15, 210, 231, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(4, 12, 24, 0.85);
  border-bottom: 1px solid rgba(15, 210, 231, 0.15);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
  background: rgba(15, 210, 231, 0.1);
  border: 1px solid var(--cyan-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector */
.lang-toggle {
  display: inline-flex;
  background: rgba(12, 28, 48, 0.8);
  border: 1px solid rgba(15, 210, 231, 0.25);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lang-btn.active {
  background: var(--cyan);
  color: #040c18;
  box-shadow: 0 0 12px rgba(15, 210, 231, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dim) 100%);
  color: #040c18;
  box-shadow: 0 4px 20px rgba(15, 210, 231, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15, 210, 231, 0.4);
}

.btn-outline {
  background: rgba(15, 210, 231, 0.08);
  border: 1px solid var(--cyan-border);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(15, 210, 231, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, #c45514 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(231, 121, 50, 0.25);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(231, 121, 50, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero Section */
.hero-section {
  padding: 72px 0 56px 0;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 210, 231, 0.1);
  border: 1px solid var(--cyan-border);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  max-width: 1080px;
  margin: 0 auto 20px auto;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--cyan) 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 880px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 210, 231, 0.18);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-border);
}

.hero-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   INTERACTIVE 16:9 PITCH DECK VIEWER
   ========================================================================== */
.viewer-section {
  padding: 40px 0 80px 0;
}

.viewer-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.viewer-header-left h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewer-header-left p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.viewer-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Viewer Frame */
.deck-viewer-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 85% 15%, #0c233c 0%, #061323 45%, #030811 100%);
  border: 1px solid rgba(15, 210, 231, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(15, 210, 231, 0.08);
}

.deck-viewer-container:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}

.deck-viewer-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}

/* Slide Viewport & Stage */
.slide-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  padding: 4% 5% 3.5% 5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 10;
}

/* Viewer Overlay Navigation Controls */
.viewer-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(7, 21, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 210, 231, 0.2);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.viewer-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 28, 48, 0.8);
  border: 1px solid rgba(15, 210, 231, 0.25);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.viewer-ctrl-btn:hover:not(:disabled) {
  background: rgba(15, 210, 231, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.viewer-ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.viewer-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 1px;
}

.viewer-counter span {
  color: var(--cyan);
}

/* Dots bar */
.slide-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s var(--ease);
}

.slide-dot:hover {
  background: rgba(15, 210, 231, 0.6);
}

.slide-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(15, 210, 231, 0.5);
}

/* Responsive Slide Content for Web Viewer */
.web-slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2%;
}

.web-slide-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  background: rgba(15, 210, 231, 0.1);
  border: 1px solid var(--cyan-border);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.web-slide-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  color: var(--text-dim);
}

.web-slide-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.6%;
}

.web-slide-subtitle {
  font-size: clamp(12px, 1.15vw, 16px);
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 2%;
}

.web-slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.web-slide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(9px, 0.9vw, 12px);
  color: var(--text-dim);
}

.web-confidential {
  color: var(--orange);
  font-weight: 600;
}

/* Sections on Page */
.section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px auto;
}

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pillar Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 210, 231, 0.18);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(15, 210, 231, 0.1);
  border: 1px solid var(--cyan-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 26px;
  margin-bottom: 20px;
}

.pillar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 210, 231, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.contact-email-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  word-break: break-all;
}

.contact-email-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .viewer-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .viewer-controls-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .slide-dots {
    display: none;
  }
}
