/* ============================================================
   SOLVYA — Dark Luxury Fintech
   Complete Design System
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --bg-1: #04080F;
  --bg-2: #070E1A;
  --bg-3: #0C1627;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);

  --gold: #F0B429;
  --gold-light: #FCD34D;
  --gold-glow: rgba(240, 180, 41, 0.25);

  --blue: #3B7BFF;
  --blue-light: #60A5FA;
  --blue-glow: rgba(59, 123, 255, 0.2);

  --teal: #00D4A7;
  --teal-glow: rgba(0, 212, 167, 0.15);

  --text-1: #F8FAFC;
  --text-2: #94A3B8;
  --text-3: #475569;

  --container: 1200px;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* === BASE RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

h4 {
  font-size: 1.0625rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

p {
  color: var(--text-2);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 2.5rem;
  }
}

.section {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }
}

/* === SECTION HEADERS === */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 180, 41, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(240, 180, 41, 0.2);
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, #F0B429 0%, #FCD34D 50%, #F0B429 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
}

/* === BUTTONS === */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 30px var(--gold-glow);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 0 50px rgba(240, 180, 41, 0.5);
  transform: translateY(-2px);
  color: #0a0a0a;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold.btn-xl {
  padding: 1.125rem 2.75rem;
  font-size: 1.0625rem;
  border-radius: 1rem;
}

.btn-gold.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 0.875rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost.btn-xl {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
  border-radius: 1rem;
}

.nav-btn {
  padding: 0.625rem 1.5rem !important;
  font-size: 0.875rem !important;
  border-radius: 0.75rem !important;
}

