*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* =========================================
   SHARED CONTACT FOOTER SECTION
   ========================================= */
.site-footer {
  position: relative;
  isolation: isolate;
  z-index: 10;
  width: 100%;
  min-height: 620px;
  margin: 0;
  padding: 86px clamp(20px, 5vw, 90px) 78px;
  color: #fff8e8;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0.18) 0%, rgba(3, 6, 4, 0.72) 32%, rgba(3, 6, 4, 0.95) 100%),
    url('../assets/images/footer_bg.png') center bottom / cover no-repeat;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  direction: rtl;
  scroll-margin-top: 120px;
  -webkit-mask-image: none;
  mask-image: none;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(216, 183, 106, 0.12), transparent 36%),
    radial-gradient(ellipse at 84% 20%, rgba(216, 183, 106, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(1, 8, 5, 0.72), rgba(1, 8, 5, 0.18) 48%, rgba(1, 8, 5, 0.78));
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(216, 183, 106, 0.28) 1px, transparent 1px);
  background-size: 115px 115px;
  opacity: 0.12;
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-glow,
.footer-bottom {
  display: none;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) minmax(280px, 1fr);
  grid-template-areas: "action contact brand";
  align-items: center;
  gap: clamp(34px, 5vw, 88px);
  min-height: 440px;
  margin: 0;
  direction: ltr;
}

.site-footer .footer-main > section:not(:last-child) {
  border: 0;
  padding: 0;
}

.footer-brand,
.footer-contact,
.footer-action {
  direction: rtl;
}

.footer-brand {
  grid-area: brand;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 26px;
  text-align: center;
  margin: 0;
}

.footer-logo-img {
  display: block;
  width: min(175px, 70%);
  max-width: none;
  max-height: 160px;
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.58));
}

.footer-brand h2,
.footer-contact h3,
.footer-action h3,
.footer-cta-card h3 {
  margin: 0;
  color: #d8b76a;
  font-weight: 800;
  line-height: 1.45;
}

.footer-brand h2 {
  font-size: clamp(19px, 1.55vw, 24px);
}

.footer-contact {
  grid-area: contact;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  margin: 0;
}

.footer-contact h3,
.footer-action > h3 {
  position: relative;
  padding-bottom: 13px;
  margin-bottom: 30px;
  font-size: clamp(17px, 1.35vw, 21px);
  text-align: center;
}

.footer-contact h3::after,
.footer-action > h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #d8b76a;
}

.footer-contact .footer-contact-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(280px, 100%);
  min-height: 68px;
  padding: 0 0 16px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  direction: ltr;
  transition: color 220ms ease, transform 220ms ease;
}

.footer-contact .footer-contact-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-contact .footer-contact-card:hover {
  color: #fff;
  transform: translateX(4px);
  background: transparent;
}

.footer-contact .footer-contact-card i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #d8b76a;
  font-size: 14px;
  border: 1px solid rgba(216, 183, 106, 0.34);
  border-radius: 10px;
  background: rgba(3, 6, 4, 0.2);
}

.footer-contact .footer-contact-card span {
  min-width: 0;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}

.footer-action {
  grid-area: action;
  display: grid;
  justify-items: center;
  align-content: center;
  margin: 0;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0 0 34px;
}

.footer-social-icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #d8b76a;
  text-decoration: none;
  border: 1px solid rgba(216, 183, 106, 0.44);
  border-radius: 50%;
  background: rgba(3, 6, 4, 0.18);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.footer-social-icons a:hover {
  color: #06100d;
  background: #d8b76a;
  transform: translateY(-3px);
}

.footer-social-icons i {
  font-size: 16px;
}

.footer-cta-card {
  position: relative;
  width: min(300px, 100%);
  padding: 30px 32px 28px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(4, 13, 9, 0.56);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-cta-card::after {
  content: "";
  position: absolute;
  top: -26px;
  right: -28px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(62, 94, 54, 0.34), rgba(62, 94, 54, 0));
  border-radius: 80% 0 80% 0;
  transform: rotate(10deg);
  pointer-events: none;
}

