/* ============================================
   DONA — Scroll-Driven Product Website
   ============================================ */

:root {
  --bg-dark: #050505;
  --bg-deep: #0a0a0f;
  --bg-gold: #1a1408;
  --bg-blue: #060a14;
  --text-primary: #f0ece4;
  --text-muted: #8a857a;
  --text-dim: #4a4640;
  --accent-gold: #d4a034;
  --accent-amber: #e8a020;
  --accent-blue: #4a9eff;
  --accent-glow: #ffc94d;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ============================================
   LOADER
   ============================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--accent-gold);
  line-height: 1;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.loader-bar-track {
  width: 120px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  border-radius: 1px;
  transition: width 0.15s ease;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 10px rgba(212, 160, 52, 0); }
  50% { opacity: 1; text-shadow: 0 0 20px rgba(212, 160, 52, 0.4); }
}

.loader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================
   CANVAS
   ============================================ */
#video-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  object-fit: cover;
  will-change: contents;
  image-rendering: auto;
}

/* ============================================
   MARQUEE — scrolling background text
   ============================================ */
.marquee-track {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  z-index: 1;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.04;
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 400;
  color: var(--text-primary);
  padding: 0 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: indicator-fade-in 0.8s ease 1.5s forwards;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-indicator.hidden {
  opacity: 0 !important;
}

.scroll-indicator-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
}

.scroll-indicator-arrow {
  color: var(--accent-gold);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.7));
  animation: indicator-bounce 2s ease-in-out infinite;
}

@keyframes indicator-fade-in {
  to { opacity: 1; }
}

@keyframes indicator-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   SCROLL CONTAINER
   ============================================ */
#scroll-container {
  position: relative;
  z-index: 2;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 6vw;
}

.section-spacer {
  min-height: 80vh;
}

.section-inner {
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.section-inner.align-left {
  max-width: 560px;
  margin-right: auto;
  margin-left: 0;
}

.section-inner.align-right {
  max-width: 560px;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

/* ============================================
   HERO
   ============================================ */
.section-hero {
  min-height: 120vh;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.92;
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero-title .line {
  display: block;
  opacity: 0;
}

.hero-title .line-1 {
  font-size: clamp(5rem, 14vw, 11rem);
  color: var(--accent-gold);
  font-style: italic;
}

.hero-title .line-2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--text-primary);
  margin-top: 0.3em;
  font-style: italic;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.7;
  opacity: 0;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  opacity: 0;
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 460px;
  opacity: 0;
}

.align-right .section-body {
  margin-left: auto;
}

/* ============================================
   PROBLEM (kontekst)
   ============================================ */
.section-problem {
  min-height: 85vh;
  padding: 6rem 6vw;
}

.section-problem::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(5,5,5,0.82);
}

.problem-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.problem-cols {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.problem-col {
  flex: 1;
  opacity: 0;
}

.problem-text {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.3vw, 1.02rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.problem-punchline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--accent-gold);
  text-align: center;
  opacity: 0;
}

/* ============================================
   INTELLIGENCE
   ============================================ */
.section-intelligence {
  min-height: 110vh;
}

/* ============================================
   STATS
   ============================================ */
.section-stats {
  min-height: 45vh;
  padding: 5rem 6vw;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  opacity: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  color: #ffffff;
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #ffffff;
  margin-left: 0.05em;
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* ============================================
   WORKFLOW (Kako deluje)
   ============================================ */
.section-workflow {
  min-height: 80vh;
  padding: 6rem 6vw;
}

.section-workflow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(5,5,5,0.8);
}

.workflow-heading {
  text-align: center;
  margin-bottom: 1rem;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 3rem;
}

.workflow-step {
  flex: 0 1 280px;
  text-align: center;
  opacity: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.workflow-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.workflow-step p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.workflow-line {
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin-top: 22px;
  opacity: 0;
}

/* ============================================
   USE CASE (Primer iz prakse)
   ============================================ */
.section-usecase {
  min-height: 90vh;
  padding: 6rem 6vw;
}

.section-usecase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(5,5,5,0.82);
}

