/* ── Webapp vs App Section ── */

.webapp-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

.webapp-left {
  background: #050505;
  border-top-right-radius: 40px;
  padding: 40px 40px 0 0; /* Space on right to match the hollow shape, flush bottom */
}

/* Product photo sitting inside the light-grey tile (.webapp-anim-box), in place of the old animation */
.webapp-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 0;
}

.webapp-right {
  background: #111; /* removed shine */
  border-radius: 0 0 40px 40px; /* Flat top left, flat top right */
  padding: 80px 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inverted-corner-webapp {
  position: absolute;
  top: 0; left: -40px;
  width: 40px; height: 40px;
  background-color: transparent;
  background-image: radial-gradient(circle at bottom left, transparent 40px, #111 40.5px);
}

.webapp-title {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
  white-space: nowrap;
}

.text-primary {
  color: var(--primary) !important;
}

.webapp-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 60px;
  max-width: 600px;
}

.webapp-features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.w-feature {
  display: flex;
  gap: 24px;
}

.w-icon {
  width: 56px;
  height: 56px;
  background: rgba(249, 77, 53, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.w-text h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px 0;
}

.w-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin: 0;
}

/* ── Animated Mockup Box ── */
.webapp-anim-box {
  background: #111; /* removed shine */
  border-radius: 40px;
  height: 100%;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.mockup-window {
  width: 80%;
  height: 70%;
  background: #0a0a0a; /* removed shine */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: rotateY(15deg) rotateX(5deg);
  animation: float-desktop 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.mockup-sidebar {
  width: 25%;
  background: #111; /* removed shine */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-logo {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  margin-bottom: 20px;
}

.mockup-nav {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  width: 100%;
}
.mockup-nav.active {
  background: rgba(249, 77, 53, 0.3);
  width: 80%;
}

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}

.mockup-search {
  width: 40%;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.mockup-avatar {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.mockup-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.mockup-card {
  background: #111; /* removed shine */
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slide-up-card 4s ease-in-out infinite alternate;
}

.m-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}
.m-line.short { width: 40%; }
.m-line.medium { width: 70%; }
.m-line.long { width: 100%; }

.m-card-2 { animation-delay: 1s; }
.m-card-3 { animation-delay: 2s; }

/* Mobile Floating */
.mockup-mobile {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 100px;
  height: 200px;
  background: #0a0a0a; /* removed shine */
  border: 2px solid #333;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 20px rgba(249, 77, 53, 0.2);
  transform: rotateY(-15deg) translateZ(50px);
  animation: float-mobile 7s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  gap: 10px;
}

.mobile-notch {
  width: 40px;
  height: 6px;
  background: #000;
  border-radius: 0 0 6px 6px;
  position: absolute;
  top: 0;
}

.mobile-header {
  width: 80%;
  height: 20px;
  background: rgba(249, 77, 53, 0.2);
  border-radius: 4px;
  margin-top: 10px;
}

.mobile-card {
  width: 80%;
  height: 40px;
  background: #111; /* removed shine */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: pulse-glow 3s infinite alternate;
}
.m-card-delay { animation-delay: 1.5s; }

@keyframes float-desktop {
  0% { transform: rotateY(15deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(15deg) rotateX(5deg) translateY(-15px); }
  100% { transform: rotateY(15deg) rotateX(5deg) translateY(0); }
}

@keyframes float-mobile {
  0% { transform: rotateY(-15deg) translateZ(50px) translateY(0); }
  50% { transform: rotateY(-15deg) translateZ(50px) translateY(20px); }
  100% { transform: rotateY(-15deg) translateZ(50px) translateY(0); }
}

@keyframes slide-up-card {
  0% { transform: translateY(5px); opacity: 0.8; border-color: rgba(255, 255, 255, 0.02); }
  100% { transform: translateY(-5px); opacity: 1; border-color: rgba(249, 77, 53, 0.3); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 rgba(249, 77, 53, 0); }
  100% { box-shadow: 0 0 10px rgba(249, 77, 53, 0.2); }
}

@media (max-width: 1024px) {
  .webapp-container {
    grid-template-columns: 1fr;
    background: transparent;
    padding: 0 20px !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .pricing-section {
    background: #111 !important;
    border-radius: 24px !important;
    padding: 40px 20px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-bottom: 24px !important;
    width: auto !important;
  }
  .pricing-card {
    border-radius: 24px !important;
    background: linear-gradient(160deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 24px !important;
  }
  .webapp-left {
    padding: 0 !important;
    margin-bottom: 0 !important;
    background: #111 !important;
    position: relative !important;
    border-radius: 24px 24px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-bottom: none !important;
  }
  .webapp-left::before {
    display: none !important;
  }
  .webapp-anim-box {
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    background: transparent !important;
    padding: 24px !important;
    min-height: auto !important;
  }
  .webapp-right {
    border-radius: 0 0 24px 24px !important;
    padding: 40px 20px !important;
    position: relative !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-top: none !important;
    background: #111 !important;
  }
  .webapp-right::before {
    display: none !important;
  }
  .inverted-corner-webapp {
    display: none !important;
  }
}





/* --- Premium Animated Browser Mockup --- */
.premium-monitor {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
  padding: 14px;
  box-shadow: 
    0 50px 100px -20px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.premium-monitor::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  border-radius: 20px 20px 0 0;
}

.p-screen {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  border: 1px solid #0a0a0a;
}

.p-browser-header {
  height: 44px;
  background: #111;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.p-dots {
  display: flex;
  gap: 8px;
  position: absolute;
}

.p-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s ease;
}

.premium-monitor:hover .p-dots span:nth-child(1) { background: #FF5F56; }
.premium-monitor:hover .p-dots span:nth-child(2) { background: #FFBD2E; }
.premium-monitor:hover .p-dots span:nth-child(3) { background: #27C93F; }

.p-urlbar {
  background: #1a1a1a;
  border-radius: 6px;
  height: 26px;
  width: 50%;
  max-width: 250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.p-url-text {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-primary, sans-serif); font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid transparent;
  width: 0;
  display: inline-block;
  animation: pTypingURL 12s infinite;
}

.p-loader {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--primary);
  width: 0;
  box-shadow: 0 0 10px var(--primary);
  animation: pLoadingBar 12s infinite;
}

.p-body {
  position: relative;
  background: #050505;
  aspect-ratio: 2557 / 1320;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-logo-glow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(20px);
  opacity: 0.2;
  animation: pPulseGlow 12s infinite;
}

.p-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: pFadeInApp 12s infinite;
}

/* Animations */
@keyframes pTypingURL {
  0%, 10% { width: 0; border-right-color: rgba(255,255,255,0.7); animation-timing-function: steps(24, end); }
  25% { width: 24ch; border-right-color: rgba(255,255,255,0.7); animation-timing-function: step-end; }
  28%, 85% { width: 24ch; border-right-color: transparent; }
  90%, 100% { width: 0; border-right-color: transparent; }
}

@keyframes pLoadingBar {
  0%, 25% { width: 0; opacity: 0; }
  26% { width: 0; opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  32% { width: 100%; opacity: 1; }
  34%, 100% { width: 100%; opacity: 0; }
}

@keyframes pFadeInApp {
  0%, 30% { opacity: 0; }
  34%, 85% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@keyframes pPulseGlow {
  0%, 20% { opacity: 0; transform: scale(0.5); }
  25%, 32% { opacity: 0.5; transform: scale(1.5); }
  34%, 100% { opacity: 0; transform: scale(1); }
}

/* Monitor Stand */
.monitor-stand-neck {
  width: 80px;
  height: 40px;
  background: linear-gradient(180deg, #181818 0%, #0f0f0f 100%);
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 5px 15px rgba(0,0,0,0.8);
  position: relative;
  z-index: 1;
}

.monitor-stand-base {
  width: 250px;
  height: 8px;
  background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
  border-radius: 4px 4px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .monitor-stand-neck { width: 60px; height: 30px; }
  .monitor-stand-base { width: 180px; height: 6px; }
}


/* Premium Phone Mockup */
.premium-phone {
  position: absolute;
  bottom: -20px;
  right: -40px;
  width: 170px;
  height: 340px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 24px;
  padding: 6px;
  box-shadow: 
    -20px 20px 40px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.3),
    inset 0 -1px 1px rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.ph-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
  z-index: 20;
}

.ph-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
  border: 1px solid #0a0a0a;
  position: relative;
  display: flex;
  flex-direction: column;
}

.ph-browser-top {
  height: 40px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.ph-urlbar {
  background: #1a1a1a;
  border-radius: 8px;
  height: 18px;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.02);
}

.ph-url-text {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-primary, sans-serif); font-weight: 600;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid transparent;
  width: 0;
  display: inline-block;
  animation: phTypingURL 12s infinite;
}

.ph-loader {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--primary);
  width: 0;
  box-shadow: 0 0 5px var(--primary);
  animation: pLoadingBar 12s infinite; 
}

.ph-body {
  flex: 1;
  position: relative;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ph-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top; 
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: pFadeInApp 12s infinite; 
}

@keyframes phTypingURL {
  0%, 10% { width: 0; border-right-color: rgba(255,255,255,0.7); animation-timing-function: steps(12, end); }
  25% { width: 12ch; border-right-color: rgba(255,255,255,0.7); animation-timing-function: step-end; }
  28%, 85% { width: 12ch; border-right-color: transparent; }
  90%, 100% { width: 0; border-right-color: transparent; }
}

@media (max-width: 768px) {
  .premium-phone {
    width: 120px;
    height: 240px;
    right: 10px;
    bottom: 10px;
    padding: 4px;
    border-radius: 16px;
  }
  .ph-screen { border-radius: 12px; }
  .ph-notch { width: 40px; height: 8px; border-radius: 0 0 6px 6px; top: 4px; }
  .ph-browser-top { height: 28px; padding-top: 6px; }
  .ph-urlbar { height: 14px; }
  .ph-url-text { font-size: 6px; }
}


/* --- 3D Isometric Tilt Redesign --- */
.mockup-wrapper {
  transform: perspective(2500px) rotateX(6deg) rotateY(12deg) rotateZ(-2deg) scale(0.95);
  transform-style: preserve-3d;
  filter: drop-shadow(-20px 30px 50px rgba(0,0,0,0.5));
}

.premium-monitor {
  transform: translateZ(0);
  box-shadow: 
    -1px 1px 0 #555,
    -2px 2px 0 #444,
    -3px 3px 0 #333,
    -4px 4px 0 #222,
    -5px 5px 0 #111,
    -6px 6px 0 #000,
    -10px 20px 40px rgba(0,0,0,0.6), 
    inset 0 1px 1px rgba(255,255,255,0.15), 
    inset 0 0 20px rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
}

.premium-phone {
  transform: translateZ(80px) translateY(10px) translateX(10px);
  box-shadow: 
    -1px 1px 0 #555,
    -2px 2px 0 #444,
    -3px 3px 0 #333,
    -4px 4px 0 #222,
    -15px 25px 45px rgba(0,0,0,0.8), 
    inset 0 1px 1px rgba(255,255,255,0.3), 
    inset 0 0 15px rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Modern Mobile Safari Floating Bottom Bar */
.ph-browser-bottom {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ph-browser-bottom .ph-urlbar {
  background: rgba(35, 35, 35, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 12px;
  width: 70%;
  display: flex;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.ph-browser-bottom .ph-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  width: 0%;
  box-shadow: 0 0 8px var(--primary);
}

/* Mobile overrides for webapp mockup section */
@media (max-width: 1024px) {
  .webapp-photo {
    max-width: 100% !important;
    width: 100% !important;
  }
  .webapp-anim-box {
    padding: 16px !important;
    min-height: auto !important;
  }
  .mockup-wrapper {
    margin-right: 0 !important;
    width: 100% !important;
    transform: none !important;
    filter: none !important;
  }
  .premium-monitor {
    width: 85% !important;
    transform: none !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
  }
  .premium-phone {
    transform: none !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8) !important;
  }
}

@media (max-width: 768px) {
  .premium-monitor {
    width: 100% !important;
  }
  .premium-phone {
    width: 90px !important;
    height: 180px !important;
    right: 0 !important;
    bottom: -10px !important;
  }
  .monitor-stand-neck, .monitor-stand-base {
    display: none !important;
  }
  .webapp-title {
    white-space: nowrap !important;
    font-size: clamp(18px, 6.2vw, 24px) !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
  }
  .webapp-sub {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 32px !important;
  }
  .w-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .w-text h3 {
    font-size: 16px !important;
  }
  .webapp-features {
    gap: 30px;
  }
  .p-urlbar {
    width: 70% !important;
  }
}



/* ── Mobile: Bild fuellt die Box komplett aus ────────────────────────────────
   .webapp-anim-box hatte 16px Innenabstand -> das Bild sass eingerueckt in der
   Box. Padding raus, damit es die Box zu 100% ausfuellt. Der 20px-Seitenrand
   der Seite (.webapp-container) bleibt, ebenso die Rundung — die Box hat
   overflow:hidden, das Bild wird also sauber beschnitten.
   Steht am Dateiende, weil die Regel oben !important ist. */
@media (max-width: 1024px) {
  .webapp-anim-box {
    padding: 0 !important;
  }

  .webapp-photo {
    display: block;
    width: 100% !important;
    max-width: none !important;
  }
}