.footer-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #d8b76a;
  font-size: 18px;
  border-radius: 12px;
  background: rgba(216, 183, 106, 0.1);
}

.footer-cta-card h3 {
  font-size: 18px;
}

.footer-cta-card h3::after {
  display: none;
}

.footer-cta-card p {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.7;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  color: #06100d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
  border-radius: 8px;
  background: #d8b76a;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.footer-cta-button:hover {
  background: #e5c679;
  box-shadow: 0 12px 28px rgba(216, 183, 106, 0.22);
  transform: translateY(-2px);
}

.footer-cta-button i {
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-footer {
    min-height: auto;
    padding: 70px 18px 54px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "contact"
      "action";
    gap: 42px;
    min-height: auto;
  }

  .footer-brand,
  .footer-contact {
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(216, 183, 106, 0.14);
  }

  .footer-logo-img {
    width: min(150px, 56vw);
  }

  .footer-contact .footer-contact-card {
    width: min(330px, 100%);
  }
}

html,body{
  width:100%;
  min-height:100%;
  background:#030403;
  overflow-x:hidden;
  font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;
}

body {
  /* min-height removed, height is managed by scroll-space */
}



.hero-stage{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  height:100svh;
  height:100dvh;
  overflow:hidden;
  background:#030403;
  z-index:1;
}

#hero-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  background:#030403;
}

.story-layer{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}

.story-block{
  position:absolute;
  right:7vw;
  top:18vh;
  bottom:auto;
  max-width:760px;
  opacity:0;
  transform:translateY(44px);
  transition:
    opacity 1000ms cubic-bezier(.16,1,.3,1),
    transform 1000ms cubic-bezier(.16,1,.3,1);
  color:#fff8e8;
  text-shadow:
    0 6px 24px rgba(0,0,0,.75),
    0 18px 70px rgba(0,0,0,.65);
}

.story-block.active{
  opacity:1;
  transform:translateY(0);
}

.story-block h1,
.story-block h2{
  font-weight:800;
  letter-spacing:-1px;
  line-height:1.12;
}

.story-block h1{
  font-size:clamp(42px,7vw,92px);
}

.story-block h2{
  font-size:clamp(36px,6vw,78px);
}

.story-block p{
  margin-top:14px;
  font-size:clamp(22px,3vw,42px);
  font-weight:500;
  color:#f3d28a;
}

.stats-block{
  right:50%;
  bottom:9vh;
  transform:translate(50%,34px);
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:18px;
  width:min(900px,86vw);
}

.stats-block.active{
  transform:translate(50%,0);
}

.stat{
  padding:22px 18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  background:rgba(5,20,12,.34);
  backdrop-filter:blur(16px);
  text-align:center;
}

.stat strong{
  display:block;
  font-size:clamp(32px,5vw,58px);
  line-height:1;
  color:#f3d28a;
}

.stat span{
  display:block;
  margin-top:10px;
  font-size:clamp(14px,1.5vw,18px);
  color:#fff7e6;
}

.final-block ul{
  list-style:none;
  margin-top:26px;
  display:grid;
  gap:12px;
}

.final-block li{
  position:relative;
  padding:14px 18px;
  padding-right:38px;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  background:rgba(5,20,12,.42);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(14px);
  color:#fff7e6;
  font-size:clamp(15px,1.6vw,20px);
}

.final-block li::before{
  content:"";
  position:absolute;
  right:18px;
  top:50%;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#f3d28a;
  transform:translateY(-50%);
}

.scroll-space{
  position:relative;
  z-index:2;
  height:1000vh;
  pointer-events:none;
}

#loader{
  position:fixed;
  inset:0;
  z-index:999;
  background:#030403;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .45s ease;
}

#loader.hide{
  opacity:0;
  pointer-events:none;
}

.loader-ring{
  width:46px;
  height:46px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.14);
  border-top-color:#f3d28a;
  animation:spin .8s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