.usecase-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.usecase-card {
  max-width: 700px;
  margin: 0 auto;
}

.usecase-scenario {
  margin-bottom: 2rem;
  opacity: 0;
}

.usecase-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.7rem;
}

.usecase-scenario p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
}

.usecase-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.usecase-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
}

.usecase-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  margin-top: 0.45rem;
}

.usecase-step p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

.usecase-step p strong {
  font-weight: 500;
  color: var(--text-primary);
}

.usecase-result {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--accent-gold);
  text-align: center;
  opacity: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 160, 52, 0.2);
}

/* ============================================
   FEATURES
   ============================================ */
.section-features {
  min-height: 100vh;
  padding: 8rem 6vw;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.features-heading {
  text-align: center;
  margin-bottom: 0.3rem;
}

.features-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  margin-top: 3rem;
}

.feature {
  opacity: 0;
  padding: 1.5rem 1.2rem;
  border-top: 1px solid rgba(212, 160, 52, 0.15);
  background: rgba(10, 10, 15, 0.5);
  border-radius: 6px;
}

.feature-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.feature:hover .feature-img {
  opacity: 1;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature p {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}
.feature-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-gold);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(212, 160, 52, 0.25);
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-link:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 160, 52, 0.08);
}

.usecase-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.usecase-more:hover { opacity: 1; }

/* ============================================
   CTA
   ============================================ */
.section-cta {
  min-height: 100vh;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 2rem;
  opacity: 0;
}

.cta-sub {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bg-dark);
  background: var(--accent-gold);
  padding: 0.9rem 2.4rem;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 1.8rem;
  opacity: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.cta-badge {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(212, 160, 52, 0.3);
  border-radius: 100px;
  opacity: 0;
}

.badge-text {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.cta-secondary {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0;
}
.cta-secondary:hover {
  color: var(--accent-gold);
}

/* ============================================
   TRUST STRIP
   ============================================ */
.section-trust {
  min-height: auto;
  padding: 4rem 6vw;
}

.section-trust::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(5,5,5,0.85);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

.trust-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.section-footer {
  min-height: 30vh;
  text-align: center;
  padding: 3rem 6vw;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--accent-gold);
  line-height: 1;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-contact {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.footer-contact:hover {
  color: var(--accent-glow);
}

/* ============================================
   GRADIENT OVERLAYS
   ============================================ */
.section-hero::before,
.section-hardware::before,
.section-intelligence::before,
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-hero::before {
  background: linear-gradient(
    180deg,
    rgba(5,5,5,0) 0%,
    rgba(5,5,5,0.35) 50%,
    rgba(5,5,5,0.65) 100%
  );
}

.section-hardware::before {
  background: linear-gradient(
    90deg,
    rgba(5,5,5,0.85) 0%,
    rgba(5,5,5,0.4) 50%,
    rgba(5,5,5,0) 100%
  );
}

.section-intelligence::before {
  background: linear-gradient(
    270deg,
    rgba(6,10,20,0.85) 0%,
    rgba(6,10,20,0.4) 50%,
    rgba(6,10,20,0) 100%
  );
}

.section-cta::before {
  background: radial-gradient(
    ellipse at center,
    rgba(5,5,5,0.7) 0%,
    rgba(5,5,5,0.45) 60%,
    rgba(5,5,5,0) 100%
  );
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 3rem 5vw;
  }

  .section-inner.align-left,
  .section-inner.align-right {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  .align-right .section-body {
    margin-left: 0;
  }

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

  .stats-row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .workflow-steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .workflow-line {
    width: 1px;
    height: 40px;
    flex: 0 0 40px;
    background: linear-gradient(180deg, transparent, var(--accent-gold), transparent);
    margin-top: 0;
  }

  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .problem-cols {
    flex-direction: column;
    gap: 1.5rem;
  }

  .usecase-steps {
    padding-left: 0;
  }

  .cta-button {
    padding: 0.8rem 2rem;
  }
}
