:root {
  /* Topla, smirujuća paleta — glina / terakota, kremasta pozadina, prirodna zelena */
  --accent: #c07a4e;
  --accent-dark: #9c5e38;
  --wa: #46a06a;
  --ink: #33241a;
  --muted: #7c6b5d;
  --line: #ecdfce;
  --soft: #fdf9f3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -5%, rgba(192, 122, 78, 0.14), transparent 30%),
    linear-gradient(180deg, #fdf9f3 0%, #f6ecdd 55%, #f1e4d1 100%);
}

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

.hero {
  min-height: 660px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(224, 160, 96, 0.3), transparent 30%),
    linear-gradient(90deg, rgba(28, 18, 12, 0.96), rgba(28, 18, 12, 0.72) 50%, rgba(28, 18, 12, 0.3)),
    linear-gradient(135deg, #211610 0%, #35251a 46%, #a2673a 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -24% 35%;
  height: 360px;
  background: radial-gradient(ellipse, rgba(180, 110, 55, 0.5), transparent 65%);
  pointer-events: none;
}

.nav,
.hero-grid,
.packages,
.cta-panel,
.trust-row {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.nav {
  padding: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: none;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.4rem;
}

.brand-mark {
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-weight: 900;
  border-radius: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.nav-cta {
  color: #fff;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
  padding: 64px 0 96px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 18px 35px rgba(156, 94, 56, 0.32);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  min-height: 500px;
  position: relative;
}

.scan-scene {
  min-height: 500px;
  position: relative;
}

.scene-table {
  position: absolute;
  left: 20px;
  right: 0;
  bottom: 18px;
  height: 235px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 229, 181, 0.24), transparent 54%),
    linear-gradient(135deg, #9a6330, #3a2110 62%, #1c0f07);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
  transform: perspective(500px) rotateX(58deg);
}

.hand-phone {
  width: 248px;
  height: 500px;
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(145deg, #241a12, #0a0603 42%, #000);
  border: 2px solid #6b5847;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 0 7px #0b0805,
    0 32px 75px rgba(0, 0, 0, 0.5);
  position: absolute;
  right: 108px;
  top: 0;
  transform: rotate(4deg);
  z-index: 3;
  overflow: hidden;
}

.phone-camera {
  width: 82px;
  height: 24px;
  margin: 6px auto 34px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 17px 0 0 rgba(255, 255, 255, 0.06);
}

.phone-restaurant {
  margin: 0 0 14px;
  color: #fff;
  text-align: center;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.scan-frame {
  width: 176px;
  height: 176px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(192, 122, 78, 0.3);
  background: #fbf6ef;
  overflow: hidden;
}

.scan-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  top: 85px;
  height: 2px;
  background: var(--wa);
  box-shadow: 0 0 18px rgba(70, 160, 106, 0.8);
}

.scan-frame img {
  width: 148px;
  height: 148px;
  display: block;
  margin: 14px auto 0;
  position: relative;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
  background: #fff;
  filter: contrast(1.12);
}

.scan-frame span {
  width: 38px;
  height: 38px;
  position: absolute;
  z-index: 3;
  border-color: var(--accent);
  border-style: solid;
}

.scan-frame span:nth-of-type(1) {
  left: 0;
  top: 0;
  border-width: 4px 0 0 4px;
}

.scan-frame span:nth-of-type(2) {
  right: 0;
  top: 0;
  border-width: 4px 4px 0 0;
}

.scan-frame span:nth-of-type(3) {
  right: 0;
  bottom: 0;
  border-width: 0 4px 4px 0;
}

.scan-frame span:nth-of-type(4) {
  left: 0;
  bottom: 0;
  border-width: 0 0 4px 4px;
}

.hand-phone p {
  margin: 18px 0 0;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.camera-controls {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.camera-modes {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.56rem;
  font-weight: 800;
}

.camera-modes .active {
  color: rgba(255, 211, 109, 0.9);
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
}

.camera-thumb,
.camera-switch {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  justify-self: center;
  background: linear-gradient(145deg, rgba(245, 234, 220, 0.88), rgba(154, 99, 48, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.camera-switch {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.36) 0 13%, transparent 14%),
    rgba(255, 255, 255, 0.12);
}

.camera-shutter {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  justify-self: center;
  border: 3px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.coffee-cup {
  width: 96px;
  height: 96px;
  position: absolute;
  right: 292px;
  bottom: 86px;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1d120b 0 25%, #fff 26% 48%, #e8ddcf 49% 56%, transparent 57%),
    #fff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

main {
  padding-bottom: 56px;
}

.packages,
.cta-panel,
.trust-row {
  margin-top: 72px;
}

.section-heading h2,
.cta-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.1;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.package-card {
  position: relative;
  padding: 34px;
  border-radius: 22px;
  background: #fffdfa;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(87, 54, 26, 0.09);
}

.package-card p,
.trust-row span {
  color: var(--muted);
  line-height: 1.55;
}

.package-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 24px 70px rgba(192, 122, 78, 0.18);
}

.package-icon {
  display: table;
  margin: 0 auto 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  background: rgba(192, 122, 78, 0.12);
  border: 1px solid rgba(192, 122, 78, 0.28);
}

.featured .package-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}

.package-card > p {
  text-align: center;
  line-height: 1.42;
  margin-bottom: 18px;
}

.price {
  text-align: center;
  color: var(--accent-dark);
  font-size: 3.1rem;
  font-weight: 1000;
  line-height: 1;
}

.price-note {
  display: block;
  margin-bottom: 24px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
}

.package-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding: 5px 0 5px 28px;
  line-height: 1.18;
}

.package-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent);
  font-weight: 1000;
}

.support-note {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid #ecd7bd;
  border-radius: 12px;
  background: #fbf3e6;
  color: #6a5647;
  line-height: 1.42;
  text-align: left !important;
}

.select-package {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid rgba(192, 122, 78, 0.4);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #fffdfa;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.select-package.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 30px rgba(192, 122, 78, 0.24);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: center;
  padding: 34px;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 18%, rgba(70, 160, 106, 0.18), transparent 34%),
    linear-gradient(135deg, #211510, #3a2818);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-panel a {
  color: #fff;
  font-weight: 900;
}

.selected-package-label {
  width: fit-content;
  margin: 18px 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.selected-package-label strong {
  color: #fff;
}

.whatsapp-big {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 26px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.38);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.whatsapp-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(18, 140, 126, 0.5);
  filter: brightness(1.04);
}

.whatsapp-big:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
}

.wa-icon {
  width: 34px;
  height: 34px;
  flex: none;
}

.wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  text-align: left;
}

.wa-text strong {
  font-size: 1.3rem;
  font-weight: 900;
}

.wa-text small {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.9;
}

.hostpilot-signature {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(48, 36, 28, 0.58);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trust-row article {
  padding: 18px;
  background: #fffdfa;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 6px;
}

/* ---------- Tablet ---------- */
@media (max-width: 940px) {
  .hero-grid,
  .package-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 42px;
  }

  .hero-visual,
  .scan-scene {
    min-height: 540px;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav,
  .hero-grid,
  .packages,
  .cta-panel,
  .trust-row {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    padding-top: 22px;
  }

  .nav-actions {
    display: none;
  }

  .brand {
    font-size: 1.16rem;
  }

  h1 {
    font-size: 1.85rem;
    line-height: 1.05;
    margin-bottom: 14px;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 24px;
    padding-bottom: 40px;
    gap: 20px;
  }

  /* Pojednostavljena hero scena na mobitelu: samo telefon, centriran, bez viška */
  .hero-visual {
    min-height: auto;
  }

  .scan-scene {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .scene-table,
  .coffee-cup {
    display: none;
  }

  .hand-phone {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: 200px;
    height: 400px;
    padding: 12px;
    border-radius: 36px;
  }

  .phone-camera {
    width: 68px;
    height: 20px;
    margin-bottom: 26px;
  }

  .scan-frame {
    width: 128px;
    height: 128px;
  }

  .scan-frame img {
    width: 106px;
    height: 106px;
    margin-top: 11px;
  }

  .scan-frame::after {
    top: 62px;
  }

  .phone-restaurant,
  .hand-phone p {
    font-size: 0.85rem;
  }

  .packages,
  .cta-panel,
  .trust-row {
    margin-top: 52px;
  }

  .package-card,
  .cta-panel {
    padding: 24px;
  }

  .package-card p,
  .trust-row span {
    font-size: 0.95rem;
  }

  .price {
    font-size: 2.6rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }
}