@media(max-width:768px){
  .story-block{
    right:24px;
    left:24px;
    bottom:10vh;
    max-width:none;
  }

  .stats-block{
    right:24px;
    left:24px;
    bottom:7vh;
    width:auto;
    grid-template-columns:repeat(2,1fr);
    transform:translateY(34px);
  }

  .stats-block.active{
    transform:translateY(0);
  }
}
/* Welcome center */
.welcome-block{
  left:50% !important;
  right:auto !important;
  top:50% !important;
  bottom:auto !important;
  width:max-content;
  max-width:92vw;
  text-align:center;
  white-space:nowrap;
  transform:translate(-50%, calc(-50% + 36px)) !important;
}

.welcome-block.active{
  transform:translate(-50%, -50%) !important;
}

.welcome-block h1{
  white-space:nowrap;
  font-size:clamp(38px,5.6vw,88px);
}

.welcome-block p{
  margin-top:14px;
  color:#d8b76a;
  font-size:clamp(17px,1.7vw,26px);
  font-weight:600;
  white-space:nowrap;
}

/* Scene 2 position */
.story-block[data-scene="1"]{
  top:auto;
  bottom:30vh;
  right:8vw;
}

/* Stats scene: بدل العواميد */
.stats-block{
  right:50% !important;
  left:auto !important;
  bottom:18vh !important;
  top:auto !important;
  width:min(920px,86vw);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  transform:translate(50%,36px) !important;
}

.stats-block.active{
  transform:translate(50%,0) !important;
}

.stat{
  width:160px;
  height:auto;
  min-height:96px;
  padding:18px 16px;
  border-radius:24px;
  background:rgba(20,24,14,.46);
  border:1px solid rgba(216,183,106,.26);
  backdrop-filter:blur(12px);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}

.stat strong{
  font-size:clamp(30px,3.2vw,48px);
  color:#d8b76a;
}

.stat span{
  margin-top:8px;
  font-size:clamp(14px,1.1vw,17px);
  color:#fff8e8;
}

/* Final scene higher and cleaner */
.final-block{
  top:14vh !important;
  bottom:auto !important;
  right:7vw;
}

.final-block li{
  background:rgba(20,24,14,.50);
  border-color:rgba(216,183,106,.24);
}

/* Mobile */
@media(max-width:768px){
  .welcome-block{
    width:92vw;
  }

  .welcome-block h1{
    font-size:clamp(30px,9vw,52px);
  }

  .welcome-block p{
    font-size:clamp(14px,4vw,20px);
  }

  .story-block[data-scene="1"]{
    right:24px;
    left:24px;
    bottom:18vh;
  }

  .stats-block{
    right:24px !important;
    left:24px !important;
    width:auto;
    bottom:12vh !important;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    transform:translateY(36px) !important;
  }

  .stats-block.active{
    transform:translateY(0) !important;
  }

  .stat{
    width:auto;
    min-height:88px;
  }
}
.stats-block{
  right:50% !important;
  left:auto !important;
  top:auto !important;
  bottom:16vh !important;

  width:min(760px,86vw) !important;
  max-width:760px !important;

  display:flex !important;
  flex-direction:row !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;

  transform:translate(50%,36px) !important;
}

.stats-block.active{
  transform:translate(50%,0) !important;
}

.stats-block .stat{
  width:150px !important;
  height:96px !important;
  min-height:96px !important;
  max-height:96px !important;

  padding:14px 12px !important;
  border-radius:20px !important;

  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;

  background:rgba(24,26,16,.52) !important;
  border:1px solid rgba(216,183,106,.28) !important;
  backdrop-filter:blur(10px) !important;
  box-shadow:0 18px 45px rgba(0,0,0,.25) !important;
}

.stats-block .stat strong{
  display:block !important;
  font-size:38px !important;
  line-height:1 !important;
  color:#d8b76a !important;
}

