/* ==========================================================================
   POKRENI.APP - Testni & Staging Server
   Innova SOFTWARE d.o.o., Varaždin
   Modern, Ultra-Fast, Responsive Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Palette from Logos */
  --brand-blue: #0077FE;
  --brand-cyan: #00d2ff;
  --brand-gold: #f5a623;
  --brand-gold-glow: rgba(245, 166, 35, 0.4);
  --brand-blue-glow: rgba(0, 119, 254, 0.45);
  --brand-cyan-glow: rgba(0, 210, 255, 0.35);

  /* Backgrounds */
  --bg-space: #030712;
  --bg-deep: #060e1d;
  --bg-surface: rgba(12, 24, 46, 0.65);
  --bg-surface-hover: rgba(18, 36, 68, 0.85);
  --bg-card: rgba(8, 17, 34, 0.72);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-hover: rgba(0, 210, 255, 0.35);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Status Colors */
  --status-active: #10b981;
  --status-active-glow: rgba(16, 185, 129, 0.45);
  --status-warning: #f59e0b;
  --status-ai: #a855f7;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hud: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(0, 119, 254, 0.2);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-space);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere Layers */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.ambient-orb.orb-blue {
  width: 550px;
  height: 550px;
  top: -120px;
  left: 10%;
  background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
}

.ambient-orb.orb-gold {
  width: 480px;
  height: 480px;
  top: 35%;
  right: -80px;
  background: radial-gradient(circle, var(--brand-gold) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -5s;
  opacity: 0.25;
}

.ambient-orb.orb-cyan {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: 25%;
  background: radial-gradient(circle, var(--brand-cyan) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -10s;
  opacity: 0.28;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  z-index: 0;
  pointer-events: none;
}

/* Page Layout */
.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header & Status Bar */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-emblem-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
  transition: transform var(--transition-smooth);
}

.header-brand:hover .brand-emblem {
  transform: scale(1.08) rotate(3deg);
}

.brand-emblem-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 166, 35, 0.4);
  animation: ringRotate 16s linear infinite;
  pointer-events: none;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-title .highlight {
  color: var(--brand-cyan);
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Header Telemetry Pills */
.header-telemetry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all var(--transition-fast);
}

.telemetry-pill:hover {
  border-color: rgba(0, 210, 255, 0.4);
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-active);
  box-shadow: 0 0 10px var(--status-active-glow);
  animation: beaconPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.telemetry-pill strong {
  color: var(--status-active);
  font-weight: 600;
}

/* Main Content Area */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 3.5rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero-stage {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Hero Badge */
.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(0, 119, 254, 0.15), rgba(245, 166, 35, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2e8f0;
  box-shadow: 0 0 20px rgba(0, 119, 254, 0.15);
}

.badge-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
}

/* Company Primary Logo Box with 3D Backlight */
.logo-showcase {
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem;
}

.logo-glow-layer {
  position: absolute;
  inset: -15%;
  background: radial-gradient(ellipse at center, rgba(0, 119, 254, 0.35) 0%, rgba(245, 166, 35, 0.22) 50%, transparent 75%);
  filter: blur(28px);
  opacity: 0.85;
  animation: logoBreath 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.innova-main-logo {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 85vw;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.innova-main-logo:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 20px 45px rgba(0, 119, 254, 0.4));
}

/* Main Domain Heading */
.domain-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.domain-title .title-pokreni {
  background: linear-gradient(135deg, #ffffff 15%, #dbeafe 65%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.domain-title .title-app {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 60%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Lead Subtitle */
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.75rem;
  font-weight: 400;
}

.hero-lead strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-lead .location-tag {
  color: var(--brand-gold);
  font-weight: 600;
}

/* 5 Testing Domains Section */
.domains-section {
  width: 100%;
  margin-bottom: 3.5rem;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-label-line {
  height: 1px;
  flex: 1;
  max-width: 140px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.section-label-text {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  font-weight: 600;
}

/* 5 Cards Grid */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 1200px) {
  .domains-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Modern Domain Card */
.domain-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 1.6rem 1.3rem;
  text-align: left;
  transition: all var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.domain-card:hover {
  transform: translateY(-7px);
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(0, 119, 254, 0.25);
  background: var(--bg-surface-hover);
}

.domain-card:hover::before {
  opacity: 1;
}

/* Domain Accent Colors per Category */
.domain-card[data-domain="cloud"]:hover {
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(0, 210, 255, 0.35);
}

.domain-card[data-domain="web-apps"]:hover {
  border-color: rgba(0, 119, 254, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(0, 119, 254, 0.35);
}

.domain-card[data-domain="web-sites"]:hover {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(245, 166, 35, 0.35);
}

.domain-card[data-domain="iot"]:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(16, 185, 129, 0.35);
}

.domain-card[data-domain="ai"]:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(168, 85, 247, 0.35);
}

/* Card Header: Icon & Status */
.card-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.domain-card:hover .card-icon-wrap {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.08);
}

.card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

/* Specific icon colors */
.domain-card[data-domain="cloud"] .card-icon-wrap { color: var(--brand-cyan); }
.domain-card[data-domain="web-apps"] .card-icon-wrap { color: #60a5fa; }
.domain-card[data-domain="web-sites"] .card-icon-wrap { color: var(--brand-gold); }
.domain-card[data-domain="iot"] .card-icon-wrap { color: #34d399; }
.domain-card[data-domain="ai"] .card-icon-wrap { color: #c084fc; }

.card-status-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--status-active);
}

/* Card Body */
.card-content {
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Card Footer Tech Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  color: #cbd5e1;
}

/* HUD System Diagnostics Bar */
.hud-diagnostics {
  width: 100%;
  max-width: 960px;
  background: rgba(5, 11, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  box-shadow: var(--shadow-hud);
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
  position: relative;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.hud-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Centrirana gornja linija s naglaskom boje */
.hud-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.hud-item.accent-cyan::before { 
  background: var(--brand-cyan); 
  box-shadow: 0 0 10px var(--brand-cyan); 
}
.hud-item.accent-gold::before { 
  background: var(--brand-gold); 
  box-shadow: 0 0 10px var(--brand-gold); 
}
.hud-item.accent-green::before { 
  background: var(--status-active); 
  box-shadow: 0 0 10px var(--status-active-glow); 
}
.hud-item.accent-blue::before { 
  background: var(--brand-blue); 
  box-shadow: 0 0 10px var(--brand-blue); 
}

.hud-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-align: center;
}

.hud-value {
  font-size: 0.94rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  width: 100%;
}

.hud-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.1rem;
}

.location-loading {
  font-size: 0.8rem;
  color: var(--brand-gold);
  animation: beaconPulse 1.5s infinite;
}

.location-resolved {
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.hud-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-active);
  animation: beaconPulse 1.8s infinite;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-badge {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
}

/* Keyframe Animations */
@keyframes beaconPulse {
  0% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.2); opacity: 1; filter: brightness(1.2); }
  100% { transform: scale(0.95); opacity: 0.75; }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logoBreath {
  0%, 100% { transform: scale(0.96); opacity: 0.75; }
  50% { transform: scale(1.05); opacity: 0.95; }
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .header-telemetry {
    flex-wrap: wrap;
    justify-content: center;
  }

  .domains-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 640px) {
  .top-header {
    padding: 1rem;
  }

  .main-container {
    padding: 1rem 1rem 2.5rem;
  }

  .innova-main-logo {
    max-width: 290px;
  }

  .domain-title {
    font-size: 2.5rem;
  }

  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .domains-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hud-diagnostics {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
    gap: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
