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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d8d3c8;
  font-family: 'Nunito', sans-serif;
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #d8d3c8;
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.layer {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.layer img {
  display: block;
  width: 100%;
  height: auto;
}

.sol {
  animation: solFloat 6s ease-in-out infinite;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.sol img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 30vh;
  object-fit: contain;
}

@keyframes solFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.tree-left {
  left: 0.3%;
  top: 24%;
  width: 27%;
  z-index: 6;
  transform-origin: 50% 100%;
  animation: swayTreeLeft 7s ease-in-out infinite;
}

.tree-center {
  left: 68%;
  top: 10%;
  width: 18.5%;
  z-index: 6;
  transform-origin: 50% 100%;
  animation: swayTreeCenter 8s ease-in-out infinite;
}

.branch-left {
  left: -1.5%;
  top: 40%;
  width: 13.5%;
  z-index: 8;
  transform-origin: 100% 50%;
  animation: swayBranchLeft 5.8s ease-in-out infinite;
}

.branch-right-1 {
  right: 27%;
  top: 52%;
  width: 13.5%;
  z-index: 8;
  transform-origin: 0% 50%;
  animation: swayBranchRight1 5.5s ease-in-out infinite;
}

.branch-right-2 {
  right: -1%;
  top: 50%;
  width: 13.5%;
  z-index: 9;
  transform-origin: 0% 50%;
  animation: swayBranchRight2 6.2s ease-in-out infinite;
}

.sun {
  left: 28%;
  top: 3%;
  width: 7.3%;
  z-index: 7;
  transform-origin: 50% 50%;
  animation: spinSun 18s linear infinite, floatSun 6s ease-in-out infinite;
}

.jaguar {
  left: 65.6%;
  top: 33.8%;
  width: 24.8%;
  z-index: 10;
  transform-origin: 58% 38%;
  animation: rockJaguar 4.8s ease-in-out infinite;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 12%, rgba(255, 213, 77, 0.10), transparent 16%),
    linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(0,0,0,0.03));
}

.content {
  position: absolute;
  left: 42%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 32%);
  text-align: center;
  z-index: 30;
}

.logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.logo {
  display: block;
  width: clamp(160px, 16vw, 220px);
  height: auto;
  opacity: 0;
  margin: 0 0 18px 0;
  transform: translateY(24px);
  transition: all 1.2s ease;
}

.logo.show {
  opacity: 1;
  transform: translateY(0);
}

.text-stage {
  position: relative;
  min-height: clamp(28px, 1.8vw, 34px);
}

.text-line {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  color: #1f1f1f;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.9s ease;
  letter-spacing: -0.01em;
}

.text-line.show {
  opacity: 1;
  transform: translateY(0);
}

.text-line.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.text-subscribe {
  margin-bottom: 22px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  color: #1f1f1f;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.text-subscribe.show {
  opacity: 1;
}

@keyframes swayTreeLeft {
  0%   { transform: rotate(-1.2deg) translateY(0); }
  25%  { transform: rotate(1.3deg) translateY(-0.2%); }
  50%  { transform: rotate(-0.7deg) translateY(0.15%); }
  75%  { transform: rotate(1deg) translateY(-0.15%); }
  100% { transform: rotate(-1.2deg) translateY(0); }
}

@keyframes swayTreeCenter {
  0%   { transform: rotate(0.8deg) translateY(0); }
  25%  { transform: rotate(-1deg) translateY(-0.15%); }
  50%  { transform: rotate(0.5deg) translateY(0.1%); }
  75%  { transform: rotate(-0.8deg) translateY(-0.1%); }
  100% { transform: rotate(0.8deg) translateY(0); }
}

@keyframes swayBranchLeft {
  0%   { transform: rotate(-4deg) translateX(0); }
  25%  { transform: rotate(2deg) translateX(0.3%); }
  50%  { transform: rotate(-1deg) translateX(-0.2%); }
  75%  { transform: rotate(3deg) translateX(0.2%); }
  100% { transform: rotate(-4deg) translateX(0); }
}

@keyframes swayBranchRight1 {
  0%   { transform: rotate(3.5deg) translateX(0); }
  25%  { transform: rotate(-2deg) translateX(-0.25%); }
  50%  { transform: rotate(1.5deg) translateX(0.1%); }
  75%  { transform: rotate(-2.5deg) translateX(-0.15%); }
  100% { transform: rotate(3.5deg) translateX(0); }
}

@keyframes swayBranchRight2 {
  0%   { transform: rotate(4deg) translateX(0); }
  25%  { transform: rotate(-1.5deg) translateX(-0.2%); }
  50%  { transform: rotate(1deg) translateX(0.1%); }
  75%  { transform: rotate(-3deg) translateX(-0.15%); }
  100% { transform: rotate(4deg) translateX(0); }
}

