* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img {
    max-width: 100%;
    display: block;
  }

  /* Layout */

  header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.92),
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.7),
        transparent
    );
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .logo-mark {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 0, #38bdf8 0, #0ea5e9 38%, #0369a1 70%);
    box-shadow: 0 0 0 1px rgba(15,23,42,0.7), 0 12px 30px rgba(8, 47, 73, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: #e0f2fe;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    padding-left: 30px;
  }

  .logo-text span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
  }

  .logo-text span:last-child {
    font-size: 0.75rem;
    color: var(--muted);
  }

  header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(15,23,42,.95), rgba(15,23,42,.8), transparent);
    border-bottom: 1px solid rgba(31,41,55,.9);
  }
  
  .nav-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* ovo već tjera logo lijevo, language desno */
    gap: 1rem;
  }
  
  /* dropdown */
  
  .lang-dropdown {
    position: relative;
  }
  
  .lang-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.55);
    background: rgba(15,23,42,.9);
    cursor: pointer;
    color: #e5e7eb;
    font-size: .8rem;
  }
  
  .lang-menu {
    position: absolute;
    right: 0;
    top: 110%;
    margin: 0;
    padding: .25rem;
    list-style: none;
    border-radius: 10px;
    background: #020617;
    border: 1px solid rgba(51,65,85,.9);
    box-shadow: 0 18px 40px rgba(15,23,42,.9);
    display: none;
    min-width: 190px;
    z-index: 30;
  }
  
  .lang-menu li button {
    width: 100%;
    text-align: left;
    padding: .35rem .55rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: .8rem;
    cursor: pointer;
  }
  
  .lang-menu li button:hover {
    background: rgba(51,65,85,.9);
  }
  
  /* klasa za otvoren dropdown */
  .lang-dropdown.open .lang-menu {
    display: block;
  }
  
  /* Lang selector */
  .lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .lang-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
  }

  .lang-dropdown {
    position: relative;
  }

  .lang-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    color: #e5e7eb;
    font-size: 0.8rem;
  }

  .lang-flag {
    font-size: 0.9rem;
  }

  .lang-code {
    font-weight: 500;
  }

  .lang-chevron {
    font-size: 0.7rem;
    color: var(--muted);
  }

  /* Main content */
  main {
    flex: 1;
  }

  .section {
    padding: 3.5rem 1.25rem;
    scroll-margin-top: 140px;
    min-height: 300px;
  }

  .section-inner {
    max-width: 1120px;
    margin: 0 auto;
  }

  /* Hero / Who we are */
  .hero {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 3rem;
    align-items: center;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: radial-gradient(circle at left, rgba(56, 189, 248, 0.16), transparent 55%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
  }

  .eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.3);
  }

  .hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
  }

  .hero h1 span.accent {
    color: var(--accent);
  }

  .hero-lead {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 1.6rem;
  }

  .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
  }

  .pill {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 0.8rem;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.7);
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
  }

  .btn-primary {
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 14px 30px rgba(8, 47, 73, 0.8);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .btn-primary span.icon {
    font-size: 1rem;
  }

  .hero-note {
    font-size: 0.8rem;
    color: var(--muted);
  }

  .hero-panel {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, #0b1120, #020617);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }

  .hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hero-panel-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
  }

  .status-pill {
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.75rem;
  }

  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
  }

  .tech-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.78rem;
    color: #e5e7eb;
  }

  .panel-note {
    font-size: 0.78rem;
    color: var(--muted);
  }

  /* What we do */
  .section-header {
    margin-bottom: 2rem;
  }

  .section-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 0.4rem;
  }

  .section-title {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
    color: var(--muted);
    
  }

  .tech-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .tech-card {
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    padding: 0.9rem 0.9rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .tech-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 0, rgba(56, 189, 248, 0.35), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

  .tech-name {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .tech-desc {
    font-size: 0.8rem;
    color: var(--muted);
  }

  /* Why us */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .why-card {
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    padding: 1rem;
  }

  .why-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
  }

  .why-text {
    font-size: 0.82rem;
    color: var(--muted);
  }

  /* Contact */
  .contact-section {
    padding-bottom: 3rem;
  }

  .contact-box {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.4rem;
  }

  .contact-text {
    max-width: 32rem;
  }

  .contact-text h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .contact-text p {
    font-size: 0.9rem;
    color: var(--muted);
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
  }

  .contact-row-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
  }

  .contact-link {
    color: var(--accent);
  }

  /* Footer */
  footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 1rem 1.25rem 1.4rem;
    background: #020617;
  }

  .footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  @media (max-width: 900px) {
    .hero-grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
    }
    .hero {
      padding-top: 3.4rem;
    }
    .tech-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .why-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 640px) {
    .nav-inner {
      padding-inline: 1rem;
    }
    .section {
      padding-inline: 1rem;
    }
    .tech-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* Page layout now accounts for fixed sidebar */
.page {
    min-height: 100vh;
    background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
    color: var(--text);
  }
  
  /* Wrapper for side nav + main */
  .layout {
    max-width: 80%;
    margin: 0 auto;
    display: block; /* main width is handled by padding-left */
    position: relative;
  }
  
  /* Fixed side nav on the left */
  .side-nav {
    position: fixed;
    top: 160px;           /* just below your header height */
    left: 0;
    width: 180px;        /* adjust as you like */
    padding: 1.5rem 1rem 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid rgba(31, 41, 55, 0.7);
    background: rgba(15, 23, 42, 0.96); /* subtle bg so it’s readable when content scrolls */
    z-index: 15;
  }
  
  .side-nav a {
    font-size: 0.85rem;
    color: #9ca3af;
    padding: 0.35rem 0.2rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
  }
  
  .side-nav a:hover {
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
    padding-left: 0.5rem;
  }
  
  /* Push main content to the right so it doesn’t overlap the fixed nav */
  .layout > main {
    padding-left: 200px; /* slightly more than .side-nav width */
  }
  
  /* Responsive: hide fixed nav on small screens */
  @media (max-width: 900px) {
    .side-nav {
      display: none;
    }
    .layout > main {
      padding-left: 0;
    }
  }
  