/* === GLASS CARD === */
.glass-card {
  background: rgba(12, 22, 39, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 32px 64px rgba(0, 0, 0, 0.4);
}

/* === 3D TILT CARD === */
.tilt-card {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* === COUNTER === */
.counter-num {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--bg-1);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.logo-dot {
  color: var(--gold);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-right {
    margin-left: 0;
  }
}

/* Language Switcher */
.lang-switcher {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  padding: 0.25rem;
}

.lang-switcher .lang {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.lang-switcher .lang:hover {
  color: var(--text-1);
}

.lang-switcher .lang.active {
  background: var(--bg-3);
  color: var(--gold);
}

@media (min-width: 768px) {
  .lang-switcher {
    display: flex;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 9999px;
  transition: all 0.3s;
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(4, 8, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.mobile-menu a:hover {
  color: var(--text-1);
}

.mobile-menu a.btn-gold {
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
  border-bottom: none;
  color: #0a0a0a;
  border-radius: 0.875rem;
}

.mobile-menu .mobile-langs {
  display: flex;
  gap: 1rem;
  padding: 1rem 0 0;
}

.mobile-menu .mobile-langs a {
  border: none;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-3);
}

.mobile-menu .mobile-langs a.active {
  color: var(--gold);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  background: var(--bg-1);
}

/* Animated Blobs */
.hero-blob {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero-blob-1 {
  background: radial-gradient(circle at 30% 40%, rgba(59, 123, 255, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(240, 180, 41, 0.10) 0%, transparent 60%);
  top: -200px;
  left: -200px;
  animation: blobMove1 14s ease-in-out infinite alternate;
}

.hero-blob-2 {
  background: radial-gradient(circle at 60% 40%, rgba(0, 212, 167, 0.10) 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(59, 123, 255, 0.08) 0%, transparent 60%);
  bottom: -300px;
  right: -200px;
  animation: blobMove2 18s ease-in-out infinite alternate;
}

@keyframes blobMove1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(60px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-40px, 60px) scale(0.95);
  }

  100% {
    transform: translate(40px, 20px) scale(1.05);
  }
}

@keyframes blobMove2 {
  0% {
    transform: translate(0, 0) scale(1.05);
  }

  33% {
    transform: translate(-50px, 30px) scale(0.95);
  }

  66% {
    transform: translate(30px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-20px, -20px) scale(1);
  }
}

/* Grid lines decoration */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

/* Hero 2-column layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

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

/* ─── Hero Visual (right column) ─────────────────────────── */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding so badges don't clip */
  padding: 3rem 1.5rem 3rem 3rem;
}

/* Main floating card — in normal flex flow, centered */
.hv-card {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  background: rgba(10, 20, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 60px rgba(59, 123, 255, 0.08);
  animation: heroFloat 6s ease-in-out infinite;
  z-index: 3;
  cursor: default;
  transition: box-shadow 0.3s;
  transform-style: preserve-3d;
}

.hv-card:hover {
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(59, 123, 255, 0.15);
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hv-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hv-logo {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--gold);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #0a0a0a;
  flex-shrink: 0;
}

.hv-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
}

.hv-card-sub {
  font-size: 0.75rem;
  color: var(--text-3);
}

.hv-pulse {
  margin-left: auto;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2s ease infinite;
}

.hv-amount-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.hv-amount-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #F0B429, #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

/* Progress bar */
.hv-progress-wrap {
  margin-bottom: 0.5rem;
}

.hv-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.hv-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 9999px;
  animation: progressFill 3s 0.5s ease-out forwards;
}

@keyframes progressFill {
  to {
    width: 87%;
  }
}

.hv-progress-label {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

/* Details row */
.hv-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hv-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hv-detail:last-child {
  border-bottom: none;
}

.hv-detail span {
  color: var(--text-3);
}

.hv-detail strong {
  color: var(--text-1);
  font-weight: 600;
}

/* Floating badges */
.hv-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(10, 20, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 4;
}

.hv-badge-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hv-badge strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-1);
}

.hv-badge span {
  font-size: 0.7rem;
  color: var(--text-3);
}

.hv-badge {
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hv-badge:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Badge 1 — top left */
.hv-badge-1 {
  top: 12%;
  left: 2%;
  right: auto;
  animation: badgeFloat1 5s ease-in-out infinite;
}

/* Badge 2 — bottom right */
.hv-badge-2 {
  bottom: 15%;
  right: 2%;
  animation: badgeFloat2 6s ease-in-out infinite;
}

/* Badge 3 — mid left */
.hv-badge-3 {
  top: 48%;
  left: -2%;
  animation: badgeFloat3 4.5s ease-in-out infinite;
}

@keyframes badgeFloat1 {

  0%,
  100% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(0deg);
  }
}

@keyframes badgeFloat2 {

  0%,
  100% {
    transform: translateY(0px) rotate(1deg);
  }

  50% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

@keyframes badgeFloat3 {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* Glow ring behind card */
.hv-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(59, 123, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-amount {
  display: block;
  background: linear-gradient(135deg, #F0B429, #FCD34D, #F0B429);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.stat-pill:hover {
  border-color: var(--border-hover);
}

.stat-pill .stat-num {
  font-weight: 700;
  color: var(--text-1);
  font-size: 0.9375rem;
}

.stat-pill .stat-label {
  color: var(--text-2);
}

.stat-pulse {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: pulseAnim 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulseAnim {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px var(--teal);
  }

  50% {
    opacity: 0.4;
    box-shadow: 0 0 4px var(--teal);
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-2);
  border-radius: 11px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 6px;
  background: var(--text-2);
  border-radius: 9999px;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ============================================================
   STATS TICKER
   ============================================================ */
.stats-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.25rem 0;
  background: var(--bg-1);
  width: 100%;
}

.stats-ticker::before,
.stats-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}

.stats-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1) 0%, transparent 100%);
}

.stats-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1) 0%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-family: 'Inter', sans-serif;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.ticker-item:hover {
  color: var(--gold);
  background: rgba(240, 180, 41, 0.08);
  border-color: rgba(240, 180, 41, 0.35);
  box-shadow: 0 0 30px rgba(240, 180, 41, 0.15);
  transform: translateY(-3px) scale(1.04);
}

.ticker-sep {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
  opacity: 0.5;
  font-size: 0;
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.calc-card {
  padding: 2.5rem;
}

@media (min-width: 640px) {
  .calc-card {
    padding: 3rem;
  }
}

.calc-note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: 1.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.calc-slider-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calc-label-row label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
}

.calc-badge {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.2);
  padding: 0.25rem 0.875rem;
  border-radius: 0.5rem;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
  min-width: 90px;
  text-align: right;
}