.stats-block .stat span{
  display:block !important;
  margin-top:8px !important;
  font-size:15px !important;
  line-height:1.2 !important;
  color:#fff8e8 !important;
}

/* --- NEW PREMIUM STATS OVERRIDE --- */
#stats-container {
  position: absolute;
  left: 50% !important;
  right: auto !important;
  bottom: 8vh !important;
  top: auto !important;
  transform: translate(-50%, 40px) !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  width: max-content !important;
  max-width: 90vw !important;
  opacity: 0;
  transition: opacity 1000ms ease, transform 1000ms ease;
  pointer-events: none;
}

#stats-container.active {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

#stats-container .stat-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 240px !important;
  height: 140px !important;
  background: rgba(20, 20, 20, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  padding: 10px !important;
  margin: 0 !important;
}

#stats-container .stat-card strong {
  font-size: 50px !important;
  font-weight: 700 !important;
  color: #d4af37 !important;
  line-height: 1.1 !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2) !important;
  display: block !important;
}

#stats-container .stat-card span {
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  opacity: 0.9 !important;
  display: block !important;
}

@media (max-width: 900px) {
  #stats-container {
    flex-wrap: nowrap !important;
    width: 96vw !important;
    gap: 8px !important;
  }
  #stats-container .stat-card {
    width: 25% !important;
    height: auto !important;
    min-height: 90px !important;
    padding: 15px 5px !important;
    border-radius: 16px !important;
  }
  #stats-container .stat-card strong {
    font-size: clamp(20px, 4vw, 32px) !important;
  }
  #stats-container .stat-card span {
    font-size: clamp(10px, 2.5vw, 14px) !important;
    text-align: center !important;
  }
}

