:root {
  --bg: #f7f7f7;
  --text: #0a0b0d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #000000;
  --soft: #f8fafc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
}

body {
  background: var(--bg);
  overflow: hidden;
  overflow-y: scroll;
  color: var(--text);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 18px;
}

/* NAV */
.nav {
  display: flex;
  gap: 20px;
  z-index: 1000;
  position: relative;
}

.nav-item {
  position: relative;
  cursor: pointer;
  font-weight: 500;
}

.nav-item:hover {
  color: #1968fb !important;
}

/* MEGA MENU */
.has-mega:hover .mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* BRUTAL MEGA MENU ANIMATION */
.mega-menu {
  position: fixed;
  top: 96px; /* ispod navbara */
  left: 50%;
  transform: translateX(-50%) scale(0.9) rotateX(-14deg);
  transform-origin: top center;

  width: min(1200px, calc(100vw - 96px));
  max-width: 1200px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;

  display: grid;
  grid-template-columns: 3fr 1.2fr;
  padding: 64px;
  gap: 56px;
cursor:default;
  opacity: 0;
  filter: blur(16px);
  pointer-events: none;

  transition:
    opacity .3s ease,
    filter .45s ease,
    transform .65s cubic-bezier(.16,1,.3,1);

  box-shadow:
    0 100px 200px rgba(0,0,0,.22),
    0 30px 60px rgba(0,0,0,.14);

  z-index: 1000;
}
.vieww {
  padding: 10px 20px;
  border-radius: 11px;
  cursor: pointer;
  background: #000;
  text-align: center;
  color: #fff !important;
}
.vieww:hover{
   box-shadow:
    0 100px 200px rgba(0,0,0,.22),
    0 30px 60px rgba(0,0,0,.14);
   transition: 400ms;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) scale(1) rotateX(0deg);
  pointer-events: auto;
}


.has-mega:hover .mega-menu {
  opacity: 1;
  filter: blur(0);
  transform: translateX(-50%) scale(1) rotateX(0deg);
  pointer-events: auto;
}
.has-mega {
  position: relative;
}

/* HOVER BRIDGE */
.has-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -50%;
  width: 200%;
  height: 40px;
}


/* LEFT */
.mega-left {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 32px;
}

.mega-card {
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition:
    transform .6s cubic-bezier(.16,1,.3,1),
    opacity .4s ease;
}

.has-mega:hover .mega-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* STAGGER DELAY */
.mega-card:nth-child(1) { transition-delay: .08s; }
.mega-card:nth-child(2) { transition-delay: .14s; }
.mega-card:nth-child(3) { transition-delay: .20s; }
.mega-card:nth-child(4) { transition-delay: .26s; }

/* ---------- HAMBURGER ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 999;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #111;
  transition: .3s ease;
}

/* ---------- MOBILE LAYOUT ---------- */
@media (max-width: 1100px) {

  header {
    position: relative;
    z-index: 1004;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1003;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 24px 40px;
    transform: translateX(100%);
    transition: transform .6s cubic-bezier(.16,1,.3,1);
    z-index: 1001;

    /* KLJUČNO */
    pointer-events: none;
  }

  .nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-item {
    font-size: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
  }

  /* ---------- MOBILE DROPDOWN ---------- */
  /* TOTALNO GASI MEGA MENU NA MOBILNOM */
 @media (max-width: 1100px) {

  /* ❌ gasi mega menu totalno */
  .mega-menu {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
    filter: none !important;
  }

  /* ❌ gasi hover bridge */
  .has-mega::after {
    display: none !important;
  }

  /* ❌ gasi hover ponašanje */
  .has-mega:hover .mega-menu {
    display: none !important;
  }

  /* (opciono) spreči klik logiku ako postoji */
  .has-mega.active .mega-menu {
    display: none !important;
  }
}

  .mega-left {
    grid-template-columns: 1fr;
  }

  .mega-right {
    border-left: none;
    padding-left: 0;
    margin-top: 24px;
  }

  .center-only {
    width: 100%;
  }
  .nav-container {
    width: 100%;
  }
}

/* ---------- BURGER → X ---------- */

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: .4s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- OSTATK OSTAO ISTI ---------- */

.explorer {
  border-bottom: 2px solid transparent;
  transition: 200ms;
}

.explorer:hover {
  border-bottom: 2px solid #000000 !important;
}

.explorer:hover span:hover {
  margin-left: 10px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #000000, #000000);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.mega-card .fa-angle-right {
  color: #000000 !important;
}

.mega-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #000000;
}

.mega-card p {
  font-size: 14px;
  color: var(--muted);
}

/* RIGHT */
.mega-right {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.badge {
  font-size: 12px;
  letter-spacing: .12em;
  color: #000000;
  font-weight: 700;
}

.mega-right h3 {
  font-size: 22px;
  margin: 14px 0;
  color: #000000;
}

.mega-right p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}