/* Range Slider */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px var(--gold-glow);
  transition: box-shadow 0.2s, transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.6);
  transform: scale(1.15);
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px var(--gold-glow);
}

.calc-range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
}

.calc-result-box {
  background: rgba(240, 180, 41, 0.06);
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.625rem;
  font-family: 'Inter', sans-serif;
}

.calc-result-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  transition: all 0.2s;
  font-variant-numeric: tabular-nums;
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   HOW IT WORKS — TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.timeline-item {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  position: relative;
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-num {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.timeline-item:hover .timeline-num {
  background: rgba(240, 180, 41, 0.1);
  border-color: rgba(240, 180, 41, 0.3);
  box-shadow: 0 0 30px rgba(240, 180, 41, 0.15);
}

.timeline-body {
  padding-top: 0.875rem;
}

.timeline-body h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.625rem;
  font-family: 'Inter', sans-serif;
}

.timeline-body p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bento-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.bento-card--large {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .bento-card--large {
    grid-column: span 2;
  }
}

.bento-icon {
  font-size: 2rem;
  margin-bottom: 1.125rem;
  line-height: 1;
}

.bento-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* ============================================================
   BENEFITS — MAGAZINE LAYOUT
   ============================================================ */
.benefits-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .benefits-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.benefit-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.2);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  transition: all 0.3s;
}

.benefit-item:hover .benefit-icon {
  background: rgba(240, 180, 41, 0.18);
  box-shadow: 0 0 20px rgba(240, 180, 41, 0.15);
}

.benefit-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.375rem;
  font-family: 'Inter', sans-serif;
}

.benefit-item p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.test-stars {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.test-quote {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.test-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.test-author strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
}

.test-author span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 1.5rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
  line-height: 1.5;
}

.faq-btn:hover {
  color: var(--gold);
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-3);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-body {
  max-height: 500px;
}

.faq-body p {
  padding-bottom: 1.75rem;
  color: var(--text-2);
  line-height: 1.8;
  font-size: 0.9375rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 180, 41, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ============================================================
   FOOTER (Institutional Redesign)
   ============================================================ */
.footer {
  background: #04080F;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
  padding: 5rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 2fr 3fr;
    gap: 6rem;
  }
}

.footer-brand .logo-text {
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 300px;
}

.footer-langs {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.footer-langs a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-langs a:hover,
.footer-langs a.active,
.footer-langs a[aria-current="page"] {
  color: var(--text-1);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-1);
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  list-style: none;
  padding: 0;
}

.footer ul a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color 0.2s;
  text-decoration: none;
}

.footer ul a:hover {
  color: var(--gold);
}

.footer-contact-info li {
  font-size: 0.875rem;
  color: var(--text-3);
}