@keyframes spinSun {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes floatSun {
  0%   { margin-top: 0; }
  50%  { margin-top: 0.4vh; }
  100% { margin-top: 0; }
}

@keyframes rockJaguar {
  0%   { transform: rotate(-2deg) translateY(0); }
  20%  { transform: rotate(0.8deg) translateY(0.3%); }
  50%  { transform: rotate(2.2deg) translateY(0.8%); }
  80%  { transform: rotate(-0.6deg) translateY(0.25%); }
  100% { transform: rotate(-2deg) translateY(0); }
}

.subscribe-form {
  width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  transition: all 1.2s ease;
}

.subscribe-form.show {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  margin-bottom: 14px;
}

.email-row {
  display: flex;
  gap: 12px;
}

.email-row input[type="email"] {
  flex: 1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 6px;
}

.subscribe-form input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  background: #ffffff;
  border: 1px solid #cfc9bd;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.subscribe-form input::placeholder {
  color: #b7b1a5;
  font-weight: 400;
}

.subscribe-form input:focus {
  border-color: #1f1f1f;
}

.subscribe-form input.invalid {
  border-color: #c0392b;
}

.error-message {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: #c0392b;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

.error-message.show {
  display: block;
}

.submit-btn {
  flex-shrink: 0;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 13px 22px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #333333;
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.legal-text {
  font-size: 10.5px;
  line-height: 1.5;
  color: #8a8378;
  font-weight: 400;
  font-family: 'Nunito', sans-serif;
}

.legal-text a {
  color: #8a8378;
  text-decoration: underline;
}

.success-message {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
  font-family: 'Nunito', sans-serif;
}

.success-message.show {
  display: block;
}

.site-footer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(42, 42, 42, 0.45);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.legal-link::before {
  content: "\00a7";
  font-size: 14px;
  font-weight: 900;
}

.legal-link:hover {
  color: #2a2a2a;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(42, 42, 42, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  padding: 0;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  font-family: 'Nunito', sans-serif;
  color: #2a2a2a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px 0;
}

.modal-header .modal-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  color: #2a2a2a;
  margin: 0;
  letter-spacing: -0.01em;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: #e63946;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e63946;
  color: #fff;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px 32px;
}

.modal-body {
  scrollbar-width: thin;
  scrollbar-color: #e63946 transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #e63946;
  border-radius: 0;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #c1121f;
}

.modal-body h3 {
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 6px;
  color: #2a2a2a;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  font-size: clamp(13px, 0.95vw, 14px);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 10px;
  color: rgba(42, 42, 42, 0.65);
}

.modal-body a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.modal-body a:hover {
  color: #1557b0;
}

.legal-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(42, 42, 42, 0.08);
  font-size: clamp(11px, 0.85vw, 12px) !important;
  color: rgba(42, 42, 42, 0.35) !important;
  text-align: center;
}

@media (max-width: 1200px) {
  .tree-left   { width: 30%; left: -1%; }
  .tree-center { width: 21%; left: 43.8%; }
  .jaguar      { width: 28%; left: 51.7%; top: 35%; }
  .sun         { width: 8.2%; left: 63%; }
  .content     { left: 47%; width: min(42vw, 420px); }
}

@media (max-width: 900px) {
  .scene {
    height: 100dvh;
    background: #dbd3c4;
    overflow-y: auto;
  }

  .bg { display: none; }

  .content {
    left: 50%;
    top: 3%;
    width: min(90vw, 420px);
    transform: translateX(-50%);
    text-align: center;
  }

  .logo-wrap {
    display: flex;
    justify-content: center;
  }

  .logo {
    width: clamp(120px, 36vw, 200px);
    margin-bottom: 14px;
  }

  .text-stage {
    min-height: 22px;
  }

  .text-line,
  .text-subscribe {
    font-size: 17px;
    line-height: 1.3;
  }

  .text-subscribe {
    margin-bottom: 18px;
  }

  .form-group label {
    text-align: left;
  }

  .email-row {
    flex-direction: column;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
  }

  .legal-text {
    text-align: left;
  }

  .tree-left {
    top: 62%;
    width: 57%;
    left: -7%;
    z-index: -5;
  }

  .tree-center {
    top: 64%;
    width: 34%;
    left: 54%;
  }

  .branch-left {
    width: 24%;
    left: 13%;
    top: 88%;
  }

  .branch-right-1 {
    top: 86%;
    width: 24%;
    right: 6%;
  }

  .branch-right-2 {
    top: 90%;
    width: 24%;
    right: -5%;
  }

  .sun {
    display: none;
  }

  .jaguar {
    top: 85%;
    width: 52%;
    left: 20%;
    z-index: -1;
  }

  .sol { bottom: 0; width: 100%; z-index: 50; }
  .sol img { width: 100%; height: auto; display: block; }
}

.grecaptcha-badge {
    display: none !important;
}
