/* ========================
   Base theme & variables
   ======================== */
:root {
  /* Exact page background as requested */
  --bg: #e9e6dc;
  --text: #23231f;
  --muted: #7a7666;
  --primary: #bfa76a;
  --accent: #7e6c3b;
  --card: #f7f5ef;
  --border: #d1c7a1;
  --shadow: 0 12px 40px rgba(191,167,106,0.10);
  --glow: #f7e7b6;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin:0;
  color:var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  overflow-x:hidden;
  font-size: 18px;
  letter-spacing: 0.01em;
}

/* ========================
   Preloader
   ======================== */
.preloader{
  position:fixed; inset:0; display:grid; place-items:center; gap:12px;
  background: var(--bg);
  color: var(--text);
  z-index: 9999;
  transition: opacity .35s ease, visibility .35s ease;
}
.preloader.hide{ opacity:0; visibility:hidden; pointer-events:none }
.spinner{
  width:56px; height:56px; border-radius:50%;
  border:4px solid rgba(0,0,0,0.22); border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg) } }

/* ========================
   Header / Nav
   ======================== */
.nav{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: rgba(247,245,239,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.brand{ display:flex; gap:10px; align-items:center; font-weight:900; letter-spacing:.5px }
.logo-img{
  height: 48px; width:auto; object-fit: contain; display:block;
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.brand-name { color: var(--text); }
.nav a{
  color: var(--accent); text-decoration:none; margin-left:14px; font-weight:700; opacity:.92; transition: color .2s;
}
.nav a:hover{ opacity:1; color: var(--primary); }

/* ========================
   Hero
   ======================== */
.hero{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(120deg, #e9e6dc 60%, #f7f5ef 100%);
  background-image: url('trump-chill-house.png'), linear-gradient(120deg, #e9e6dc 60%, #f7f5ef 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(233,230,220,0.82);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: min(5vw,48px);
  padding: clamp(28px, 8vw, 28px);
  margin-top: 35vh;
}
.hero-left h1{ margin:0 0 8px }
.hero-left {
  /* Make the left column wider so the heading and CA don't overlap the hero image */
  flex: 0 1 62%;
  max-width: 820px;
  background: rgba(247,245,239,0.92);
  border-radius: 24px;
  box-shadow: 0 8px 32px #bfa76a22;
  padding: 32px 32px 28px 32px;
  backdrop-filter: blur(2px);
}
.tagline{ color:var(--muted); margin:0 0 18px; max-width:60ch; font-size:1.2rem; font-weight:500; }

.glitch{
  font-size: clamp(32px, 6vw, 60px);
  font-weight:900; line-height:1.05; position:relative; text-transform:uppercase;
  text-shadow: 0 0 24px var(--glow);
  color: var(--accent);
}
/* Uklonjen glitch efekt s roza/plava, sada decentan sjaj */
.glitch::before, .glitch::after{
  content:attr(data-text); position:absolute; left:0; top:0; mix-blend-mode:lighten; pointer-events:none;
}
.glitch::before{ transform: translate(1.5px,0); color: #bfa76a; opacity:0.5; filter: blur(1px); }
.glitch::after{ transform: translate(-1.5px,0); color: #7e6c3b; opacity:0.4; filter: blur(1.5px); }
@keyframes glitch{
  0%{ clip-path: inset(0 0 0 0) }
  20%{ clip-path: inset(10% 0 0 0) }
  40%{ clip-path: inset(0 0 15% 0) }
  60%{ clip-path: inset(5% 0 8% 0) }
  80%{ clip-path: inset(12% 0 0 0) }
  100%{ clip-path: inset(0 0 0 0) }
}

/* ========================
   Buttons & CTA
   ======================== */
.cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin: 18px 0 14px }
.btn{
  appearance:none; border:0; padding:12px 16px; border-radius:14px;
  font-weight:900; letter-spacing:.3px; cursor:pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.primary{ background:linear-gradient(135deg,var(--primary),#ffe39a); color:#051018; box-shadow: var(--shadow) }
.outline{ background:transparent; color:var(--accent); border:1px solid var(--primary) }
.ghost{ background:#e9e6dc; color:var(--accent); border:1px solid var(--border) }
.btn:hover{ transform: translateY(-2px) }
.btn:active{ transform: translateY(0) scale(.98) }
/* Modern hover za gumb */
.btn:hover { filter: brightness(1.08) drop-shadow(0 2px 8px #bfa76a33); }

/* ========================
   CA box
   ======================== */
.ca-wrap{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background: var(--card); padding:12px 14px; border-radius:14px; border:1px solid var(--border);
  box-shadow: var(--shadow); width:100%; max-width:820px;
}
.ca-wrap .label{ color:var(--muted); font-weight:800; font-size:.9rem }
#ca{
  user-select:text; padding:8px 12px; border-radius:10px; background:#fff;
  border:1px dashed rgba(0,0,0,0.2); font-weight:800; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
  display:block; white-space:nowrap; overflow-x:auto; max-width:100%;
}
.copy{ background: linear-gradient(135deg, var(--accent), #ffdcae); color:#0d0f15 }
.mini{ background:#f7f5ef; color:var(--accent); border:1px solid var(--primary) }
.copied{ opacity:0; margin-left:6px; color:var(--accent); font-weight:800; transition:opacity .2s ease }

/* ========================
   Ticker
   ======================== */
.ticker{ margin-top:14px; overflow:hidden; border-top:1px solid var(--border); border-bottom:1px solid var(--border) }
.ticker .track{
  display:flex; gap:40px; padding:8px 0; white-space:nowrap; font-weight:900; color:var(--accent);
  animation: marquee 18s linear infinite;
}
.ticker span{ letter-spacing:2px }
@keyframes marquee{ from{ transform: translateX(0) } to{ transform: translateX(-50%) } }

/* ========================
   Right card + image
   ======================== */
.card{
  background: var(--card);
  border:1px solid var(--border); border-radius:24px; padding:18px;
  box-shadow: var(--shadow);
  position:relative; overflow:hidden; min-height: 420px; display:grid; place-items:center;
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }
.mascot{
  width:100%; height:auto; max-width:520px;
  filter: drop-shadow(0 30px 50px rgba(191,167,106,0.25));
  animation: pop .7s cubic-bezier(.2,.9,.2,1) both;
  background: #f7f5ef;
  border-radius: 18px;
}
@keyframes pop{ from{ transform: scale(.94); opacity:0 } to{ transform: scale(1); opacity:1 }}

/* tilt hover */
.tilt{ transform-style: preserve-3d; perspective: 1000px }
.tilt:hover{ transform: rotateX(3deg) rotateY(-3deg) scale(1.01) }

/* ========================
   Sections & Footer
   ======================== */
.section{ max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section h2{ margin:0 0 8px }
.steps{ margin:0; padding-left: 20px; color: var(--muted) }

.footer{
  text-align:center; color:var(--muted); padding: 40px 0 60px;
  border-top:1px solid var(--border); margin-top:40px;
  background: #f7f5ef;
}

/* ========================
   Responsive & accessibility
   ======================== */
@media (max-width: 880px){
  .hero{ grid-template-columns: 1fr; }
  .card{ min-height: 340px }
}
@media (prefers-reduced-motion: reduce){
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