.mega-link {
  font-weight: 600;
  color: var(--accent);
}

/* ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signin {
  font-size: 14px;
  color: var(--muted);
}


/* hero */

.hero {
  position: relative;
  padding: 160px 6vw 140px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

/* BACKGROUND */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #f0f0f0 1px, transparent 1px),
    linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
  top: -200px;
  left: 30%;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 22px;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 520px;
  font-size: 14px;
  color: #555;
  margin-bottom: 40px;
}

/* BUTTONS */
.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  transition: all .25s ease;
}

.btn.primary {
  background: #111;
  color: #fff;
  cursor: pointer;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.btn.ghost {
  cursor: pointer;
  font-size: 14px;
}
.btn.ghost:hover {
  background: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


/* VISUAL */
.hero-visual {
  position: relative;
  z-index: 1;
}

.visual-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 80px rgba(0,0,0,.08);
  transform: perspective(1000px) rotateY(-12deg);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.visual-card:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.visual-header {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.visual-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.visual-body {
  padding: 24px;
}

.code-line {
  height: 10px;
  background: linear-gradient(90deg, #e5e7eb, #f5f5f5);
  border-radius: 6px;
  margin-bottom: 14px;
  animation: shimmer 2.5s infinite;
}

.code-line.short { width: 60%; }
.code-line.medium { width: 80%; }

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .hero-visual {
    order: -1;
  }
}

.trust {
  padding: 120px 6vw;
  text-align: center;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.trust-label {
  font-size: 14px;
  letter-spacing: .08em;
  color: #666;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* LOGOS */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.logo-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #999;
  background: #fafafa;
  transition: all .35s ease;
}

.logo-card:hover {
  color: #111;
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

/* METRICS */
.metrics {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.metric h3 {
  font-size: 48px;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.metric p {
  font-size: 14px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics {
    flex-direction: column;
    gap: 32px;
  }
}





.features {
  padding: 140px 6vw;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.features-intro {
  max-width: 640px;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.features h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 20px;
}

.features h2 span {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.features p {
  font-size: 18px;
  color: #555;
}

/* GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px;
  background: #fafafa;
  transition: all .45s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
    rgba(99,102,241,.15),
    transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.1);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}



.architecture {
  padding: 140px 6vw;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.architecture-header {
  max-width: 640px;
  margin-bottom: 80px;
}

.architecture h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 20px;
}

.architecture h2 span {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.architecture-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

/* DIAGRAM */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layer {
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent,
    rgba(99,102,241,.15),
    transparent);
  transform: translateX(-100%);
}

.layer.active::after {
  animation: scan 1.8s ease forwards;
}

@keyframes scan {
  to { transform: translateX(100%); }
}

/* STEPS */
.architecture-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.step span {
  font-size: 12px;
  letter-spacing: .08em;
  color: #888;
}

.step h4 {
  margin: 10px 0;
  font-size: 18px;
}

.step p {
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .architecture-body {
    grid-template-columns: 1fr;
  }

  .architecture-steps {
    grid-template-columns: 1fr;
  }
}



.security {
  padding: 140px 6vw;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.security-header {
  max-width: 640px;
  margin-bottom: 80px;
}

.security h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 20px;
}

.security h2 span {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

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

.security-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 36px;
  background: #fafafa;
  transition: all .4s cubic-bezier(.16,1,.3,1);
}

.security-card:hover {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,.1);
}

.security-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

/* FOOTER */
.security-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 48px;
}

.sla h3 {
  font-size: 32px;
}

.certs span {
  display: inline-block;
  margin-left: 16px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}


/* FINAL CTA */
.final-cta {
  padding: 160px 6vw;
  background: linear-gradient(to bottom, #fafafa, #fff);
  border-top: 1px solid #eee;
  text-align: center;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(40px, 5vw, 64px);
  margin: 24px 0;
}

.final-cta h2 span {
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.final-cta p {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* FOOTER */
.footer {
  padding: 100px 6vw 40px;
  background: #fff;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
}

.footer h4 {
  font-size: 20px;
  margin-bottom: 16px;
}

.footer h5 {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer a {
  display: block;
  margin-bottom: 12px;
  color: #555;
  text-decoration: none;
  transition: color .2s ease;
}

.footer a:hover {
  color: #111;
  text-decoration: underline;
}

.footer-brand p {
  color: #666;
  max-width: 360px;
}

/* BOTTOM */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 24px;
  font-size: 14px;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
  }
}



.primary-btn {
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
}

.big {
  padding: 16px 32px;
  font-size: 15px;
}

/* HERO */
.hero {
  max-width: 1480px;
  margin: auto;
  padding: 140px 72px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 42px;
  line-height: 1.05;
  max-width: 900px;
}

.hero p {
  margin-top: 28px;
  font-size: 22px;
  color: var(--muted);
  max-width: 700px;
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  gap: 20px;
}

/* ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(.16,1,.3,1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}