/* --- PREMIUM PILL NAVBAR --- */
.premium-navbar {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  /* More Glassy Look */
  background: rgba(20, 20, 20, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.premium-navbar:hover {
  background: rgba(25, 25, 25, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.premium-navbar .nav-item {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.premium-navbar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.premium-navbar .nav-item.active {
  color: #000;
  background: #d8b76a; /* Golden active state */
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(216, 183, 106, 0.3);
}

/* Mobile Adjustments for Navbar */
@media (max-width: 600px) {
  .premium-navbar {
    top: 20px;
    padding: 6px 8px;
    gap: 4px;
    width: 94vw; /* Slightly wider to fit 4 items */
    justify-content: space-between;
  }
  .premium-navbar .nav-item {
    font-size: 12px; /* Smaller font */
    padding: 8px 10px; /* Tighter padding */
    flex: 1;
    text-align: center;
  }
}

/* --- PREMIUM ACTION BUTTONS --- */
.final-actions {
  display: flex;
  gap: 20px;
  margin-top: 36px;
}

.premium-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  text-decoration: none;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(20,24,14,0.9), rgba(30,40,25,0.95));
  border: 1px solid rgba(216,183,106,0.3);
  color: #fff7e6;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transform: scale(1);
}

.premium-btn .btn-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.premium-btn .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216,183,106,0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
  z-index: 1;
}

.premium-btn:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(216,183,106,0.8);
  box-shadow: 0 15px 35px rgba(216,183,106,0.15), inset 0 1px 1px rgba(255,255,255,0.2);
  background: linear-gradient(135deg, rgba(30,40,25,0.95), rgba(40,55,30,0.98));
}

.premium-btn:hover .btn-glow {
  left: 200%;
}

.premium-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* --- GOLDEN VERSION FOR نظام ريآن --- */
.premium-btn.gold-btn {
  background: linear-gradient(135deg, #d8b76a, #b38b3c);
  color: #000;
  border: 1px solid #ffeba5;
  box-shadow: 0 8px 32px rgba(216,183,106,0.3);
}

.premium-btn.gold-btn .btn-text {
  text-shadow: none;
}

.premium-btn.gold-btn .btn-glow {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.premium-btn.gold-btn:hover {
  box-shadow: 0 15px 40px rgba(216,183,106,0.5);
  background: linear-gradient(135deg, #ffdc87, #cfa049);
}

/* --- FLOATING PHONE BUTTON --- */
.farm-monitor-caption {
  position: absolute;
  left: 50%;
  top: 14vh;
  z-index: 9;
  width: min(500px, 44vw);
  padding: 16px 20px 18px;
  color: #f7f3e8;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 22px) scale(0.96);
  transition:
    opacity 850ms cubic-bezier(.16,1,.3,1),
    transform 850ms cubic-bezier(.16,1,.3,1);
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.78),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(247, 243, 232, 0.18);
}

.farm-monitor-caption.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.farm-monitor-caption span {
  display: block;
  color: #f6d978;
  font-size: clamp(17px, 1.7vw, 25px);
  font-weight: 800;
  line-height: 1.25;
}

.farm-monitor-caption strong {
  display: block;
  margin-top: 4px;
  color: #fffdf5;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  line-height: 1.12;
}

.farm-monitor-caption p {
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 7px 16px 9px;
  border: 1px solid rgba(216, 183, 90, 0.28);
  border-radius: 999px;
  background: rgba(6, 17, 11, 0.48);
  color: rgba(247, 243, 232, 0.92);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.45;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.floating-phone-btn {
  position: absolute;
  left: 45vw !important;
  right: auto !important;
  top: 40vh !important;
  bottom: auto !important;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(.16,1,.3,1);
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Continuous floating animation */
.floating-phone-btn.active {
  pointer-events: auto;
  animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards, subtleFloat 4s ease-in-out infinite 1s;
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media(max-width: 768px) {
  .farm-monitor-caption {
    left: 50% !important;
    top: 12.5vh !important;
    width: min(330px, calc(100vw - 34px));
    padding: 0;
    transform: translate(-50%, 20px) scale(0.96);
  }

  .farm-monitor-caption.active {
    transform: translate(-50%, 0) scale(1);
  }

  .farm-monitor-caption span {
    font-size: clamp(15px, 4.2vw, 19px);
  }

  .farm-monitor-caption strong {
    margin-top: 3px;
    font-size: clamp(25px, 7.5vw, 36px);
    line-height: 1.12;
  }

  .farm-monitor-caption p {
    margin-top: 9px;
    padding: 7px 14px 8px;
    font-size: clamp(11px, 3.1vw, 13px);
    white-space: nowrap;
  }

  .floating-phone-btn {
    left: 50vw !important;
    transform: translateX(-50%) !important;
    top: 35vh !important;
  }
  
  .floating-phone-btn.active {
    animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards, subtleFloatMobile 4s ease-in-out infinite 1s;
  }

  @keyframes subtleFloatMobile {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
  }

  .final-actions {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    width: 100%;
  }
  
  .premium-btn {
    width: 100%;
  }
}

/* =========================================
   PREMIUM SITE FOOTER
   ========================================= */
.site-footer {
  position: relative;
  background-image: url('../assets/images/footer_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #fff8e8;
  padding: 28px 5% 14px;
  margin-top: 0;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 10;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 11, 0.7) 0%, rgba(12, 16, 11, 0.95) 100%);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  text-align: center;
}

@media (min-width: 769px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    max-width: 1200px;
    margin: 0 auto 30px;
  }
  
  .footer-logo {
    flex: 1;
    align-items: flex-start;
  }
  
  .footer-contact {
    flex: 1;
    align-items: center;
  }
  
  .footer-social {
    flex: 1;
    align-items: flex-end;
  }
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  max-width: 350px;
  width: 100%;
  object-fit: contain;
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

.footer-logo h2 {
  color: var(--beige, #d8b76a);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 248, 232, 0.85);
  text-decoration: none;
  font-size: 18px; /* Enlarged font size for numbers */
  font-weight: 500;
  transition: color 0.3s ease;
  direction: ltr;
}

.footer-contact a:hover {
  color: var(--beige, #d8b76a);
}

.footer-contact a i {
  color: var(--beige, #d8b76a);
  font-size: 24px; /* Enlarged icon */
  width: 28px;
  text-align: center;
}

.footer-social {
  display: flex;
  flex-direction: column; /* Changed to vertical */
  gap: 12px;
  justify-content: center;
  margin-top: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 220px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(216, 183, 106, 0.2);
  color: var(--beige, #d8b76a);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a i {
  font-size: 24px; /* Enlarged social icons */
  width: 30px;
  text-align: center;
}

.footer-social a span {
  display: inline-block;
  color: rgba(255, 248, 232, 0.9);
  font-size: 16px;
  font-weight: 500;
}

.footer-social a:hover {
  background: var(--beige, #d8b76a);
  color: #12180e;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(216, 183, 106, 0.15);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.copyright {
  text-align: center;
}

.footer-mini-logo {
  font-size: 18px;
  margin-bottom: 2px;
  opacity: 0.8;
}

.copyright .rights {
  color: rgba(255, 248, 232, 0.7);
  font-size: 13px;
  margin: 0;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  
  .footer-logo {
    align-items: flex-start;
  }
  
  .footer-contact {
    align-items: flex-start;
  }
  
  .footer-contact a {
    direction: rtl; /* Switch back to RTL for desktop layout if needed */
  }
}

@media (max-width: 768px) {
  .site-footer {
    border-radius: 28px 28px 0 0;
    padding: 22px 5% 12px;
  }
  
  .footer-logo-img {
    max-width: 70px;
  }
  
  .footer-social a {
    width: 200px;
    padding: 8px 16px;
    font-size: 16px;
  }
  .footer-social a i {
    font-size: 20px;
  }
}

/* --- MOBILE JOURNEY / PHONE-FIRST LAYOUT --- */
@media (max-width: 768px), (orientation: portrait) {
  .premium-navbar,
  .story-block,
  #stats-container .stat-card,
  .premium-btn,
  .footer-cta-card {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  .premium-navbar {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  }

  .hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(3, 4, 3, 0.22) 0%, rgba(3, 4, 3, 0.02) 34%, rgba(3, 4, 3, 0.58) 100%),
      radial-gradient(ellipse at 50% 12%, rgba(216, 183, 106, 0.18), transparent 42%);
  }

  #hero-canvas {
    z-index: 1;
  }

  .story-block {
    z-index: 4;
    right: 18px !important;
    left: 18px !important;
    top: auto !important;
    bottom: 10vh !important;
    width: auto;
    max-width: none;
    padding: 18px 18px 20px;
    text-align: center;
    border: 1px solid rgba(216, 183, 106, 0.2);
    border-radius: 22px;
    background: rgba(5, 13, 9, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateY(34px) !important;
  }

  .story-block.active {
    transform: translateY(0) !important;
  }

  .story-block h1,
  .story-block h2 {
    letter-spacing: 0;
    font-size: clamp(30px, 9vw, 52px);
    line-height: 1.18;
  }

  .story-block p {
    margin-top: 10px;
    font-size: clamp(15px, 4.2vw, 22px);
    line-height: 1.55;
  }

  .welcome-block {
    right: 18px !important;
    left: 18px !important;
    top: 18vh !important;
    bottom: auto !important;
    width: auto;
    max-width: none;
    white-space: normal;
    transform: translateY(34px) !important;
  }

  .welcome-block.active {
    transform: translateY(0) !important;
  }

  .welcome-block h1,
  .welcome-block p {
    white-space: normal;
  }

  .story-block[data-scene="1"] {
    bottom: 12vh !important;
  }

  #stats-container {
    z-index: 4;
    top: 12vh !important;
    right: 16px !important;
    left: 16px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(34px) !important;
  }

  #stats-container.active {
    transform: translateY(0) !important;
  }

  #stats-container .stat-card {
    width: auto !important;
    min-height: 104px !important;
    height: auto !important;
    padding: 16px 10px !important;
    border-radius: 18px !important;
    background: rgba(5, 13, 9, 0.42) !important;
    border: 1px solid rgba(216, 183, 106, 0.24) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  #stats-container .stat-card strong {
    font-size: clamp(28px, 9vw, 42px) !important;
  }

  #stats-container .stat-card span {
    margin-top: 6px !important;
    font-size: clamp(12px, 3.5vw, 15px) !important;
    line-height: 1.35 !important;
  }

  .final-block {
    top: 10vh !important;
    bottom: auto !important;
    right: 18px !important;
    left: 18px !important;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .final-block h2 {
    display: inline-block;
    padding: 12px 18px 6px;
    color: #fff8e8;
    font-size: clamp(36px, 10vw, 58px);
    line-height: 1.08;
    text-align: center;
    text-shadow:
      0 5px 18px rgba(0, 0, 0, 0.7),
      0 16px 42px rgba(0, 0, 0, 0.48);
  }

  .final-block p {
    width: max-content;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 7px 18px 9px;
    color: #f3d28a;
    font-size: clamp(18px, 5vw, 27px);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    border: 1px solid rgba(216, 183, 106, 0.22);
    border-radius: 999px;
    background: rgba(5, 13, 9, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .final-block ul {
    display: none;
  }

  .final-block li {
    width: 100%;
    padding: 10px 16px;
    padding-right: 34px;
    font-size: clamp(12px, 3.3vw, 15px);
    line-height: 1.45;
    text-align: right;
    background: rgba(5, 13, 9, 0.4);
  }

  .final-actions {
    display: none;
  }

  .premium-btn {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 15px;
  }

  .floating-phone-btn {
    z-index: 5;
    left: auto !important;
    right: clamp(18px, 6vw, 34px) !important;
    top: 52vh !important;
    bottom: auto !important;
    transform: none !important;
  }

  .farm-monitor-caption {
    z-index: 5;
    top: 13.5vh !important;
    right: 18px !important;
    left: 18px !important;
    width: auto;
    text-align: center;
    transform: translateY(20px) scale(0.96);
  }

  .farm-monitor-caption.active {
    transform: translateY(0) scale(1);
  }

  .farm-monitor-caption span {
    font-size: clamp(14px, 4vw, 18px);
  }

  .farm-monitor-caption strong {
    margin-top: 3px;
    font-size: clamp(24px, 7.2vw, 35px);
    line-height: 1.12;
  }

  .farm-monitor-caption p {
    margin-top: 8px;
    padding: 7px 13px 8px;
    font-size: clamp(11px, 3vw, 13px);
    white-space: nowrap;
  }

  .floating-phone-btn .premium-btn {
    min-height: 40px;
    width: auto;
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 8px 22px rgba(216, 183, 106, 0.22);
  }

  .floating-phone-btn.active {
    animation: phoneCtaReveal 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards, phoneCtaFloat 3.4s ease-in-out infinite 900ms;
  }

  .floating-phone-btn.active .premium-btn {
    animation: phoneCtaPulse 3.2s ease-in-out infinite 1.1s;
  }

  .floating-phone-btn.active .premium-btn::after {
    display: none;
  }

  @keyframes phoneCtaReveal {
    0% {
      opacity: 0;
      transform: translate(18px, -18px) scale(0.78);
      filter: blur(5px);
    }
    70% {
      opacity: 1;
      transform: translate(0, 4px) scale(1.06);
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes phoneCtaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  @keyframes phoneCtaPulse {
    0%, 100% {
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 8px 22px rgba(216, 183, 106, 0.22);
    }
    50% {
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 8px rgba(216, 183, 106, 0.14), 0 12px 32px rgba(216, 183, 106, 0.34);
    }
  }

  @keyframes phoneCtaSheen {
    0%, 42% { transform: translateX(120%) skewX(-18deg); opacity: 0; }
    52% { opacity: 0.75; }
    70%, 100% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  }

  .scroll-space {
    height: 1180vh;
  }
}