.footer-bottom {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {

  .footer-bottom,
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.footer-bottom .legal-disclaimer {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  font-size: 0.65rem;
}

@media (min-width: 768px) {
  .footer-bottom .legal-disclaimer {
    max-width: 580px;
    text-align: right;
  }
}

/* ============================================================
   FORM PAGES (zahtjev)
   ============================================================ */
.form-page {
  min-height: 100vh;
  background: var(--bg-1);
  padding: 8rem 0 4rem;
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-card {
  padding: 2.5rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 3rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-1);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input::placeholder {
  color: var(--text-3);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

select.form-input option {
  background: var(--bg-2);
  color: var(--text-1);
}

.form-error-msg {
  display: none;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.375rem;
  font-family: 'Inter', sans-serif;
  animation: errorFadeIn 0.3s ease;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.form-error-msg.visible {
  display: block;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.form-check input[type=checkbox] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
  cursor: pointer;
}

.form-check label {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.form-check label a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-global-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: #fca5a5;
  margin-bottom: 1.5rem;
  display: none;
  font-family: 'Inter', sans-serif;
}

.form-global-success {
  background: rgba(0, 212, 167, 0.1);
  border: 1px solid rgba(0, 212, 167, 0.3);
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: #6ee7b7;
  margin-bottom: 1.5rem;
  display: none;
  font-family: 'Inter', sans-serif;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.confirm-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-1);
}

.confirm-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 3.5rem 3rem;
}

.confirm-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(0, 212, 167, 0.12);
  border: 1px solid rgba(0, 212, 167, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

.confirm-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.confirm-card p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  min-height: 100vh;
  background: var(--bg-1);
  padding: 8rem 0 6rem;
}

.legal-content,
.legal-header {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(240, 180, 41, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
}

.legal-content h1,
.legal-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.legal-date,
.legal-header p {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
}

/* Section cards — injected by JS */
.legal-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.legal-section:hover {
  border-color: rgba(240, 180, 41, 0.3);
}

.legal-content h2 {
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 1.25rem 0 0.5rem;
  font-family: 'Inter', sans-serif;
}

.legal-content p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content p:last-child,
.legal-content ul:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-content ul li {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 0.375rem;
  padding-left: 1.25rem;
  position: relative;
}

.legal-content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card,
.contact-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-info-card h3,
.contact-form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-1);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-info-item strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.contact-info-item span {
  font-size: 0.9rem;
  color: var(--text-2);
  display: block;
}

.contact-info-item a {
  color: var(--gold);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

.contact-form-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-card label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-1);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
  outline: none;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.12);
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: var(--text-3);
}

.contact-form-card .error-msg {
  font-size: 0.8rem;
  color: #ff6b6b;
  min-height: 1.1em;
  display: none;
}

.contact-form-card .error-msg.visible {
  display: block;
}

.contact-form-card .form-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #ff9090;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.contact-form-card .form-success {
  background: rgba(0, 212, 167, 0.1);
  border: 1px solid rgba(0, 212, 167, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #00D4A7;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.contact-form-card .form-secure-note {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 1.2rem;
  line-height: 1.5;
}

.contact-form-card .form-secure-note a {
  color: var(--gold);
  text-decoration: none;
}

.contact-form-card .form-secure-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
#kalkulator {
  background: var(--bg-1);
}

#namjena {
  background: var(--bg-1);
}

#kako-radi {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--gold-glow);
  }

  50% {
    box-shadow: 0 0 40px rgba(240, 180, 41, 0.45);
  }
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE FIXES & POLISHING
   ============================================================ */

/* Handle long titles and text wrapping globally */
h1,
h2,
h3,
h4,
.logo-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Prevent long buttons from overflowing on small screens */
@media (max-width: 479px) {

  .btn,
  .btn-gold,
  .btn-ghost,
  .btn-cta-dark {
    white-space: normal !important;
    text-align: center;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    height: auto !important;
    line-height: 1.4;
  }
}

/* Optimize card & header padding for mobile */
@media (max-width: 639px) {
  .legal-header {
    padding: 1.75rem 1.25rem !important;
    border-radius: 16px;
  }

  .legal-section,
  .contact-info-card,
  .contact-form-card,
  .calc-card {
    padding: 1.5rem 1.25rem !important;
  }

  .contact-grid {
    gap: 1.5rem;
  }
}

