/* =========================
   WEB IMPERIA — KANON v1.6
   Clean CSS structure
   ========================= */

/* Tokens */
:root{
  --bg:#070A12;
  --panel:#0B1020;
  --panel2:#0A0F1D;
  --text:#EAF0FF;
  --muted:#A9B3C7;
  --stroke:rgba(255,255,255,.10);

  /* GOLD PREMIUM */
  --accent:#D9B45A;
  --accent2:#F3D487;
  --goldGlow: rgba(217,180,90,.22);
}

/* Base */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(217,180,90,.14), transparent 60%),
    radial-gradient(900px 420px at 82% 28%, rgba(243,212,135,.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: .6;
  mix-blend-mode: overlay;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
.container{ width:min(1120px, calc(100% - 32px)); margin:0 auto; }
.muted{ color: var(--muted); }

/* Typography (premium headings) */
h1, h2, h3{
  font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
  letter-spacing: -0.6px;
  color: var(--text);
}
.hero h1{
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.03;
  font-weight: 950;
  background: linear-gradient(135deg, #ffffff 0%, rgba(243,212,135,1) 40%, rgba(217,180,90,1) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 16px 60px rgba(217,180,90,0.18);
}
h2{
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.15;
  font-weight: 900;
}
h3{
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
}

/* =========================
   Header / Nav
   ========================= */
.brand img{
  height:52px;
  width:auto;
  display:block;
}
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,180,90,.40), rgba(243,212,135,.22), transparent);
  pointer-events:none;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav a{
  color: rgba(255,255,255,.72);
  font-weight: 700;
  letter-spacing: .2px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.nav-cta{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(217,180,90,.45);
  background: linear-gradient(135deg, rgba(217,180,90,.20), rgba(243,212,135,.10));
  box-shadow: 0 12px 30px rgba(217,180,90,.14);
  color: var(--text) !important;
}
.nav-cta:hover{
  background: linear-gradient(135deg, rgba(217,180,90,.26), rgba(243,212,135,.14));
  border-color: rgba(217,180,90,.55);
}
/* Mobile toggle */
.nav-toggle{
  display:none;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.nav-toggle span{
  display:block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: rgba(255,255,255,.55);
}

/* =========================
   Buttons / Badges
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111013;
  border: 0;
  box-shadow: 0 14px 40px rgba(217,180,90,.18);
}
.btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(217,180,90,.28);
}
.btn.ghost{
  border: 1px solid rgba(217,180,90,.35);
  background: rgba(217,180,90,.08);
  color: rgba(234,240,255,.92);
}
.btn.ghost:hover{
  transform: translateY(-2px);
  border-color: rgba(217,180,90,.55);
  background: rgba(217,180,90,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.badges{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 16px;
}
.badge{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-weight: 600;
  font-size: 13px;
}

/* =========================
   Hero
   ========================= */
.hero{
  padding: 74px 0 56px;
  background:
    radial-gradient(900px 420px at 15% 18%, rgba(124,92,255,.28), transparent 60%),
    radial-gradient(900px 420px at 85% 28%, rgba(39,224,163,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  align-items:center;
}
.kicker{
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  margin: 0 0 14px;
}
.hero-sub{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 28px;
}

.micro-proof{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 16px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
  font-size: 13px;
}
.micro-proof span{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}

.hero-image-wrap{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}
.hero-image-wrap img{
  width:100%;
  height: 420px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-image-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(7,10,18,.15), rgba(7,10,18,.65)),
    radial-gradient(600px 300px at 30% 10%, rgba(217,180,90,.25), transparent 60%);
}

/* =========================
   Sections
   ========================= */
.section{ padding: 72px 0; }
.section.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.section.alt::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(217,180,90,.35), transparent);
}

.section-head{ margin-bottom: 18px; }
.section-head h2{
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  font-weight: 950;
  letter-spacing: -0.8px;
}
.section-head h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-12px;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(243,212,135,.95), rgba(217,180,90,.30));
  box-shadow: 0 10px 30px rgba(217,180,90,.18);
}
.section-head p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 78ch;
}
.micro-seo{
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* =========================
   Cards (Lux)
   ========================= */
.card{
  padding: 22px;
  border-radius: 22px;
}

/* Universal lux card */
.card--lux{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid rgba(217,180,90,.12);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card--lux::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 30%, rgba(217,180,90,.12), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.card--lux:hover{
  transform: translateY(-6px);
  border-color: rgba(217,180,90,.35);
  box-shadow: 0 40px 120px rgba(0,0,0,.65), 0 0 0 1px rgba(217,180,90,.15);
}
.card--lux:hover::before{ opacity: .6; }

.card h3,
.work-meta h3{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(243,212,135,1) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card p,
.work-meta p{ color: rgba(234,240,255,.72); }

.mini-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.mini-list li{ margin: 6px 0; }

/* =========================
   Services
   ========================= */
.cards{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* =========================
   Portfolio
   ========================= */
.grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work{
  border-radius: 22px;
  overflow:hidden;
}
.work-thumb img{
  width:100%;
  height: 200px;
  object-fit: cover;
}
.work-meta{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.work-type{
  margin: 0;
  color: rgba(255,255,255,.65);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.work-tags{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.work-deliverables{
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(243,212,135,.85);
}

.works-note{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}

/* =========================
   Process
   ========================= */
.steps{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step{
  padding: 16px;
  border-radius: 22px;
}
.step-num{
  display:inline-block;
  font-weight: 900;
  letter-spacing:.12em;
  color: rgba(255,255,255,.35);
}
.step h3{ margin: 10px 0 8px; font-weight: 800; }
.step p{ margin: 0; color: var(--muted); line-height: 1.6; }

.process-note{
  margin-top: 28px;
  padding-top: 18px;
  font-weight: 500;
  font-size: 16px;
  color: rgba(234,240,255,.85);
  text-align: center;
  position: relative;
}
.process-note::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(217,180,90,.55), transparent);
}

/* =========================
   Pricing
   ========================= */
.pricing{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price{
  padding: 18px;
  border-radius: 22px;
}
.price.featured{
  border-color: rgba(217,180,90,.35);
  background: rgba(217,180,90,.04);
}
.price h3{ margin:0 0 6px; font-weight: 900; }
.price-sub{ margin:0 0 12px; color: var(--muted); }
.price ul{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.price .btn{ margin-top: 18px; }

/* =========================
   About
   ========================= */
.about-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-box{
  padding: 18px;
  border-radius: 22px;
}
.about-box p{ margin:0; color: var(--muted); line-height: 1.65; }
.about-box .btn{ margin-top: 20px; }

.checklist{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   Contact
   ========================= */
.contact-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}
.contact-box, .form{
  padding: 18px;
  border-radius: 22px;
}

label{
  display:block;
  font-weight: 700;
  margin-bottom: 12px;
}
input, textarea{
  margin-top: 8px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(217,180,90,.65);
  box-shadow: 0 0 0 2px rgba(217,180,90,.18);
}
.form-note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
/* Select (custom) */
.form select{
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #d4af37 50%),
    linear-gradient(135deg, #d4af37 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 55%,
    calc(100% - 15px) 55%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.form select:focus{
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}

/* Alert */
.alert{
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  font-weight: 600;
}
.alert.success{
  background: rgba(40, 180, 120, .12);
  border-color: rgba(40, 180, 120, .35);
}
.alert.error{
  background: rgba(220, 70, 70, .12);
  border-color: rgba(220, 70, 70, .35);
}

/* Kontakt: clean mode (bez hover gradienta i bez senke) */
.contact-box.card--lux::before,
.form.card--lux::before{ background: none; }

.contact-box.card--lux,
.form.card--lux{ box-shadow: none !important; }

.contact-box.card--lux:hover,
.form.card--lux:hover{
  transform: none !important;
  box-shadow: none !important;
}

/* Kontakt social */
.contact-social{
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

/* =========================
   Social icons (shared)
   ========================= */
.social-link{
  width: 42px;
  height: 42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border: 1px solid rgba(217,180,90,.18);
  background: rgba(255,255,255,.02);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.social-link svg{
  width: 20px;
  height: 20px;
  fill: rgba(234,240,255,.82);
}
.social-link:hover{
  transform: translateY(-2px);
  border-color: rgba(217,180,90,.38);
  background: rgba(217,180,90,.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* =========================
   Footer (left brand, center social, right copyright)
   ========================= */
.footer{
  padding: 34px 0;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,.02));
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.4fr auto 1fr;
  gap: 18px;
  align-items:center;
}
.footer-left{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.footer-brand{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: rgba(234,240,255,.92);
}
.footer-note{
  margin: 0;
  color: rgba(234,240,255,.62);
  line-height: 1.6;
  max-width: 52ch;
  font-size: 14px;
}
.footer-copy{
  margin: 0;
  text-align:right;
  color: rgba(234,240,255,.50);
  font-size: 13px;
}
.footer-social{
  display:flex;
  gap: 10px;
  justify-content:center;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .hero{ padding: 56px 0 42px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 26px; }
  .section{ padding: 56px 0; }

  .cards{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; gap: 16px; }
  .pricing{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }

  .nav-toggle{ display:block; }
  .nav{
    position: absolute;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    width: min(260px, calc(100% - 32px));
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(7,10,18,.85);
    backdrop-filter: blur(14px);
    display:none;
  }
  .nav.open{ display:flex; }

  .works-note{
    justify-content: center;
    text-align: center;
  }
  .works-note .btn{
    margin-left: auto;
    margin-right: auto;
  }
  .work-thumb img{ height: 180px; }

  .card, .card--lux{ padding: 18px; }

  .footer-inner{
    grid-template-columns: 1fr;
    gap: 14px;
    text-align:center;
  }
  .footer-note{
    margin-left:auto;
    margin-right:auto;
  }
  .footer-copy{ text-align:center; }
}

/* =========================
   Safari mobile only (blago svetliji kontrast)
   ========================= */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 980px){
    body{ background: #0A0D16; }
    .section.alt{
      background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    }
    .card--lux{ background: rgba(255,255,255,.02); }
  }
}