/* Extra small screen adjustments (iPhone SE, etc.) */
@media (max-width: 360px) {
  .container {
    padding: 0 1rem !important;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .footer-links-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .footer-top {
    padding: 3rem 0 !important;
  }
}

/* Fix for navbar items squeezing logo on mobile */
@media (max-width: 767px) {
  .nav-inner {
    gap: 1rem;
  }

  .nav-right {
    gap: 0.75rem;
  }
}

/* ============================================================
   MOBILE OVERRIDES — EXISTING
   ============================================================ */
@media (max-width: 639px) {
  .hero {
    padding: 7rem 0 5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
  }

  .stat-pill {
    width: 100%;
  }

  .timeline::before {
    left: 1.875rem;
  }

  .timeline-num {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1rem;
  }

  .timeline-item {
    gap: 1.5rem;
  }

  .calc-card {
    padding: 1.75rem;
  }

  .confirm-card {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 1023px) {
  .benefits-left .btn-gold {
    display: none;
  }
}

/* ============================================================
   MOBILE-FIRST — COMPREHENSIVE RESPONSIVE SYSTEM
   ============================================================ */

/* ─── Touch & performance optimizations ──────────────────── */
html {
  -webkit-tap-highlight-color: transparent;
}

button,
[role="button"],
a,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Minimum 44px touch targets for all interactive elements */
.btn-gold,
.btn-ghost,
.faq-btn,
.mobile-menu-btn,
.lang,
input[type="checkbox"] {
  min-height: 44px;
}

/* Larger thumb on touch for range sliders */
@media (hover: none) {
  input[type=range]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  input[type=range]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  /* Remove hover transforms on touch devices */
  .bento-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-track {
    animation: none !important;
    transform: none !important;
  }

  .hero-blob {
    animation: none !important;
  }
}

/* ─── Small phones (≤ 479px) ─────────────────────────────── */
@media (max-width: 479px) {

  /* Navbar: hide CTA button so hamburger has room */
  .nav-btn {
    display: none;
  }

  /* Hero */
  .hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
  }

  .hero-sub {
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-gold,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* Hero stats — 2-column grid instead of full-width stacked */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-top: 1.75rem;
  }

  .stat-pill {
    width: 100%;
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }

  /* Stats ticker */
  .ticker-item {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }

  /* Bento grid — single column */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--large {
    grid-column: span 1;
  }

  .bento-card {
    padding: 1.5rem;
  }

  /* Timeline */
  .timeline::before {
    left: 1.375rem;
  }

  .timeline-num {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.875rem;
  }

  .timeline-item {
    gap: 1rem;
    padding: 1.75rem 0;
  }

  .timeline-body h3 {
    font-size: 1rem;
  }

  .timeline-body p {
    font-size: 0.9rem;
  }

  /* Benefits — show CTA on mobile */
  .benefits-left .btn-gold {
    display: inline-flex !important;
  }

  /* Calculator */
  .calc-card {
    padding: 1.5rem;
  }

  .calc-result-value {
    font-size: 1.875rem;
  }

  .calc-result-box {
    padding: 1.125rem 1.25rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* FAQ */
  .faq-btn {
    font-size: 0.9375rem;
    padding: 1.375rem 0;
    gap: 1rem;
  }

  /* CTA section */
  .cta-section {
    padding: 4rem 0;
  }

  /* Sections */
  .section {
    padding: 3.75rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  /* Footer */
  .footer-main {
    padding: 3.5rem 0;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-langs {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* ─── Tiny screens (≤ 360px) — overrides 479px ───────────── */
@media (max-width: 360px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}

/* ─── Phones (≤ 639px) ────────────────────────────────────── */
@media (max-width: 639px) {
  /* Already has hero overrides, extending: */

  /* Hero stats keep 2-column layout */
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Calculator range thumb */
  .calc-slider-group {
    margin-bottom: 1.5rem;
  }

  /* Benefits CTA visible on single-column layout */
  .benefits-left .btn-gold {
    display: inline-flex !important;
  }

  /* Scroll indicator — keep but reduce */
  .scroll-indicator {
    bottom: 1rem;
  }

  /* Confirm card */
  .confirm-card {
    padding: 2rem 1.25rem;
  }
}

/* ─── Tablets (≤ 767px) ───────────────────────────────────── */
@media (max-width: 767px) {

  /* CTA section padding */
  .cta-section {
    padding: 5rem 0;
  }

  /* Section headers */
  .section-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Footer bottom stacks */
  .footer-bottom,
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom .legal-disclaimer {
    text-align: center;
    max-width: 100%;
  }

  /* Form page */
  .form-card {
    padding: 2rem 1.5rem;
  }
}

/* ─── Large tablets / small laptops (≤ 1023px) ───────────── */
@media (max-width: 1023px) {
  /* Hero layout already switches to 1-col at 900px */

  /* Section padding */
  .section {
    padding: 5rem 0;
  }

  /* Calculator layout */
  .calc-layout {
    gap: 2rem;
  }

  /* Benefits layout */
  .benefits-layout {
    gap: 2.5rem;
  }
}

/* ─── iOS safe area (notched phones) ─────────────────────── */
@supports (padding: max(0px)) {
  .navbar {
    padding-top: max(1.25rem, env(safe-area-inset-top));
  }

  .mobile-menu {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: max(8rem, calc(6rem + env(safe-area-inset-top)));
  }

  @media (max-width: 479px) {
    .hero {
      padding-top: max(6rem, calc(4.5rem + env(safe-area-inset-top)));
    }
  }
}

/* ─── Landscape mobile ────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .hero-stats {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 3rem);
}

@media (max-width: 640px) {
  #toast-container {
    top: 1rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }
}

.toast {
  pointer-events: auto;
  background: rgba(12, 22, 39, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--text-3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.removing {
  opacity: 0;
  transform: translateX(40px) scale(0.9);
}

.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

.toast-content {
  flex: 1;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.4;
}

/* Toast Variants */
.toast-error {
  border-left-color: #ef4444;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast-error .toast-progress-fill {
  background: #ef4444;
}

.toast-success {
  border-left-color: var(--teal);
}

.toast-success .toast-icon {
  background: rgba(0, 212, 167, 0.15);
  color: var(--teal);
}

.toast-success .toast-progress-fill {
  background: var(--teal);
}

.toast-warning {
  border-left-color: var(--gold);
}

.toast-warning .toast-icon {
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold);
}

.toast-warning .toast-progress-fill {
  background: var(--gold);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.toast-progress-fill {
  height: 100%;
  background: currentColor;
  width: 100%;
  transform-origin: left;
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* ============================================================
   SECTORS PHOTO GRID
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sector-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  cursor: default;
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.sector-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}

.sector-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.sector-card:hover .sector-card__bg {
  transform: scale(1.07);
}

.sector-card--agriculture .sector-card__bg {
  background-image: url('https://images.pexels.com/photos/1458694/pexels-photo-1458694.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-color: #0d2e0d;
}
.sector-card--industry .sector-card__bg {
  background-image: url('https://images.pexels.com/photos/1108101/pexels-photo-1108101.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-color: #0d1a2e;
}
.sector-card--livestock .sector-card__bg {
  background-image: url('https://images.pexels.com/photos/422218/pexels-photo-422218.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-color: #2e1a0d;
}
.sector-card--realestate .sector-card__bg {
  background-image: url('https://images.pexels.com/photos/323705/pexels-photo-323705.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-color: #1a0d2e;
}
.sector-card--commerce .sector-card__bg {
  background-image: url('https://images.pexels.com/photos/1005638/pexels-photo-1005638.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-color: #2e0d1a;
}
.sector-card--energy .sector-card__bg {
  background-image: url('https://images.pexels.com/photos/356036/pexels-photo-356036.jpeg?auto=compress&cs=tinysrgb&w=800');
  background-color: #2e2200;
}

.sector-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: background 0.35s ease;
}

.sector-card:hover .sector-card__overlay {
  background: rgba(0, 0, 0, 0.25);
}

.sector-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.sector-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.sector-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.sector-card__tag {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sector-card:hover .sector-card__tag {
  opacity: 1;
  transform: translateY(0);
}